Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube PubSubHubBub Integration

Been stuck on this integration problem for hours now. I am trying to subscribe to a youtube channel updates using https://pubsubhubbub.appspot.com/subscribe.

Subscription Request

And my server is setup to respond with:

Server Response

But when I press DO IT, I always get back the error saying Challenge mismatch.

I am unsure which parameter I am missing to set.

like image 848
Vabs Avatar asked Mar 06 '23 14:03

Vabs


1 Answers

The intended response is not a static value as hub_challenge. It should return back the hub.challenge value which is received in query parameters when GET request is sent to the callback url.

More Information

The request will be something like /notifications?hub.topic=https://www.youtube.com/xml/feeds/videos.xml%3Fchannel_id%3DUCn0QU5ZOaVnEf7LkdyPF9kQ&hub.challenge=216582865281647747&hub.mode=subscribe&hub.lease_seconds=432000"

The response of should be the value hub.challenge (216582865281647747)

like image 149
Vabs Avatar answered Mar 16 '23 20:03

Vabs