@bustle/apple-news

3.0.0 • 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!

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

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)

License

MIT

/@bustle/apple-news/

    Package Sidebar

    Install

    npm i @bustle/apple-news

    Weekly Downloads

    17

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    346 kB

    Total Files

    16

    Last publish

    Collaborators

    • eggplantkiller
    • tholman
    • teety
    • tylerlove
    • zeejab
    • anujpan
    • gdub
    • bustle-deploy
    • redterror
    • wabyad
    • sarahganis
    • cg3ntry