All Projects → Typeform → typeform-python-sdk

Typeform / typeform-python-sdk

Licence: MIT License
Typeform Python API client

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to typeform-python-sdk

results-example
Results API example
Stars: ✭ 19 (-53.66%)
Mutual labels:  typeform, use-nonproduction
Watsontcp
WatsonTcp is the easiest way to build TCP-based clients and servers in C#.
Stars: ✭ 209 (+409.76%)
Mutual labels:  client
H Opc
OPC client made simpler, for UA and DA
Stars: ✭ 209 (+409.76%)
Mutual labels:  client
Meli
🐝 experimental terminal mail client, mirror of https://git.meli.delivery/meli/meli.git https://crates.io/crates/meli
Stars: ✭ 242 (+490.24%)
Mutual labels:  client
Zenpy
Python wrapper for the Zendesk API
Stars: ✭ 222 (+441.46%)
Mutual labels:  client
Lagrange
A Beautiful Gemini Client
Stars: ✭ 238 (+480.49%)
Mutual labels:  client
Zipcelx
Turns JSON data into `.xlsx` files in the browser
Stars: ✭ 246 (+500%)
Mutual labels:  client
Mtproto Core
Telegram API JS (MTProto) client library for browser and nodejs
Stars: ✭ 242 (+490.24%)
Mutual labels:  client
Jenkins Cli
Jenkins CLI allows you manage your Jenkins as an easy way
Stars: ✭ 245 (+497.56%)
Mutual labels:  client
typeform-client
A friendlier Typeform Node.js API client
Stars: ✭ 15 (-63.41%)
Mutual labels:  typeform
Graphql Flutter
A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
Stars: ✭ 2,811 (+6756.1%)
Mutual labels:  client
Pika
Pure Python RabbitMQ/AMQP 0-9-1 client library
Stars: ✭ 2,866 (+6890.24%)
Mutual labels:  client
Http
HTTP (The Gem! a.k.a. http.rb) is an easy-to-use client library for making requests from Ruby. It uses a simple method chaining system for building requests, similar to Python's Requests.
Stars: ✭ 2,800 (+6729.27%)
Mutual labels:  client
Simplenetwork
simple TCP server / client C++ linux socket
Stars: ✭ 225 (+448.78%)
Mutual labels:  client
AsyncWebSocketClient
php异步websocket客户端
Stars: ✭ 35 (-14.63%)
Mutual labels:  client
Phpnats
A PHP client for the NATSio cloud messaging system.
Stars: ✭ 209 (+409.76%)
Mutual labels:  client
electron-request
Zero-dependency, Lightweight HTTP request client for Electron or Node.js
Stars: ✭ 45 (+9.76%)
Mutual labels:  client
ofxgo
Golang library for querying and parsing OFX
Stars: ✭ 96 (+134.15%)
Mutual labels:  client
haste-client
CLI client for haste-server (hastebin.com) written in Python
Stars: ✭ 13 (-68.29%)
Mutual labels:  client
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+129295.12%)
Mutual labels:  client

typeform

PyPI version Build Status Coverage Status

Python Client wrapper for Typeform API

Table of contents

Installation

pip install typeform

Usage

Initialize

1 - Import client library

  from typeform import Typeform

2 - Create an instance with your personal token

  typeform = Typeform('<api_key>')

3 - Use any of the methods available in the reference

  # will retrieve all forms
  forms: dict = typeform.forms.list()

Reference

Typeform('<api_key>')

  • Creates a new instance of Typeform's Python client
  • Returns an instance with the methods described below
  typeform = Typeform('<api_key>')

Client returns the following properties:

  • forms
  • responses

Each one of them encapsulates the operations related to it (like listing, updating, deleting the resource).

Forms

forms.create(data: dict = {})

Creates a form. Returns dict of created form. See docs.

forms = Typeform('<api_key>').forms
result: dict = forms.create({ 'title': 'Hello World' })

forms.delete(uid: str)

Deletes the form with the given form_id and all of the form's responses. Returns a str based on success of deletion, OK on success, otherwise an error message. See docs.

forms = Typeform('<api_key>').forms
result: str = forms.delete('abc123')

forms.get(uid: str)

Retrieves a form by the given form_id. Includes any theme and images attached to the form as references. See docs.

forms = Typeform('<api_key>').forms
result: dict = forms.get('abc123')

forms.list(page: int = None, pageSize: int = None, search: str = None, workspaceId: str = None)

Retrieves a list of JSON descriptions for all forms in your Typeform account (public and private). Forms are listed in reverse-chronological order based on the last date they were modified. See docs.

forms = Typeform('<api_key>').forms
result: dict = forms.list()

forms.update(uid: str, patch: bool = False, data: dict = {})

Updates an existing form. Defaults to put. put will return the modified form as a dict object. patch will Returns a str based on success of change, OK on success, otherwise an error message. See put docs or patch docs.

forms = Typeform('<api_key>').forms
result: dict = forms.update('abc123', { 'title': 'Hello World, Again' })
result: str = forms.update('abc123', { 'title': 'Hello World, Again' }, patch=True)

forms.messages.get(uid: str)

Retrieves the customizable messages for a form (specified by form_id) using the form's specified language. You can format messages with bold (bold) and italic (italic) text. HTML tags are forbidden. See docs.

forms = Typeform('<api_key>').forms
result: dict = forms.messages.get('abc123')

forms.messages.update(uid: str, data={})

Specifies new values for the customizable messages in a form (specified by form_id). You can format messages with bold (bold) and italic (italic) text. HTML tags are forbidden. Returns a str based on success of change, OK on success, otherwise an error message. See docs.

forms = Typeform('<api_key>').forms
result: str = forms.messages.update('abc123', {
  'label.buttonHint.default': 'New Button Hint'
})

Responses

responses.list(uid: str, pageSize: int = None, since: str = None, until: str = None, after: str = None, before: str = None, includedResponseIds: str = None, completed: bool = None, sort: str = None, query: str = None, fields: List[str] = None)

Returns form responses and date and time of form landing and submission. See docs.

responses = Typeform('<api_key>').responses
result: dict = responses.list('abc123')

responses.delete(uid: str, includedTokens: Union[str, List[str]])

Delete responses to a form. You must specify the included_tokens parameter. Returns a str based on success of deletion, OK on success, otherwise an error message. See docs.

responses = Typeform('<api_key>').responses
result: str = responses.delete('abc123' 'token1')
result: str = responses.delete('abc123' ['token2', 'token3'])

Tests

Check typeform/test/fixtures.py to configure test run.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].