Closed Streusel closed 8 years ago
Looking at this a little further it appears that they haven't changed it. If you check the json object on their Readme.md you will see that "error" is at the base of the object so you shouldn't need to hit ['token']
if you have an example of the documentation that states there is an issue then let me know and I'll adjust it accordingly. Sorry about the lengthy delay in response, haven't had the motivation to look back at it.
Just checked the base url on the api and it looks like you're correct.
It appears twitch has deprecated the 'error' field on https://github.com/Xxplosions/twitchtv-oauth/blob/master/twitchtv.php#L98 The correct way to check if something worked or not is to check the ['token']['valid'] field now, the response will be bool(true) or bool(false).