2.4.2 • Published 5 years ago

@brute-force/apple-news v2.4.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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