Stream down [WEBHOOK]

Hi, im sorry if this is just a misreading from me.

I got the subscription working, and the stream UP event works like a charm.
The stream down though:

As seen in the docs a stream down event, its a POST like the Stream UP, but how am i supposed to single out the stream on my website that is going offline? since the payload is just empty?

If you look in the headers of the request you can parse the “link” header:

Something like (from my log)

"link":"<https://api.twitch.tv/helix/webhooks/hub>; rel=\"hub\", <https://api.twitch.tv/helix/users/follows?to_id=TWITCHOD>; rel=\"self\"

So you can parse that out.

Personally I’m using NodeJS and Express Param routing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.