@times-stories/my-articles
v1.0.6
Published
> The networking logic for working with My Articles on The Times website
Downloads
5
Keywords
Readme
@times-stories/my-articles
The networking logic for working with My Articles on The Times website
Installation
$ yarn add @times-stories/my-articles
Usage
import { isSaved, save, remove } from "@times-stories/story";
// Check if an article is saved, returns a Promise containing a boolean
await isSaved(articleId);
// Save an article to My Articles
await save(articleId, "News");
// Remove an article from My Articles
await remove(articleId);