@brute-force/apple-news
Node.js client for Apple News API
Last updated a year ago by reuel.alvarez .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @brute-force/apple-news 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.4.2                                ...           latest (a year ago)

6 Versions

  • 2.4.2                                ...           a year ago
  • 2.4.1                                ...           a year ago
  • 2.4.0                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 7
Last Day 0
Last Week 6
Last Month 0
Dependencies (7)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |