Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/micnews/apple-news
A Node.js client for interacting with the Apple News API :newspaper:
https://github.com/micnews/apple-news
apple apple-news news node nodejs publish publisher publishing
Last synced: about 2 months ago
JSON representation
A Node.js client for interacting with the Apple News API :newspaper:
- Host: GitHub
- URL: https://github.com/micnews/apple-news
- Owner: micnews
- Created: 2016-04-08T09:05:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-30T13:53:15.000Z (over 1 year ago)
- Last Synced: 2024-04-14T12:39:18.178Z (9 months ago)
- Topics: apple, apple-news, news, node, nodejs, publish, publisher, publishing
- Language: JavaScript
- Homepage:
- Size: 555 KB
- Stars: 37
- Watchers: 12
- Forks: 24
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`**
## Install
```
npm install apple-news --save
```## Usage
```js
var client = createClient({
apiId: '',
apiSecret: ''
});
```## 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