{ "info": { "author": "Josue Kouka", "author_email": "josuebrunel@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "yahoo\\_oauth\n============\n\n|Build Status| |Documentation Status|\n\nYahoo\\_OAuth is a very easy to use OAuth python library for Yahoo! APIs.\n\nInstallation\n------------\n\n.. code:: python\n\n pip install yahoo_oauth\n\nQuickstart\n----------\n\nWether you use **OAuth1** or **OAuth2**, only **2** parameters are\nrequired.\n\n- ***consumer*\\ key**\\ \\_\n- ***consumer*\\ secret**\\ \\_\n\nI recommend putting those two into a file. Only ***json*** and ***yaml*** files are\nsupported\n\n.. code:: json\n\n {\n \"consumer_key\": \"my_very_long_and_weird_consumer_key\",\n \"consumer_secret\": \"my_not_that_long_consumer_secret\"\n }\n\nOnce you acquired your access\\_token, this file will look like :\n\n- **OAuth1**\n\n.. code:: json\n\n {\n \"access_token\": \"A=5ZnN5xXY5yKacQp1QtUF68MlEmXVIF8fRplkc7W1QMVYeLJ2DdBmNyH7SxVgUbAjdv5edCnk_DEUbfr6GpqezsSAuE9h36wfh.J45twIo1sA.bqMk7Bta6IisI9z1_h8D0QZzWYmjybxlQcuNgd7TY4nJuu_Afj_8ED787BQbjg6OqRotV.eM4_YyBCjP1K8G6rG44iX2PGNj.JSEJrocgvglABkTTVA_8t.JoLH7NHSgxCQXhakBsk3_K.6Rkgm_Nkc7.ZD02pYy3dJAfBh1fFvtrCwIOqDIplri305dZ1UY430X6SfPnZIFJNiTWkMH8_QRhcnfizG5TZugN_.0ib2VnnUzspeFT0_86p6WMP3uFOLYXspdEOryhSJwFJ3AHZN9n.t8euRQOxanpsvw5M5ffBs6P0dI5FijGw3fibbqoheJOSUE_BRUNEL_KOUKAJSsJCH(^_^)JHllHmJUptK9k5ifiqJOpTbodnW8EsyyNhthDOusv5Bp6142mvCPnC7HX7PkTodHqfgVyAUOvOqSsqMGyc65OY8roLORKpUWObw9bjd8YsU40jwSaGZtWmvVhYV9RxUA779bRuE1k0BL_fvXQ_tlZnxPhtIFBB64szQ9AwA9HT_nZKq8q1rOfUcBIZJ7Zu1jwpZUAOkHsfmHWCW2gK8BC4wjk0WuJg95FpZ2z741mhRcdma2bVYpdh3k2DdaBVYRTDT36Q4SBtreb_GNi1Mctg.RhSqopCTTvW4jjXAkt2SHnscUi37v0yo4JVex0cnVmVTFL7TRl1JMLl9jt0XmaLaKuS4nhR4A--\", \n \"access_token_secret\": \"99a20a82e99THE_A_Tf803cb153f3d98\", \n \"consumer_key\": \"dj0yJmk9e_THIS_IS_THE_CK_RGTnpZbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1iNQ--\", \n \"consumer_secret\": \"08802b459abTHIS_IS_THE_CS4b75789f7\", \n \"session_handle\": \"APIENFXij.bjFW_MY_SESSION_EXn.4.DOIYOR37\", \n \"token_time\": 1433546792.343515\n }\n\n- **OAuth2**\n\n.. code:: json\n\n {\n \"access_token\": \"DELvMgOYvwPQJS8eFW_2hRN5rJxz6dnHAOk2s.qB0iMIeRg5.ZpW3xZF0p8CABLjZ2gfNdE602dCN2wTHdGHHLtChF3ls9BUuZ1QDdqIVq.yWclfweleyZSq6dAzlPEHiskWmfItjHK5VERY_LONG_ACCESS_TOKEN_oyyD4cIKvdNJsJ9k779mAUqN02_5ugBeDfCLebqjL8uVuunObew0ERa2MxE6jywNY0TTCe9W0nqTd6n0lKoN4PSP1Dw_Ifwx6enGuhUUAhhpa7nNMyhNy_pe6PfDf7IJ5gbkdtw3mD1o2T218ZTV0owdrKDLSF9oZrNvZ75xDlqaaI5yeW_.L63zk11PjsWUd5K8LGhWSTgRbyhffCDBcqVwTYEqHwCyVqHX4z2kgHhGsc0ies6WMG33kSw5Cgun0fnPbdDuHBgQziXU.GMv4hIDoIDMSLGpzpcpkyx4GS1CC_RUQwKxLilR3MQy7X2gI3cJA4lhRPlXEOdhS5HIQiQTgMWO9nWt7.RR7XtXVg-\",\n \"consumer_key\": \"dj0yJmk9eFJINERDYWMY_CONSUMER_KEYmRGTnpZbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1iNQ--\",\n \"consumer_secret\": \"08802b459ab48eeaMY_CONSUMER_SECRET_0af6a4b75789f7\",\n \"refresh_token\": \"APIENFXij.bjFW1tEcr2THE_REFRESH_TOKEN_Xn.4.DOIYOR37\",\n \"token_time\": 1433553339.706037,\n \"token_type\": \"bearer\"\n }\n\nWith that you should be good to go.\n\nNormally, once your got all that, you can ***use the same credentials\nFOREVER***, you just have to ***REFRESH THEM***.\n\nOAuth1\n~~~~~~\n\n.. code:: python\n\n from yahoo_oauth import OAuth1\n oauth = OAuth1(None, None, from_file='oauth1.json')\n ...\n\n if not oauth.token_is_valid():\n oauth.refresh_access_token()\n\n # Example\n response = oauth.session.post(url, data=body)\n\nOAuth2\n~~~~~~\n\n.. code:: python\n\n from yahoo_oauth import OAuth2\n oauth = OAuth2(None, None, from_file='oauth2.json')\n ...\n\n if not oauth.token_is_valid():\n oauth.refresh_access_token()\n # Example\n response = oauth.session.get(url, params=payload)\n\n.. |Build Status| image:: https://travis-ci.org/josuebrunel/yahoo-oauth.svg?branch=master\n :target: https://travis-ci.org/josuebrunel/yahoo-oauth\n.. |Documentation Status| image:: https://readthedocs.org/projects/yahoo-oauth/badge/?version=latest\n :target: https://readthedocs.org/projects/yahoo-oauth/?badge=latest", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/josuebrunel/yahoo-oauth/archive/0.1.9.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/josuebrunel/yahoo-oauth", "keywords": "yahoo,oauth,oauth1,oauth2", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "yahoo_oauth", "package_url": "https://pypi.org/project/yahoo_oauth/", "platform": "Any", "project_url": "https://pypi.org/project/yahoo_oauth/", "project_urls": { "Download": "https://github.com/josuebrunel/yahoo-oauth/archive/0.1.9.tar.gz", "Homepage": "https://github.com/josuebrunel/yahoo-oauth" }, "release_url": "https://pypi.org/project/yahoo_oauth/0.1.9/", "requires_dist": null, "requires_python": null, "summary": "Python Yahoo OAuth Library. Supports OAuth1 and OAuth2", "version": "0.1.9" }, "last_serial": 1768181, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "f01312a95d4a5be4eb122dbcde610b5f", "sha256": "c1d6b5acfc3cf57e59cd83d12ce5a9298ddd7081aa9c9035d1772bdb526255a3" }, "downloads": -1, "filename": "yahoo_oauth-0.1.2.tar.gz", "has_sig": false, "md5_digest": "f01312a95d4a5be4eb122dbcde610b5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3895, "upload_time": "2015-06-06T14:26:00", "url": "https://files.pythonhosted.org/packages/33/66/db18b7d0af8a60b08d7e30598c0a1de808f61d32acb83ce391f8b860c9a2/yahoo_oauth-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "919a5f532ccabce15309c1ddca4480c7", "sha256": "cc07e425a356358caaef1e114e1ad53ecfdd666299c05ded228ee9a5cbaa05bb" }, "downloads": -1, "filename": "yahoo_oauth-0.1.3.tar.gz", "has_sig": false, "md5_digest": "919a5f532ccabce15309c1ddca4480c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6177, "upload_time": "2015-06-06T16:02:13", "url": "https://files.pythonhosted.org/packages/2b/83/aa9c8c1327ab83ff8c99f56f123548d0081d2370017a117e36c5c3aa5216/yahoo_oauth-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "72c2e4c68222947cc1c19bea613237a9", "sha256": "b86e08d384d80b0ab808c611e3457815f49a671eeb5a70a09f534204fb79e665" }, "downloads": -1, "filename": "yahoo_oauth-0.1.4.tar.gz", "has_sig": false, "md5_digest": "72c2e4c68222947cc1c19bea613237a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6196, "upload_time": "2015-06-07T05:58:57", "url": "https://files.pythonhosted.org/packages/da/46/f428cac509fb448eb0fd993db46a5fcab4c7062c117cc5e4be358d3927c4/yahoo_oauth-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "3fe3a8ee863d2e64ba8f75ac950ea446", "sha256": "56266789042f644e4696b4362a051e82b0046d6ec38fd8c16913a5b1bd252ac4" }, "downloads": -1, "filename": "yahoo_oauth-0.1.5.tar.gz", "has_sig": false, "md5_digest": "3fe3a8ee863d2e64ba8f75ac950ea446", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6611, "upload_time": "2015-07-25T16:52:24", "url": "https://files.pythonhosted.org/packages/4b/a9/fefc559da9d38008d129fc0fb4494157650ad1c0baa71e233665bf7e158d/yahoo_oauth-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "90e2f6efb27f6aab69e9545903698f6c", "sha256": "e16d34af5ed616b2e195640b7c728d7a963d029e307b807f721f82d22c6b15e6" }, "downloads": -1, "filename": "yahoo_oauth-0.1.6.tar.gz", "has_sig": false, "md5_digest": "90e2f6efb27f6aab69e9545903698f6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6641, "upload_time": "2015-08-03T11:24:24", "url": "https://files.pythonhosted.org/packages/5d/08/b5800cc0552d22f3c52f6999d409b1b65718c53de1d578011b9051b10818/yahoo_oauth-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "4e2b94a801c5a7f8b0c7bbbefaa1d8ce", "sha256": "35e5f0693da2145ace7ce6d25b6a79cc5b2a2479bca71b1c330352696b8c43f1" }, "downloads": -1, "filename": "yahoo_oauth-0.1.7.tar.gz", "has_sig": false, "md5_digest": "4e2b94a801c5a7f8b0c7bbbefaa1d8ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6630, "upload_time": "2015-08-03T11:46:02", "url": "https://files.pythonhosted.org/packages/c6/ab/35236105c94c893cf902366e5f7b9c2bdf2c18a5f508949abe3c851b1ea8/yahoo_oauth-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "6562801ddc4433711d5c9215ae033e18", "sha256": "af4d5ce9c1c85ed77bf94decb0be20acf2d9a2ec5494d2acdb79a471c30cc223" }, "downloads": -1, "filename": "yahoo_oauth-0.1.8.tar.gz", "has_sig": false, "md5_digest": "6562801ddc4433711d5c9215ae033e18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6903, "upload_time": "2015-10-10T19:37:38", "url": "https://files.pythonhosted.org/packages/00/75/285e53bff8c3875d1aa89bb1b045c63f6bd0edf38f2bb8d27b69b74bb33b/yahoo_oauth-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "f9634fed059c4e6e8d660d56ada9c839", "sha256": "23dd205f84d9a94949d9827bd22a18f8513ddba4228ce66ea30430f1a5ed2485" }, "downloads": -1, "filename": "yahoo_oauth-0.1.9.tar.gz", "has_sig": false, "md5_digest": "f9634fed059c4e6e8d660d56ada9c839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6816, "upload_time": "2015-10-14T10:11:16", "url": "https://files.pythonhosted.org/packages/09/10/95e50cc300bc2ffe8a37c00b9d29d3e5f1423fe0d5c90ad45244995b4a2a/yahoo_oauth-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9634fed059c4e6e8d660d56ada9c839", "sha256": "23dd205f84d9a94949d9827bd22a18f8513ddba4228ce66ea30430f1a5ed2485" }, "downloads": -1, "filename": "yahoo_oauth-0.1.9.tar.gz", "has_sig": false, "md5_digest": "f9634fed059c4e6e8d660d56ada9c839", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6816, "upload_time": "2015-10-14T10:11:16", "url": "https://files.pythonhosted.org/packages/09/10/95e50cc300bc2ffe8a37c00b9d29d3e5f1423fe0d5c90ad45244995b4a2a/yahoo_oauth-0.1.9.tar.gz" } ] }