I’ve got a led strip in my room, and I’ve made a command so my viewers can change the color of it.
But I would like to use channel point to do it, so I can prevent spamming etc…
Is there a way to get the usage of the channel points?
Use EventSub to recieve notifications in real time
Eventsub, is a transport agnostic notification system, which currently only offers a webhook transport (so your server would need to be web accessable + a Real SSL Cert)
Alternatively you can repeat poll the Get Custom Reward Redemption API.
You’ll also need to use this to catch missed rewards between “server restarts” on your side
For both you’ll need to use the Update Redemption Status endpoint to mark redeems as processed.
To use user tokens, you will need to set up your Client ID provided during configure with a redirect URI of http://localhost:3000. App access tokens will work without this step. You can configure that on the Twitch Developer console.
error: 'Forbidden',
status: 403,
message: 'custom reward was created by a different client_id or channel points are not available for the broadcaster'
}
You you can only access/manage rewards created by the same clientID.
EventSub will broadcast all the reward redeems, but of course you can’t really do a catch up for redeems the clientID doesn’t own.
But the API will only let you get the reward redeems for rewards created by the clientID
This prevents two clientID’s messing with each others redemptions.
So you’d probably to delete the dashboard created rewards and use the API to create the reward. After it has been created via the API you can modify any part of the reward via the dashboard.