surveymonkey-python
Python wrapper for SurveyMonkey API
Installing
pip install surveymonkey-python
Usage
- Instantiate client
from client import Client
# If you do not have access_token, run
client=Client(
client_id=CLIENT_ID, client_secret=CLIENT_SECRET, redirect_uri=REDIRECT_URI, access_token=None)
# If you have access_token, run
client=Client(
client_id=CLIENT_ID, client_secret=CLIENT_SECRET, redirect_uri=REDIRECT_URI, access_token=ACCESS_TOKEN)
-
OAuth (instantiate client with
access_token = None) 1- Get authorization URLclient.get_authorization_url()2- Extractcodefrom the URL and send it as an argument inclient.exchange_code(code)3- Remove the token from the response obtained and send it as an argument inclient.set_access_token(token) -
Functionality methods, they refer to methods that make calls to the different endpoints of the SurveyMonkey API, the use is quite simple:
client.method(args)e.g.client.get_survey_pages(survey_id)wheresurvey_idrepresent the id of the survey.
TODO
- Response Counts and Trends endpoints
- Contacts and Contact Lists endpoints
- Translations for Multilingual Surveys endpoints
- Collectors and Invite Messages endpoints
- Benchmarks endpoints
- Organizations endpoint
- Errors endpoint
Contributing
We are always grateful for any kind of contribution including but not limited to bug reports, code enhancements, bug fixes, and even functionality suggestions.
You can report any bug you find or suggest new functionality with a new issue.
If you want to add yourself some functionality to the wrapper:
- Fork it ( https://github.com/GearPlug/surveymonkey-python )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Adds my new feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Metadata
Release files for surveymonkey-python 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| surveymonkey-python-0.1.4.tar.gz | 9.5 kB | Without provenance | Details for surveymonkey-python-0.1.4.tar.gz |
Release files / surveymonkey-python-0.1.4.tar.gz
| Download URL | surveymonkey-python-0.1.4.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
136faddeb0fff51348f9add5905b06832a3925006a1109aa6b6a38acf37df639
|
|
BLAKE2b-256 checksum How to use checksums |
32f6d8c2717b7c985a7e1856cddfdd401725534abc70f680466a62f65c9c968f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for surveymonkey-python 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.