All Projects → rakanalh → pocket-api

rakanalh / pocket-api

Licence: MIT License
A python wrapper around GetPocket API V3.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pocket-api

go-kkbox
KKBOX Open API SDK for Golang.
Stars: ✭ 16 (-84.47%)
Mutual labels:  api-client
wiesbaden
Client to Access Databases from the Federal Statistical Office of Germany (DESTATIS)
Stars: ✭ 32 (-68.93%)
Mutual labels:  api-client
simple-php-api
An extremely simple API (with authentication) example, written in PHP (server) and JS (client), using JSON
Stars: ✭ 23 (-77.67%)
Mutual labels:  api-client
poloniex-api
ARCHIVED --- A Go wrapper to the Poloniex API
Stars: ✭ 15 (-85.44%)
Mutual labels:  api-client
radiobrowser4j
RadioBrowser Java API library
Stars: ✭ 30 (-70.87%)
Mutual labels:  api-client
cv4pve-api-dotnet
Proxmox VE Client API .Net C#
Stars: ✭ 25 (-75.73%)
Mutual labels:  api-client
fusionauth-typescript-client
A TypeScript client for FusionAuth
Stars: ✭ 37 (-64.08%)
Mutual labels:  api-client
nzb
Get Things Done® with nzb, a beautiful terminal interface for Nozbe. Inspired by Wunderline
Stars: ✭ 35 (-66.02%)
Mutual labels:  api-client
openweathermap-java-api
Java API to access openweathermap.org API
Stars: ✭ 19 (-81.55%)
Mutual labels:  api-client
Taviloglu.Wrike.ApiClient
.NET Client for Wrike API
Stars: ✭ 24 (-76.7%)
Mutual labels:  api-client
siteleaf-node
Node library for Siteleaf v2 API
Stars: ✭ 14 (-86.41%)
Mutual labels:  api-client
oasa-telematics-api
The Athens' bus telematics API, complete with types and helper methods 🚌 🚌 🚌
Stars: ✭ 19 (-81.55%)
Mutual labels:  api-client
fetch
Isomorphic Wordpress API client and React hooks - super tiny, super fast.
Stars: ✭ 47 (-54.37%)
Mutual labels:  api-client
GenomicDataCommons
Provide R access to the NCI Genomic Data Commons portal.
Stars: ✭ 64 (-37.86%)
Mutual labels:  api-client
ynab.go
Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.
Stars: ✭ 49 (-52.43%)
Mutual labels:  api-client
ContextIO-node
[DEPRECATED] - Official Node.js client library for the Context.IO Email API
Stars: ✭ 86 (-16.5%)
Mutual labels:  api-client
go-amazon-product-advertising-api
Go Client Library for Amazon Product Advertising API
Stars: ✭ 51 (-50.49%)
Mutual labels:  api-client
pushover
Go wrapper for the Pushover API
Stars: ✭ 112 (+8.74%)
Mutual labels:  api-client
mite-cli
command line interface for time tracking service mite.yo.lk
Stars: ✭ 17 (-83.5%)
Mutual labels:  api-client
nodejs-searchitunes
Lightweight node.js module to quickly search Apple's iTunes Store for music, movies, apps, etc.
Stars: ✭ 25 (-75.73%)
Mutual labels:  api-client

Pocket-API

Build Status

This package provides a wrapper class around GetPocket V3 APIs.

Pocket-CLI

You can checkout pocket-cli, which is an application for reading / listing /managing your pocket articles from the terminal

Installation

	pip install pocket-api

Usage

First, you have to Create your consumer key 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

from pocket import Pocket, PocketException


p = Pocket(
	consumer_key='<Your Consumer Key>',
	access_token='<Your Access Token>'
)

# Fetch a list of articles
try:
	print(p.retrieve(offset=0, count=10))
except PocketException as e:
	print(e.message)

# Add an article
p.add('https://pymotw.com/3/asyncio/')

# Start a bulk operation and commit
p.archive(1186408060).favorite(1188103217).tags_add(
	1168820736, 'Python'
).tags_add(
	1168820736, 'Web Development'
).commit()

Methods

  • Add an article

      add(url, title, tags, tweet_id)
    
  • Retrieve articles

      retrieve(state, favorite, tag, contentType,
               sort, detailType, search, domain,
               since, count, offset)
    

Bulk Actions

  • Add an article to bulktime_of_action

      bulk_add(item_id, ref_id, tags, time_of_action, title, url)
    
  • Archive article

      archive(item_id, time_of_action)
    
  • Reread an article

      readd(item_id, time_of_action)
    
  • Mark article as favorite

      favorite(item_id, time_of_action)
    
  • Remove favorite mark from article

      unfavorite(item_id, time_of_action)
    
  • Delete an article from list

      delete(item_id, time_of_action)
    
  • Add tag to article

      tags_add(item_id, tags, time_of_action)
    
  • Remove tag from article

      tags_remove(item_id, tags, time_of_action)
    
  • Replace tags on article

      tags_replace(item_id, tags, time_of_action)
    
  • Clear tags from article

      tags_clear(item_id, time_of_action)
    
  • Rename a tag

      tag_rename(old_tag, new_tag, time_of_action)
    
  • Reset bulk actions (removes all previously registered actions)

      reset()
    
  • Send request of all bulk items to getpocket

      commit()
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].