Open CraZZyRAVEN opened 7 years ago
Hey, The auth key link is dead, I tried to get it working today, but it seems like Twitch changed something in how the old v3 auth keys are generated. I currently do not have enough time to look into that. SimpleTwitchHelper uses the TwitchCSharp which is outdated since Twitch made the v3 Twitch API deprecated. As soon as TwitchCSharp is updated, I will take the time to udate SimpleTwitchHelper as well.
Hey I started to fix the project. So far it is working again. Almost no changes needed but took me really like 3 hours to solve only one problem "Authentifaction failed". Finally I found the problem.
You use this:
https://github.com/michidk/SimpleTwitchHelper/blob/052bdb1efab10ebd24e0957f3f3fec4290ebb537/SimpleTwitchHelper/App.xaml.cs#L115
The parameters are (clientid, auth) but I don't know why you did this way (auth, clientid) like above. Maybe V3 was different?
Nevermind. I changed too
var tempClient = new TwitchAuthenticatedClient(Globals.ClientId, authkey);
And finally it worked.
Then found that RestSharp had bugs in TwitchCSharp too. For some reason AddDefaultHeader is duplicating "Accept". So I added RemoveDefaulHeader first then AddDefaultHeader. Now this is working finally too. Because twitch want to see this in the Accept Header
application/vnd.twitchtv.v5+json
This took my also one hour to figure out why.
After this it was easy peezy. I needed to change many other small things like "channels". V5 is using ID of twitchuser. Not more the name of twitchuser. For now I just changed important things for
For now I changed clientid to my id and also to localhost redirect. So you can copy form there the token.
Hey, thank you for investigating. Some users pushed PR's to the TwitchCSharp API, so there probably changed some stuff. Would be awesome, if you could create a pull request, so other users can enjoy your bugfixes :)
Yea I will do it soon. I will. The problem is its not only this repo and some bugs needs still a fix.
Hello! I cant recieve an auth key because both links are not working