User/follows giving out error: Error: User ID "follows" is invalid

When I make calls from cUrl, it works fine; but however when I make calls from node.js with the following headers, it gives me error in this url: https://api.twitch.tv/kraken//users/follows?to_id=69056964.

Here goes the headers:
“Accept”: “application/vnd.twitchtv.v5+json”,
//“Authorization”: "Bearer " + this.oauth,
“Client-ID”: this.clientId,

Well half your request is to kraken and the other half is to helix…

Are you after helix or kraken?

GET https://api.twitch.tv/helix/users/follows?to_id=<user ID>

or

GET https://api.twitch.tv/kraken/channels/<channel ID>/follows
1 Like

You got the point, I didn’t notice the difference there :smiley:
I have to use helix.

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