{ "info": { "author": "Jake Harding", "author_email": "jharding@verisage.us", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "Python Harvest Oauth\n====================\n\nThis is a fork from https://github.com/bendavis78/python-harvest which is a fork of https://github.com/lionheart/python-harvest, but adapted to use Oauth2. \nThe changes are fairly significant, hence the different version and development status classifier.\n\nPull requests and issues are welcome!\n---------------------\n\nImproving the unit tests is currently the main priority, but any help is welcome.\nThe tasks are managed by a public Taiga project you can access `here `_.\n\nUsage\n=====\n\nThis package builds the URL and redirect needed for Harvest authentication, and\nprovides methods for initial retrieval and refresh of Oauth2 tokens. The Harvest \ndomain, client id and redirect URL are needed for instantiation like so::\n\n HARVEST_DOMAIN = 'Harvest domain that access is needed'\n HARVEST_CLIENT_ID = 'Harvest client id you get after creating Oauth2 app in Harvest.'\n HARVEST_CLIENT_SECRET = 'Harvest client secret you get after creating Oauth2 app in Harvest.'\n REDIRECT = 'Redirect URL for to redirect to after successful authentication.'\n\n harvest_client = HarvestRestClient(\n HARVEST_DOMAIN, \n client_id=HARVEST_CLIENT_ID, \n redirect_uri=REDIRECT\n )\n\nAfter instantiation, harvest_client.authorize_url will have the url needed authenticate with Harvest. \nAfter successful authentication, Harvest will redirect to REDIRECT with a `code` query param. \nThe value for it is needed to request the access and refresh tokens.\nThe tokens need to be saved somewhere by your app.::\n\n CODE = 'String submitted in query param'\n\n ACCESS, REFRESH = harvest_client.get_tokens(CODE, HARVEST_CLIENT_SECRET)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/verisage/python-harvest-oauth", "keywords": "harvestapp timetracking api", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "python-harvest-oauth", "package_url": "https://pypi.org/project/python-harvest-oauth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-harvest-oauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/verisage/python-harvest-oauth" }, "release_url": "https://pypi.org/project/python-harvest-oauth/0.0.1a0/", "requires_dist": null, "requires_python": null, "summary": "Harvest api client", "version": "0.0.1a0" }, "last_serial": 2097242, "releases": { "0.0.1a0": [ { "comment_text": "", "digests": { "md5": "3c8be24e6d9b132d1210017858da9b36", "sha256": "f8a07e3bc8ee258d312dc1a54f0d48bc9f8282297e38c41d1d55c9d174c32c90" }, "downloads": -1, "filename": "python-harvest-oauth-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "3c8be24e6d9b132d1210017858da9b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6042, "upload_time": "2016-05-03T15:34:00", "url": "https://files.pythonhosted.org/packages/3c/1e/c3300c263028624dcc27fecef610512f1cb050802dfe7a88e5211aa39d32/python-harvest-oauth-0.0.1a0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c8be24e6d9b132d1210017858da9b36", "sha256": "f8a07e3bc8ee258d312dc1a54f0d48bc9f8282297e38c41d1d55c9d174c32c90" }, "downloads": -1, "filename": "python-harvest-oauth-0.0.1a0.tar.gz", "has_sig": false, "md5_digest": "3c8be24e6d9b132d1210017858da9b36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6042, "upload_time": "2016-05-03T15:34:00", "url": "https://files.pythonhosted.org/packages/3c/1e/c3300c263028624dcc27fecef610512f1cb050802dfe7a88e5211aa39d32/python-harvest-oauth-0.0.1a0.tar.gz" } ] }