-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to recieve access token #5
Comments
Create your own API key and replace it. That's how I made it working. |
Oh ok. Do I get a key with this manual? https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-client-credentials-flow |
Honestly, i googled and found mine somehow, can't remember (app or chrome extension) and i'm no expert at this :) |
@Fansh1ne are you talking about the Client-ID? |
I have an Idea that might work some of the calls are missing xmlHttp.setRequestHeader('Accept', 'application/vnd.twitchtv.v5+json'); I can add it but I won't be able to test it myself, small kids and no time these days. |
Could you please test the new version of SceneChannel.js here: |
API key. |
Not sure what you mean, the APP does not use an API key. It uses a Client-ID (which is a kind of key I guess), Have you added a new header to the requests with this API key? |
app/scenes/SceneChannel.js: xmlHttp.setRequestHeader('Client-ID', '#change_me'); in loadDataRequest function. Someone wrote this on nikitakatchik/smarttv-twitch and that's what I did. |
Okay, hoppfully my fix above should work and you wont have to replace the Client-ID/API-key everytime. Feel free to test if you got the time. |
I have just tested it. Without changing "app/scenes/SceneChannel.js: xmlHttp.setRequestHeader('Client-ID', '#change_me'); in loadDataRequest function" it's not working as intended. It shows channels but doesn't want to start them. When I changed this it's working normally. |
Okay thanks for testing :) |
Thank you for your hard work! If you need help, I'm here. |
Replaced the Client-ID with a new one and now it works (for now atleast). If you have the time later please download a new copy of master with all the fixes |
Tested. It's working as it should. Great work, thank you so much !
|
For the chat I created #8 Thanks for taking the time to test it 😊👍 |
Yes, I meant using official Twitch website in Chrome or using android twitch app on mobile. Always a 20-30sec delay. |
Hi,
I used your fork as https://github.com/nikitakatchik/smarttv-twitch doesn't work anymore. Your fork works again, I can browse games and see channel thumbnails but as soon as I want to start watching a channel by pressing OK on my remote, it says "Unable to retrieve access token".
Any idea on how I can fix this? Thanks in advance.
The text was updated successfully, but these errors were encountered: