Check Channel Subscription by User is not respoding

Hi
I’m using v5 API (https://dev.twitch.tv/docs/v5/reference/channels#check-channel-subscription-by-user) and just a moment before subscribed a channel that is sweet_anita _id : 217377982, but when I ran the API is says
{
“error”: “Not Found”,
“status”: 404,
“message”: “217377982 has no subscriptions to 536156549”
}

the end points are : https://api.twitch.tv/kraken/channels/536156549/subscriptions/217377982

scopes are : $scope_array = array(‘user_read’,‘user_follows_edit’,‘channel_check_subscription’);

Let me know if anything else required

The user 217377982 aka Sweet Anita does not subscribe to use 536156549 aka arnav1212

You have the ID’s the wrong way round, for the channels endpoint

https://api.twitch.tv/kraken/channels/STREAMER/subscriptions/USER

Or you do

https://api.twitch.tv/kraken/users/USER/subscriptions/STREAMER

https://dev.twitch.tv/docs/v5/reference/users#check-user-subscription-by-channel

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