1.0.6 • Published 6 years ago

@times-stories/my-articles v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

@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);