{ "info": { "author": null, "author_email": null, "bugtrack_url": null, "classifiers": [], "description": "### LATCH PYTHON SDK ###\n\n\n####\u00a0PREREQUISITES ####\n\n* Python.\n\n* Read API documentation (https://latch.elevenpaths.com/www/developers/doc_api).\n\n* To get the \"Application ID\" and \"Secret\", (fundamental values for integrating Latch in any application), it\u2019s necessary to register a developer account in Latch's website: https://latch.elevenpaths.com. On the upper right side, click on \"Developer area\".\n\n\n#### USING THE SDK IN PYTHON ####\n\n* Import \"latch\" module.\n```\n\timport latch\n```\n\n* Create a Latch object with the \"Application ID\" and \"Secret\" previously obtained.\n```\n\tapi = latch.Latch(\"APP_ID_HERE\", \"SECRET_KEY_HERE\")\n```\n\n* Optional settings:\n```\n\tlatch.Latch.set_proxy(\"PROXY_HOST_HERE\", port)\n```\n\n* Call to Latch Server. Pairing will return an account id that you should store for future api calls\n```\n\tresponse = api.pair(\"PAIRING_CODE_HERE\")\n\tresponse = api.status(\"ACCOUNT_ID_HERE\")\n\tresponse = api.unpair(\"ACCOUNT_ID_HERE\")\n```\n\n* After every API call, get Latch response data and errors and handle them.\n```\n\tresponseData = response.get_data()\n\tresponseError = response.get_error()\n ```\n", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": null, "keywords": null, "license": null, "maintainer": null, "maintainer_email": null, "name": "Latchsdk", "package_url": "https://pypi.org/project/Latchsdk/", "platform": null, "project_url": "https://pypi.org/project/Latchsdk/", "project_urls": null, "release_url": "https://pypi.org/project/Latchsdk/1.0/", "requires_dist": null, "requires_python": null, "summary": null, "version": "1.0" }, "last_serial": 1204942, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "d43ff5e584d79a101ad0e1b1a4d59608", "sha256": "e21926e04533d0fa870a6492445bbffc1ccb893456997a08dba558f610586c64" }, "downloads": -1, "filename": "latchsdk-1.0.0.zip", "has_sig": false, "md5_digest": "d43ff5e584d79a101ad0e1b1a4d59608", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15204, "upload_time": "2014-08-28T09:28:27", "url": "https://files.pythonhosted.org/packages/b9/92/883c11d6bcf212f335d23284d6cd8633ba9c157ae4cb86c52569d1bf1de2/latchsdk-1.0.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d43ff5e584d79a101ad0e1b1a4d59608", "sha256": "e21926e04533d0fa870a6492445bbffc1ccb893456997a08dba558f610586c64" }, "downloads": -1, "filename": "latchsdk-1.0.0.zip", "has_sig": false, "md5_digest": "d43ff5e584d79a101ad0e1b1a4d59608", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15204, "upload_time": "2014-08-28T09:28:27", "url": "https://files.pythonhosted.org/packages/b9/92/883c11d6bcf212f335d23284d6cd8633ba9c157ae4cb86c52569d1bf1de2/latchsdk-1.0.0.zip" } ] }