Registry / http-networking / surveygizmo

surveygizmo

JSON →
library1.2.3pypypi✓ verified 84d ago

A Python wrapper for SurveyGizmo's (now Alchemer) RESTful API service. Current version 1.2.3 wraps most survey, campaign, contact, and response endpoints. Release cadence is sporadic; last release was 2020.

pip install surveygizmo
INSTALL
IMPORT
SIG · SURVEYGIZMO
S
surveygizmo
http-networkingpythonv1.2.3
Install
2.1s avg
Import
590ms
Disk
19MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.624s · 21.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.556s · 22MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SurveyGizmo
from surveygizmo import SurveyGizmo
SurveyGizmoApi
from surveygizmo import SurveyGizmo
from surveygizmo import SurveyGizmoApi
Class is SurveyGizmo, no Api suffix

Initialize with API token and secret, then call any resource method.

from surveygizmo import SurveyGizmo api = SurveyGizmo(api_token='your_api_token', api_token_secret='your_api_secret') surveys = api.api.survey.list() print(surveys)
Debug
Known issues
breakingVersion 0.2.0 renamed all 'change' operations to 'update'. Code using 'api.survey.change(...)' will break.
fix
Replace 'change' with 'update' for all resource methods.
affects: <0.2.0
breakingVersion 0.2.0 removed the 'keep' kwarg for preserving filters. Use 'preserve_filters' instead.
fix
Replace 'keep=True' with 'preserve_filters=True' when calling API methods.
affects: <0.2.0
breakingVersion 0.2.0 removed the undocumented 'url_fetch' kwarg.
fix
Remove 'url_fetch' kwarg; it no longer has any effect.
affects: <0.2.0
deprecatedSurveyGizmo renamed to Alchemer. API endpoints and tokens may change; this wrapper may not be updated.
fix
Consider migrating to Alchemer's official SDK: https://apihelp.alchemer.com/
affects: all
gotchaThe library uses 'api_token' and 'api_token_secret' (OAuth1.0), not a modern API key. Obtain credentials from SurveyGizmo account settings.
fix
Use the v1.0 OAuth token/secret pair, not a bearer token.
affects: all
gotchaThe 'SurveyGizmo' class wraps methods under 'api' attribute. Methods like 'list', 'get', 'update', 'delete' are called on resource objects via 'api.survey.list()'.
fix
Access resources via 'api.api.<resource>.<method>()' after initializing 'SurveyGizmo' instance.
affects: >=0.2.0
Errors
Common errors & fixes
AttributeError: module 'surveygizmo' has no attribute 'SurveyGizmoApi'
Importing the wrong class name.
fix
Use 'from surveygizmo import SurveyGizmo'
ImportError: cannot import name 'SurveyGizmo' from 'surveygizmo'
Outdated library version or incorrect installation.
fix
Upgrade: 'pip install --upgrade surveygizmo'. Ensure package version >= 0.2.0.
TypeError: __init__() missing 1 required positional argument: 'api_token_secret'
OAuth1.0 requires both token and secret.
fix
Provide both 'api_token' and 'api_token_secret' arguments when creating SurveyGizmo instance.
HTTP 401: Unauthorized
Invalid OAuth credentials or expired tokens.
fix
Verify your API token and secret in SurveyGizmo account settings. Tokens may expire; regenerate if needed.
surveygizmo.exceptions.MissingCredentials
API credentials not set via environment variables or constructor arguments.
fix
Set 'SURVEYGIZMO_API_TOKEN' and 'SURVEYGIZMO_API_TOKEN_SECRET' environment variables, or pass them directly to SurveyGizmo().
Upgrade
Version history
1.2.3latest on PyPI · released Oct 2, 2017
Audit
Dependencies
requestsrequiredHTTP requests to API
Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources