1
vote
access_token not present in /oauth/access_token response
Unpack response content with $response->getBody()->getContents().
use GuzzleHttp\Client;
Route::get('/approve', function () {
header('Location: https://stackexchange.com/oauth?client_id=12345&...
1
vote
Unable to decode HTML entities in the API response?
Several things:
The problem is not HTML entities, it is that the API always returns compressed data. Don't try to use file_get_contents() for that.
Use cURL, but note that using cURL with HTTPS is ...
Only top scored, non community-wiki answers of a minimum length are eligible