According to the API docs when calling https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions
without a reward ID I should
Returns Custom Reward Redemption objects for a Custom Reward on a channel that was created by the same
client_id
.
Which my understanding means we can call the API without a reward_id and get all the redemptions for the rewards my client_id has created however a few lines down in the documentation also says that reward_id is a required parameter
My aim is for my app to create probably around 12-16 rewards and then poll for redemptions for them. (The creating rewards works fine, I have a few created so far for testing, cerated through my app/client_id)
I was taking inspiration from the Twitch Channel points Node sample on github, but when calling the API without a reward_id like so:
let {body} = await got(`https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions?broadcaster_id=${userId}&status=UNFULFILLED`, {
headers: headers,
responseType: 'json',
});
I just get a bad request HTTPError: Response code 400 (Bad Request)
But if i specify a reward ID i get the redemptions for that ID, what am i missing/doing wrong?