Skip to main content

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

Metadata

Release files for surveymonkey-python 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for surveymonkey-python 0.1.6
File Size Uploaded
surveymonkey_python-0.1.6.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for surveymonkey-python 0.1.6
File Interpreter ABI Platform
surveymonkey_python-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / surveymonkey_python-0.1.6.tar.gz

Download URL surveymonkey_python-0.1.6.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e641c1c3e34262a36ae02f3ee67eb7d0596a004e63d0de32d0836464f9deb7c7
BLAKE2b-256 checksum
How to use checksums
e83d003220c2176a386137235150ca950067b3344762e54bfc824fbb63e4cebd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.10

Release files / surveymonkey_python-0.1.6-py3-none-any.whl

Download URL surveymonkey_python-0.1.6-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93fa595c10f246e5f719d2ee2bbd6011e536859773137a4ea1274c8f63c9b75e
BLAKE2b-256 checksum
How to use checksums
e362e9f206293fa69bda6f5ef73c4adb8aca4f31bcf82aa5238512983e1c65bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page