Open kmaradona opened 7 years ago
First Error==>
InvalidArgumentException in Client.php line 427: Invalid token format
i think i fixed that by defining $accessToken var on GoogleCalendarFactory.php
$accessToken = json_decode(file_get_contents($credentialsPath), true); $accessToken = $accessToken['installed']['token_uri'];
$accessToken = json_decode(file_get_contents($credentialsPath), true);
$accessToken = $accessToken['installed']['token_uri'];
Second Error: ==> ErrorException in Client.php line 474: Undefined index: expires_in
its on $client->isAccessTokenExpired() its always return ture for some reason.. can`t figure why.
s on $client->isAccessTokenExpired() it
Third Error ==>
when the file is not exists==>
(file_exists($credentialsPath)) {}else{ **HERE** }
InvalidArgumentException in OAuth2.php line 639: missing the required redirect URI
I added a hard coded redirect URL by adding
$client->setRedirectUri('http://localhost:8000/calendar');
After that um getting this error
ErrorException in GoogleCalendarFactory.php line 34: Use of undefined constant STDIN - assumed 'STDIN'
Please talk a look into that
Thank you, I will take a look
First Error==>
InvalidArgumentException in Client.php line 427: Invalid token format
i think i fixed that by defining $accessToken var on GoogleCalendarFactory.php
$accessToken = json_decode(file_get_contents($credentialsPath), true);
$accessToken = $accessToken['installed']['token_uri'];
Second Error: ==> ErrorException in Client.php line 474: Undefined index: expires_in
it
s on $client->isAccessTokenExpired() it
s always return ture for some reason.. can`t figure why.Third Error ==>
when the file is not exists==>
(file_exists($credentialsPath)) {}else{ **HERE** }
InvalidArgumentException in OAuth2.php line 639: missing the required redirect URI
I added a hard coded redirect URL by adding
$client->setRedirectUri('http://localhost:8000/calendar');
After that um getting this error
ErrorException in GoogleCalendarFactory.php line 34: Use of undefined constant STDIN - assumed 'STDIN'
Please talk a look into that