YouTube API webhooks - PubSubHubbub a.k.a. WebSub with Rails

preview_player
Показать описание
In this episode, you'll learn how to handle webhooks from the YouTube Data API using PubSubHubbub or WebSub with Ruby on Rails.

## Table of contents

00:00 Introduction
01:23 Generate a new Webhooks controller
02:53 Start ngrok tunnel
04:05 Verify PubSubHubbub callback URL
06:51 Handle atom notification
08:14 Create a background job to handle notification
13:46 Conclusion

#rails #rubyonrails #webhook
#rails #rubyonrails
Рекомендации по теме
Комментарии
Автор

A great video, thank you so much. From start to end the video was awesome. I loved how well and fast you were thinking and executing and of course, the pubsubhubbub was so confusing to me just only from there documentation. But following your video I was able to implement it.

megamehdi
Автор

I tested with a controlled youtube channel, and it seems a lot of messages are missed; have you had this issue?

ytvn-nknn
Автор

Very timely, I just submitted a quota increase request (for my awful polling solution) and then boom, thought to myself "I wonder if there is a push solution so I can avoid polling", googled it, found that page, then searched YouTube found your great video! Oh and btw, I assume one could manage subscriptions in the app too by sending the same requests that page does?

merefield
Автор

Do you know if it sends requests when you get things like subscriptions and comments?

JackHartwig
Автор

I am able to subscribe, yielding "verified" state while checking. Despite that I am not getting any updates - nor any errors on diagonostic page. As if no updates ever happend.

Is pubsubhubbub currently broken? Or could it be that it doesn't like ip as hostname, custom port or no ssl (despite sending and verifying subscription). Or what else could be wrong :o

GrzesiuG
Автор

Thanks for great video! Just wanna understand what happens if our service is down and meanwhile few contents added to channel. Will our service receive all notifications once our service brought up?
Thanks again!

praveenellaiyan
Автор

Hey CJ,

Can you do a series on Rebuilding Rails framework?

A series that will demystify Rails magic.

Something like we had in Owning Rails course kr noah Gibbs books Rebuilding Rails.

For many it would be a goldmine and a timeless resource.

siyaram
Автор

Hi CJ, nice video, thanks. Can the webhook tell you when a video has been deleted, made unembeddable, etc?

tomdesaulniers
Автор

I would have tried to emulate the backend with Postman to better understand the different options before building it with rails. But that's personal ;-)

stpaquet
Автор

How do you set up your own hub? Do you HAVE to use one of the already set up hubs like the google one?

compteprivefr
Автор

Nice simple explanation mate. Keep up the good work.
Mind sharing what Video tool you use to record the video ?

naadodi_tamilan
Автор

I managed to verify the hub challenge but the this is not real time:(. I am waiting for 15min+ and still haven't got any notifications. Probably have to poll things

hsbtech
Автор

This Hubba Bubba thing, only supports video upload and description edit, but there is nothing out there that would allow a dev to use the YouTune API to receive/read live stream messages in real time. :(

cristicode
welcome to shbcf.ru