Pocket

FREE
By raygorodskij
Updated 5 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

Pocket API Documentation

Pocket was created to help people keep interesting articles, videos and much more from the web and enjoy them later.

View API Details
POSTaddFavoriteItem
POSTaddTagsToItem
POSTarchiveItem
POSTcreateItem
POSTdeleteItem
POSTgetAccessToken
POSTgetAllItems
POSTgetRequestToken
POSTpostMultipleActions
POSTremoveAllTags
POSTremoveFavoriteItem
POSTremoveTagsFromItem
POSTrenameTag
POSTreplaceTagsFromItem
POSTunarchiveItem
POSTaddFavoriteItem

Mark an item as a favorite.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
actionsARRAY
REQUIREDArray of actions.You can send one action or you can send dozens. The list of actions should be sent as a JSON array to vendor.
accessTokenSTRING
REQUIREDThe user's Pocket access token.
consumerKeyCREDENTIALS
REQUIREDThe consumer key for your application.
Code Snippet
unirest.post("https://PocketraygorodskijV1.p.rapidapi.com/addFavoriteItem")
.header("X-RapidAPI-Host", "PocketraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://PocketraygorodskijV1.p.rapidapi.com/addFavoriteItem
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://PocketraygorodskijV1.p.rapidapi.com/addFavoriteItem")
.header("X-RapidAPI-Host", "PocketraygorodskijV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication