Call to undefined method GuzzleHttp\Psr7\Request::filledHeader()
This is the error that I'm getting when I try to fetch access token with refresh token.
I have google/apiclient - ^2.0 and as far as I can see it works with guzzlehttp/guzzle: ~5.3.1|~6.0.
I used laravel socialite and made a service for google. I'm making a offline request to fetch the refresh_token from google and update the currently logged user with it.So far everything works.
When I try to create a new Instance of the Google Client and fetch the token with the refresh token I get the following error
Call to undefined method GuzzleHttp\Psr7\Request::filledHeader()
$client = new Google_Client();
$client->refreshToken(Auth::user()->getUserInfo()->refresh_token);
$this->drive = new Google_Service_Drive($client);
The error is in the refreshToken. What am I missing and not doing right?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2FKXVTD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire