You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be noted that when I use Guzzle instead, the same endpoint works fine:
// Create a new Guzzle client.
$guzzleClient = new GuzzleClient();
// Make a GET request with the OAuth token set in headers.
$response = $guzzleClient->request('GET', $url, [
'headers' => [
'OAuth-Token' => $this->client->getAuth()->getToken()->access_token,
]
]);
// Decode the response JSON.
$data = json_decode($response->getBody()->getContents(), true);
Log::info('Received response from testAccount (raw request)', [
'url' => $url,
'data' => $data,
]);
The text was updated successfully, but these errors were encountered:
Having a difficult time getting this working within Laravel.
Always getting a "Undefined array key 0" error. I am authenticating and getting an access token successfully.
Part of my class:
It should be noted that when I use Guzzle instead, the same endpoint works fine:
The text was updated successfully, but these errors were encountered: