New Twitch API give me 404 Not Found


#1

hi guys !

I try to switch to new twitch API (helix), but i hit a snag.

The doc at https://dev.twitch.tv/docs/authentication/#sending-user-access-and-app-access-tokens said curl -H "Authorization: Bearer <access token>" https://api.twitch.tv/helix/

So i try this on my terminal (and on my php server) and i got this
curl -H "Authorization: Bearer <my_bearer_access_token>" https://api.twitch.tv/helix/

but this return {“error”:“Not Found”,“status”:404,“message”:""}

does anyone know how to solve that?

For information, i try to make a authentication system (who worked with kraken :broken_heart:)

Thanks for yours replies !


#2

That’s just an example of how to send an access token, there’s no actual https://api.twitch.tv/helix/ endpoint which is why it 404’s.

For an authentication system you can either use the validation endpoint: https://dev.twitch.tv/docs/authentication/#validating-requests

or the Get Users endpoint: https://dev.twitch.tv/docs/api/reference/#get-users