pocket_modify: pocket_modify

Description Usage Arguments Details

View source: R/pocket_modify.R

Description

Function that sends a request with a list of actions to the 'modify' Pocket API endpoint.

Usage

1
2
3
4
5
pocket_modify(
  actions,
  consumer_key = Sys.getenv("POCKET_CONSUMER_KEY"),
  access_token = Sys.getenv("POCKET_ACCESS_TOKEN")
)

Arguments

actions

List. List of lists where each element is an action object. See https://getpocket.com/developer/docs/v3/modify.

consumer_key

Character string. Your Pocket consumer key. Defaults to Sys.getenv("POCKET_CONSUMER_KEY").

access_token

Character string. Your Pocket request token. Defaults to Sys.getenv("POCKET_ACCESS_TOKEN").

Details

see https://getpocket.com/developer/docs/v3/modify. This function uses the modify endpoint of the Pocket API which exhibits some weird behaviour. For example, even if a 'modify' action is not successful, the API will still return "success". See [issue [#26](https://github.com/CorrelAid/pocketapi/issues/26) for a discussion.


pocketapi documentation built on Nov. 20, 2020, 5:08 p.m.