Get polls from API : error 401 : unauthorized

You are generating a client credentials token

This kind of token cannot have scopes
This kind of token cannot be used to read poll information

You need a user token. And that user token needs to belong to the user that you want to read the polls of

So to read ninja’s polls you need to get a token from ninja for example

And to read my polls you need a token from me

So follow the user token flow and ask the broadcaster to authenticate to allow access to their polls

You should also read the body of the response as the error message will have noted this information. But you only read the HTTP code and not the error JSON that was also returned