pocket_unfavorite: pocket_unfavorite

Description Usage Arguments Details Value

View source: R/pocket_unfavorite.R

Description

Unfavorite items from your Pocket list.

Usage

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

Arguments

item_ids

Character vector. Pocket item IDs you want to unfavorite. Get them, e.g., via pocket_get.

consumer_key

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

access_token

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

Details

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.

Value

Invisibly returns a list containing information on whether the action failed or succeeded, including the respective item ID.


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