Hi Community
I am trying to get the “display_name” of the viewer that interacts with my extension
I read the documentation and found that I do that with the Twitch API https://dev.twitch.tv/docs/api/reference#get-users
But when making my requests it throws me the following error:
{
“error”: “Unauthorized”,
“status”: 401,
“message”: “Invalid OAuth token”
}
I understand that the following parameters are sent:
-id of the user that I want to read their information.
2 headers:
-The authorization with the token in Bearer format (generated with JWT)
-The Client-Id
All this I am sending and it does not respond to me, does anyone know what I can be doing wrong?
I leave my data here:
Client-ID: icty3i5g0xkb0wpr8vkwr7inwy96ae
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
UserID: 554781967