Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JotForm API - Python Client

License

NotificationsYou must be signed in to change notification settings

myHerbDev/jotform-api-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JotForm API - Python Client

Installation

Install via git clone:

    $ git clone https://github.com/jotform/jotform-api-python.git    $ cd jotform-api-python

Install via pip (latest version)

    $ pip install git+https://github.com/jotform/jotform-api-python.git

Documentation

You can find the docs for the API of this client athttps://api.jotform.com/docs/

Authentication

JotForm API requires API key for all user related calls. You can create your API Keys atAPI section of My Account page.

Examples

Print all forms of the user

fromjotformimport*defmain():jotformAPIClient=JotformAPIClient('YOUR API KEY')forms=jotformAPIClient.get_forms()forforminforms:print(form["title"])if__name__=="__main__":main()

Get submissions of the latest form

fromjotformimport*defmain():jotformAPIClient=JotformAPIClient('YOUR API KEY')forms=jotformAPIClient.get_forms(None,1,None,None)latestForm=forms[0]latestFormID=latestForm["id"]submissions=jotformAPIClient.get_form_submissions(latestFormID)print(submissions)if__name__=="__main__":main()

Get latest 100 submissions ordered by creation date

fromjotformimport*defmain():jotformAPIClient=JotformAPIClient('YOUR API KEY')submissions=jotformAPIClient.get_submissions(0,100,None,"created_at")print(submissions)if__name__=="__main__":main()

Submission and form filter examples

fromjotformimport*defmain():jotformAPIClient=JotformAPIClient('YOUR API KEY')submission_filter= {"id:gt":"FORM ID","created_at":"DATE"}submission=jotformAPIClient.get_submissions(0,0,submission_filter,"")print(submission)form_filter= {"id:gt":"FORM ID"}forms=jotformAPIClient.get_forms(0,0,form_filter,"")print(forms)if__name__=="__main__":main()

Delete last 50 submissions

fromjotformimport*defmain():jotformAPIClient=JotformAPIClient('YOUR API KEY')submissions=jotformAPIClient.get_submissions(0,50,None,None)forsubmissioninsubmissions:result=jotformAPIClient.delete_submission(submission["id"])print(result)if__name__=="__main__":main()

First theJotformAPIClient class is included from thejotform-api-python/jotform.py file. This class provides access to JotForm's API. You have to create an API client instance with your API key.In case of an exception (wrong authentication etc.), you can catch it or let it fail with a fatal error.

About

JotForm API - Python Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python56.2%
  • HTML43.8%

[8]ページ先頭

©2009-2025 Movatter.jp