Use kraken or new API to “catch up” or get initial status
Yeah that was my alternative plan
to initial fetch all relevant users once and find out who is online/offline that way
Stream downs should send a POST with a (near enough) empty body. IE the same as calling kraken/helix which returns a null response if the target stream is down. Check the “link” header for additional information
Thanks for the info, i seem to get that down post sometimes, although it doesn’t work most of the time for me, and mostly only once directly after the initial verify call, i don’t have that problem for the stream up callback so i guess that my response handling should work correctly because my webhook is called for the up events, just the down don’t seem to be triggered for me.
As for the headers, is there a more reliable way to get the user_id for the down event? it seems as if there is only the link header from which i can parse it, but the header looks like this:
<https://api.twitch.tv/helix/webhooks/hub; rel=“hub”, https://api.twitch.tv/helix/streams?user_id=135542076; rel=“self”
which isn’t exactly the best way to send that information^^