Closed JasonRivers closed 5 years ago
You can access the Response payload via the response
attribute on the Result
class while I have a look in how to fix this permanently.
Twitch::setClientId('REDACTED');
Twitch::setClientSecret('REDACTED');
$result = Twitch::getOAuthToken($code);
$data = json_decode((string) $result->response->getBody());
Could you try out version 2.1.1?
I've added fallback support for non-helix standardized response payloads as seen in this test
Thanks! I'll give it a shot this week!
How do I get the OAuth token with a given "code"? The "token" response here is NULL
I'm not sure how I'm supposed to parse the data to get the token out?
From within Laravel I'm doing the following:
The response is: