Missing authorization token

I hava a client-id and a client secret, I got an app access token with this informations but when I try to use get streams endpoint (https://api.twitch.tv/helix/streams) and it returns unauthorized message.
{
“error”: “Unauthorized”,
“status”: 401,
“message”: “OAuth token is missing”
}

What is the problem here?
My request is
https://api.twitch.tv/helix/streams?Authorization=Bearer apptoken&Client-ID=client-id

First, a Client Secret isn’t an OAuth token. You need to follow the Authentication docs to get an OAuth token used to make requests.

Secondly, you can’t send the Authorization or Client-ID as querystring params, they must be sent as headers in the request.

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