Skip to content

Library and command line tool for interacting with the Apple News Push API

License

Notifications You must be signed in to change notification settings

sdotz/apple-news-push-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apple News Push API

A library and command line tool for interacting with the Apple News push API

The library aims to be complete and easy to use both as tool for interacting with the API manually, and for building larger applications which syndicate content to the Apple News platform.

Todo

  • Implement all API methods and options
  • CLI
  • Push notifications
  • Scan article.json for bundle:// URLs, find those files in the bundle, and add to multipart upload
  • Refactor all API methods to return response objects and move JSON printing out to CLI land
  • Add ability to download a bundle locally (also w/ font files stored somewhere)
  • Make CLI friendly with validations and meaningful errors
  • Add tests
  • Clean up project structure, dirs, package names etc.
  • Implement paging searchArticles through channels or iterator
  • Interactive paging through searchArticles in CLI

Issues

I think the promoteArticles API might be broken when sending an empty array. Docs say you can do this but all I get back is a server error.

Usage

Install and use as a command line tool:

go get github.com/sdotz/apple-news-push-api/...
go install github.com/sdotz/apple-news-push-api/cmd/anews

Set the envoriment variables APPLE_NEWS_API_KEY, APPLE_NEWS_API_SECRET, CHANNEL_ID

anews --help

About

Library and command line tool for interacting with the Apple News Push API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages