This is a Python wrapper for the SurveyMonkey API. Why the name? Because this is a wrapper in Python, and Python makes me think of Monty Python. Also, "monkey" and "Monty" both start with "mon", hence SurveyMonty.
$ pip install surveymonty
This wrapper is very lightweight and provides no object encapsulation of the responses. Rather, it provides the API methods in Python form, through which you can obtain the JSON responses and do with them as you please.
Note, the API requires an access token and api key. You can provide these either through environment variables or in the code itself.
export SURVEY_MONKEY_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"
export SURVEY_MONKEY_API_KEY="YOUR_API_KEY"
Sample Python script using SurveyMonty:
import surveymonty
api = surveymonty.Client()
api.get_survey_list() # retrieve survey ids
api.get_survey_details(SURVEY_ID) # use a SURVEY_ID from above
import surveymonty
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"
API_KEY = "YOUR_API_KEY"
api = surveymonty.Client(ACCESS_TOKEN, API_KEY)
api.get_survey_list()
api.get_survey_details(SURVEY_ID)
- get_survey_details()
- get_survey_list()
- get_collector_list()
- get_respondent_list()
- get_responses()
- get_response_count()
- get_user_details()
This content is released under the MIT License.
Added version number for "requests".
- Synced version number with PyPI.
- Added "requests" module to install_requires in setup.py.
Bug fix.
Bug fix.
Bug fix.
Bug fix.
Changed order of arguments in get_response
.
Updated get_response
method to work with paged results.
Use wheel.
Fix.
Reattempt failed queries.
Remove print statement.
Bug fix.
Bug fix.
Input accepts numbers for IDs.
Made error handling more robust.
Bug fix.
Moved ACCESS_TOKEN and API_KEY access to environment variables.