Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/sdotz/apple-news-push-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sdotz/apple-news-push-api

  • v0.0.0-20191201235432-ab9860495a35
  • Source
  • Go
  • Socket score

Version published
Created
Source

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

FAQs

Package last updated on 01 Dec 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc