@brute-force/apple-news

2.4.2 • Public • Published

Apple News API client

API wrapper module for Apple News API https://developer.apple.com/library/ios/documentation/General/Conceptual/News_API_Ref/index.html

Supports creating, reading, updating, deleting, and searching articles. Also supports reading and listing sections, as well as reading channels! Also also supports sending Apple News iOS notifications.

For Node versions < 4, use apple-news@^1. For Node versions >= 4 use apple-news@^2

Install

npm install apple-news --save

Usage

var client = createClient({
  apiId: '<API-ID>',
  apiSecret: '<API-SECRET>'
});

Methods

client.readChannel ({ channelId }, cb)
client.listSections ({ channelId }, cb)
client.readSection ({ sectionId }, cb)
client.createArticle ({ channelId, article, bundleFiles, isPreview = true }, cb)
client.readArticle ({ articleId }, cb)
client.updateArticle ({ articleId, revision, article, isPreview = true }, cb)
client.deleteArticle ({ articleId }, cb)
client.alertArticle ({ articleId, alertBody }, cb)

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @brute-force/apple-news

Weekly Downloads

1

Version

2.4.2

License

MIT

Unpacked Size

347 kB

Total Files

16

Last publish

Collaborators

  • reuel.alvarez