API wrapper for SurveyMonkey written in Python
Project description
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- Extractcode
from 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_id
represent 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file surveymonkey_python-0.1.6.tar.gz
.
File metadata
- Download URL: surveymonkey_python-0.1.6.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e641c1c3e34262a36ae02f3ee67eb7d0596a004e63d0de32d0836464f9deb7c7 |
|
MD5 | b955a4b39622612ef83d53f390e5e65a |
|
BLAKE2b-256 | e83d003220c2176a386137235150ca950067b3344762e54bfc824fbb63e4cebd |
File details
Details for the file surveymonkey_python-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: surveymonkey_python-0.1.6-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93fa595c10f246e5f719d2ee2bbd6011e536859773137a4ea1274c8f63c9b75e |
|
MD5 | 2ea8c2e2aa79e2561293f59b8c3f6ece |
|
BLAKE2b-256 | e362e9f206293fa69bda6f5ef73c4adb8aca4f31bcf82aa5238512983e1c65bf |