Coder Social home page Coder Social logo

typeform-python's Introduction

typeform-python

TypeForm API wrapper written in python.

Installing

pip install typeform-python

Usage

from typeform.client import Client

client = Client('CLIENT_KEY', 'CLIENT_SECRET')

Get authorization url

url = client.authorization_url('REDIRECT_URI', ['forms:write', 'forms:read'])

Exchange the code for a token

token = client.exchange_code('REDIRECT_URI', 'CODE')

Set the token

client.set_access_token('TOKEN')

Get form ID

client.get_form_uid('FORM_URL')

Get form information

client.get_form_information('FORM_UID')

Get form questions

client.get_form_questions('FORM_UID')

Get form metadata

client.get_form_metadata('FORM_UID', 'SINCE', 'UNTIL')

Get all forms

client.get_forms()

Create Webhook

client.create_webhook('WEBHOOK_URL', 'WEBHOOK_TAG', 'FORM_UID')

View Webhook

client.view_webhook('WEBHOOK_TAG', 'FORM_UID')

Delete Webhook

client.delete_webhook('WEBHOOK_TAG', 'FORM_UID')

Requirements

  • requests

TODO

  • create_form
  • Update_form
  • delete_form
  • get_custom_form_messages
  • update_custom_messages
  • create_image
  • get_images_collection
  • get_image
  • delete_image
  • get_image_by_size
  • get_background_by_size
  • get_choice_image_by_size
  • create_theme
  • get_themes
  • update_themes
  • delete_themes

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/typeform-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

typeform-python's People

Contributors

gustav0 avatar hanna860 avatar ingmferrer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

typeform-python's Issues

Problem with get forms function

Hi,

I am trying to get some data from Typeform into Python using the API Wrapper.

import typeform
client = Client('mykeyhere')
myforms = client.get_forms()

But then it gives an error in the parse object:

File "/Users/nick/anaconda3/lib/python3.6/site-packages/typeform/client.py", line 54, in _parse
raise exception.Forbidden(message)

UnboundLocalError: local variable 'message' referenced before assignment

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.