Basic user info from access token

Hi,

I’ve managed to get an access token for a user using the helix API (the new API). How do I get basic user information from this? The kraken API is apparently deprecated and the new one seems partial with bad documentation.

My end goal would be to get the amount of followers that the logged in account has, but it seems that I would need to get the user id first.

Thanks in advance!

deni

Either

On the validation end point

or the users endpoint

With just a Bearer token.

If neither a user ID nor a login name is specified, the user is looked up by Bearer token.

I ended up calling:

https://api.twitch.tv/helix/users

Authenticated with the bearer token

curl -H "Authorization: Bearer xxx" https://api.twitch.tv/helix/users

Which gave me basic user information (including the user id which I can use to check follower count).

Thanks.

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