I'm reading trough http://framework.zend.com/manual/1.12/en/zend.feed.pubsubhubbub.introduction.html
and trying to understand how Pubsubhubbub subscription works. Specifically, what are the credentials I store or how does my hub identify a subscriber. The subscriber has some rss/atom client id, how do I know who the client id is?
Or more precisely, how does the hub know who the subscriber is or how do I tell it who the new subscriber is?
Asked
Active
Viewed 51 times
0

Mihai Bujanca
- 4,089
- 10
- 43
- 84
1 Answers
1
The algorithm for subscribers is actually pretty simple.
- Fetch existing RSS feed
- Look for link[@rel="hub"]
- Subscribe to the hub identified with href of link[@rel="hub"] by sending the feed url (hub.topic) and a webhook to your server (hub.callback)
- Confirm subscription when the hub sends a verification to the hub.callback
- Wait for notifications via POST requests on hub.callback with the content in them.
That's it.
There are no credentials involved, there is no "your hub" as a subscriber, no client id...

Julien Genestoux
- 31,046
- 20
- 66
- 93
-
Actually what I want is to get how does the server / the hub identify me as a subscriber – Mihai Bujanca Oct 22 '14 at 22:17
-
Read step 3: "a webhook to your server (hub.callback)" – Julien Genestoux Oct 23 '14 at 08:40