(Recommended: Check out YouTube's official guide.)
- Install on a server that is internet accessible.
- Set the following required config options in
config.json
:- notifications_callback (e.g.
http://example.com/api/notifications
).
- notifications_callback (e.g.
- Start the server (e.g.
python3 main.py
). - Make a subscription request to the API:
- cURL example:
curl -X POST http://example.com/api/subscribe?id=CHANNEL_ID
- cURL example:
PubSubHubbub is an open protocol for distributed publish/subscribe communication on the Internet. It generalizes the concept of webhooks and allows data producers and data consumers to work in a decoupled way.
PubSubHubbub provides a way to subscribe, unsubscribe and receive updates from a resource, whether it's an RSS or Atom feed or any web accessible document (JSON...).