{ "info": { "author": "Rakan Alhneiti", "author_email": "rakan.alhneiti@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Pocket-API\n=======================\n\n[![Build Status](https://travis-ci.org/rakanalh/pocket-api.svg?branch=master)](https://travis-ci.org/rakanalh/pocket-api)\n\nThis package provides a wrapper class around [GetPocket](http://getpocket.com) V3 APIs.\n\nPocket-CLI\n----------\n\nYou can checkout [pocket-cli](https://www.github.com/rakanalh/pocket-cli), which is an application for reading / listing /managing your pocket articles from the terminal\n\nInstallation\n------------\n\n\t\tpip install pocket-api\n\nUsage\n--------\n\nFirst, you have to [Create your consumer key](https://getpocket.com/developer/apps/new) from getpocket's developer console. To get the access token, you have to authorize the app on your own account. There are tools on the web that can automate this for you such as [fxneumann's OneClickPocket](http://reader.fxneumann.de/plugins/oneclickpocket/auth.php)\n\n\tfrom pocket import Pocket, PocketException\n\n\n\tp = Pocket(\n\t\tconsumer_key='',\n\t\taccess_token=''\n\t)\n\n\t# Fetch a list of articles\n\ttry:\n \tprint(p.retrieve(offset=0, count=10))\n\texcept PocketException as e:\n \tprint(e.message)\n\n # Add an article\n p.add('https://pymotw.com/3/asyncio/')\n\n\t# Start a bulk operation and commit\n\tp.archive(1186408060).favorite(1188103217).tags_add(\n\t\t1168820736, 'Python'\n\t).tags_add(\n\t\t1168820736, 'Web Development'\n\t).commit()\n\n\nMethods\n-------\n\n* Add an article\n\n\t\tadd(url, title, tags, tweet_id)\n\n* Retrieve articles\n\n\t retrieve(state, favorite, tag, contentType,\n sort, detailType, search, domain,\n since, count, offset)\n\nBulk Actions\n------------\n* Add an article to bulktime_of_action\n\n\t\tbulk_add(item_id, ref_id, tags, time_of_action, title, url)\n\n* Archive article\n\n\t archive(item_id, time_of_action)\n\n* Reread an article\n\n\t readd(item_id, time_of_action)\n\n* Mark article as favorite\n\n\t favorite(item_id, time_of_action)\n\n* Remove favorite mark from article\n\n\t unfavorite(item_id, time_of_action)\n\n* Delete an article from list\n\n\t delete(item_id, time_of_action)\n\n* Add tag to article\n\n\t tags_add(item_id, tags, time_of_action)\n\n* Remove tag from article\n\n\t tags_remove(item_id, tags, time_of_action)\n\n* Replace tags on article\n\n\t tags_replace(item_id, tags, time_of_action)\n\n* Clear tags from article\n\n\t tags_clear(item_id, time_of_action)\n\n* Rename a tag\n\n\t tag_rename(old_tag, new_tag, time_of_action)\n\n* Reset bulk actions (removes all previously registered actions)\n\n\t reset()\n\n* Send request of all bulk items to getpocket\n\n\t commit()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rakanalh/pocket-api", "keywords": null, "license": "LICENSE", "maintainer": null, "maintainer_email": null, "name": "pocket-api", "package_url": "https://pypi.org/project/pocket-api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pocket-api/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rakanalh/pocket-api" }, "release_url": "https://pypi.org/project/pocket-api/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "A python wrapper around GetPocket API V3.", "version": "0.1.5" }, "last_serial": 2361850, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "9488badeb6b0ffc16053c86ad23022b0", "sha256": "1c73cbee1da3d89c97e2ae8b66f0fe7388c514b0ec3439088aa9259174b91435" }, "downloads": -1, "filename": "pocket-api-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9488badeb6b0ffc16053c86ad23022b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4852, "upload_time": "2016-02-09T20:00:26", "url": "https://files.pythonhosted.org/packages/47/b0/562752ccd060e089ad3d04a86b2dd98ad066a1fb44dd9e65bf0d8b275fca/pocket-api-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4609a6f2ce500537e96afdd98734db79", "sha256": "2f3f0bcbf9cf36b1b0642293a3c7924c980d67903c1ea4a5a3d880fe7b5fbb5b" }, "downloads": -1, "filename": "pocket-api-0.1.3.tar.gz", "has_sig": false, "md5_digest": "4609a6f2ce500537e96afdd98734db79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5110, "upload_time": "2016-02-15T19:54:35", "url": "https://files.pythonhosted.org/packages/8d/a2/88e9c0e463862d41115994701119423522b23ef29458088ec0e58ae4f4e1/pocket-api-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "82049d9813819638b1ba74351a206ff1", "sha256": "4dbc3887b41e73d436b8cdedff91d408b07d5696840e246ce5eb5b4c8a334e0b" }, "downloads": -1, "filename": "pocket-api-0.1.4.tar.gz", "has_sig": false, "md5_digest": "82049d9813819638b1ba74351a206ff1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3022, "upload_time": "2016-09-24T22:33:14", "url": "https://files.pythonhosted.org/packages/38/08/d80896433f6c89e494fe6be0ed2503603b76ae73ee0999b25b8268053161/pocket-api-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a2a7504ba3177618016846bf98e48b56", "sha256": "23ffc56886d37bb0bb21906668a61442c20b6dac38e70f6b8afe00610d8ef510" }, "downloads": -1, "filename": "pocket-api-0.1.5.tar.gz", "has_sig": false, "md5_digest": "a2a7504ba3177618016846bf98e48b56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5310, "upload_time": "2016-09-24T22:51:18", "url": "https://files.pythonhosted.org/packages/24/0f/b4f6994460c4696a918143a736d960c0b6b8de39a7fdd8555197c7579219/pocket-api-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a2a7504ba3177618016846bf98e48b56", "sha256": "23ffc56886d37bb0bb21906668a61442c20b6dac38e70f6b8afe00610d8ef510" }, "downloads": -1, "filename": "pocket-api-0.1.5.tar.gz", "has_sig": false, "md5_digest": "a2a7504ba3177618016846bf98e48b56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5310, "upload_time": "2016-09-24T22:51:18", "url": "https://files.pythonhosted.org/packages/24/0f/b4f6994460c4696a918143a736d960c0b6b8de39a7fdd8555197c7579219/pocket-api-0.1.5.tar.gz" } ] }