@times-stories/my-articles

1.0.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @times-stories/my-articles

Weekly Downloads

4

Version

1.0.6

License

none

Unpacked Size

2.48 kB

Total Files

4

Last publish

Collaborators

  • danielbenclark
  • chrishutchinson
  • flashcheeks