PubSubHubbub allows Pandora Books Blog to send realtime notifications when new content is published.
Ever wondered how FriendFeed and Twitterfeed get updates from your blog so fast and how Msgboy or Google Reader can show you stories that have just been published?
These apps use the PubSubHubbub protocol.
It's a simple protocol built on HTTP which relies on 3rd parties, called hubs. This page is the hub for Pandora Books Blog.
Pandora Books Blog' Hub
- Send an
POST request to http://pandorabooks.superfeedr.com, with the following params :
hub.mode : subscribe or unsubscribe
hub.verify : sync or async
hub.callback : http://domain.tld/your/callback
hub.topic : http//feed.you.want.to/subscribe/to
- The hub will send a request to your callback url, to verify your intent : your callback must respond with
200 and must echo the hub.challenge provided by the hub.
- If the hub returns
204, you're subscribed!, If it returns 202, the hub will check the subscription later. If it returns anything else, something was wrong, you may want to check the body of hub's the response.
- When you're subscribed, as soon as the hub sees a new entry in a feed, it will send a
POST request with the feed's new entries in the body.
- [Optional]: you can also use Superfeedr's track to filter content on this hub matching a given keyword, a boolean expression, and even geo-filtering.