A python wrapper for the typeform API
#Installation
Clone the repo
git clone https://github.com/WarmongeR1/typeformPython.git
In the base directory run:
python setup.py install
#Usage Instantiating a form object
from typeform import TypeFormAPI
api = TypeFormAPI(API_KEY)
exampleForm = api.get_form(formKey)
Retrieving questions from a form object
questionDict = exampleFrom.get_questions()
Returns a dictionary of the form {questionToken: Question Text}
Retrieving responses from a form object
responseDict = exampleForm.get_all_completed_responses()
Returns all responses in form: {responseToken: {questionToken: answerString....}}
Get average rating of a rating or opinion question
rating = exampleForm.get_average_rating(questionToken)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request