Socket
Socket
Sign inDemoInstall

@bustle/apple-news

Package Overview
Dependencies
17
Maintainers
22
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bustle/apple-news

Node.js client for Apple News API


Version published
Weekly downloads
21
increased by133.33%
Maintainers
22
Install size
861 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 06 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc