I’m trying to listen to the channel-points-channel-v1 topic using pubsub. In the scope when generating my token, I’ve put channel:read:redemptions as stated in the documentation : https://dev.twitch.tv/docs/pubsub#topics .
But when i send the LISTEN message, the answer comes back with the error ERR_BADAUTH.
If I add “channel_read” in the scope, it works without the error. But this scope is deprecated from what I understand, and I don’t want those privileges, which I shouldn’t need.
Am I doing something wrong or am I missing something ? Or is it a bug in the API ?
The token is a user access one, generated via the Implicit code flow. If I try a request to https://id.twitch.tv/oauth2/validate with the header Authorization: Bearer and the token, I’ve got a json response, with a login key and a value which is my username.
I’m using the endpoint : https://api.twitch.tv/kraken/channel to find the channel id. So it’s the right one. And if I only keep the following topic, I don’t have the error, and if I try a follow on my channel, I’ve got the message through pubsub which confirm it’s the right one.
Any idea ?
Is there another to find my channel id ? I’m using v5 api for that, which is deprecated. Maybe there’s something new ?