{ "info": { "author": "JotForm", "author_email": "api@jotform.com", "bugtrack_url": null, "classifiers": [], "description": "jotform-api-python \n===============\n[JotForm API](http://api.jotform.com/docs/) - Python Client\n\n\n### Installation\n\nInstall via git clone:\n\n $ git clone git://github.com/jotform/jotform-api-python.git\n $ cd jotform-api-python\n \nInstall via pip:\n\n $ pip install git+git://github.com/jotform/jotform-api-python.git\n\n### Documentation\n\nYou can find the docs for the API of this client at [http://api.jotform.com/docs/](http://api.jotform.com/docs)\n\n### Authentication\n\nJotForm API requires API key for all user related calls. You can create your API Keys at [API section](http://www.jotform.com/myaccount/api) of My Account page.\n\n### Examples\n\nPrint all forms of the user\n\n```python\nfrom jotform import *\n\ndef main():\n\n jotformAPIClient = JotformAPIClient('YOUR API KEY')\n\n forms = jotformAPIClient.get_forms()\n\n for form in forms:\n \tprint form[\"title\"]\n\nif __name__ == \"__main__\":\n main()\n``` \n\nGet submissions of the latest form\n\n```python\nfrom jotform import *\n\ndef main():\n\n jotformAPIClient = JotformAPIClient('YOUR API KEY')\n\n forms = jotformAPIClient.get_forms(None, 1, None, None)\n\n latestForm = forms[0]\n\n latestFormID = latestForm[\"id\"]\n\n submissions = jotformAPIClient.get_form_submissions(latestFormID)\n\n print submissions\n\nif __name__ == \"__main__\":\n main()\n``` \n\nGet latest 100 submissions ordered by creation date\n\n```python\nfrom jotform import *\n\ndef main():\n\n jotformAPIClient = JotformAPIClient('YOUR API KEY')\n\n submissions = jotformAPIClient.get_submissions(0, 100, None, \"created_at\")\n\n print submissions\n\nif __name__ == \"__main__\":\n main()\n``` \n\nSubmission and form filter examples\n\n```python\nfrom jotform import *\n\ndef main():\n\n jotformAPIClient = JotformAPIClient('YOUR API KEY')\n\n submission_filter = {\"id:gt\":\"FORM ID\", \"created_at\": \"DATE\"}\n\n submission = jotformAPIClient.get_submissions(0, 0, submission_filter, \"\") \n print submission\n\n form_filter = {\"id:gt\": \"FORM ID\"}\n\n forms = jotformAPIClient.get_forms(0,0, form_filter, \"\")\n print forms\n\nif __name__ == \"__main__\":\n main()\n``` \n\nDelete last 50 submissions\n\n```python\nfrom jotform import *\n\ndef main():\n\n jotformAPIClient = JotformAPIClient('YOUR API KEY')\n\n submissions = jotformAPIClient.get_submissions(0, 50, None, None)\n\n for submission in submissions:\n result = jotformAPIClient.delete_submission(submission[\"id\"])\n print result\n\nif __name__ == \"__main__\":\n main()\n``` \n\nFirst the _JotformAPIClient_ class is included from the _jotform-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. \nIn case of an exception (wrong authentication etc.), you can catch it or let it fail with a fatal error.\n\n \n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://api.jotform.com/docs/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "jotform", "package_url": "https://pypi.org/project/jotform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jotform/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://api.jotform.com/docs/" }, "release_url": "https://pypi.org/project/jotform/1.0/", "requires_dist": null, "requires_python": null, "summary": "JotForm API - Python Client", "version": "1.0" }, "last_serial": 1159593, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "9d790c1413674942c9c604c062c55e64", "sha256": "0129e4dd695f2d00665b28df3d3c5e43daed167ded4efdb120b791a494c68067" }, "downloads": -1, "filename": "jotform-1.0.tar.gz", "has_sig": false, "md5_digest": "9d790c1413674942c9c604c062c55e64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5396, "upload_time": "2014-07-16T11:14:58", "url": "https://files.pythonhosted.org/packages/2d/2a/870a776b8727347ca674ee202b43ef43606367a79b3c5d49ac6a3ff201a3/jotform-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9d790c1413674942c9c604c062c55e64", "sha256": "0129e4dd695f2d00665b28df3d3c5e43daed167ded4efdb120b791a494c68067" }, "downloads": -1, "filename": "jotform-1.0.tar.gz", "has_sig": false, "md5_digest": "9d790c1413674942c9c604c062c55e64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5396, "upload_time": "2014-07-16T11:14:58", "url": "https://files.pythonhosted.org/packages/2d/2a/870a776b8727347ca674ee202b43ef43606367a79b3c5d49ac6a3ff201a3/jotform-1.0.tar.gz" } ] }