Skip to main content

Python wrapper for SurveyMonkey API

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 URL client.get_authorization_url() 2- Extract code from the URL and send it as an argument in client.exchange_code(code) 3- Remove the token from the response obtained and send it as an argument in client.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) where survey_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:

  1. Fork it ( https://github.com/GearPlug/surveymonkey-python )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Adds my new feature')
  4. Push to the branch (git push origin my-new-feature)
  5. 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

surveymonkey-python-0.1.4.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file surveymonkey-python-0.1.4.tar.gz.

File metadata

  • Download URL: surveymonkey-python-0.1.4.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for surveymonkey-python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 136faddeb0fff51348f9add5905b06832a3925006a1109aa6b6a38acf37df639
MD5 0bb63a1f6351815c3b3b9714265d467d
BLAKE2b-256 32f6d8c2717b7c985a7e1856cddfdd401725534abc70f680466a62f65c9c968f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page