ArturGrigio / google-laravel-calendar-2

Google Calendar API 2.0 implementation for Laravel
5 stars 2 forks source link

there is some error with laravel5.3 #1

Open kmaradona opened 7 years ago

kmaradona commented 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'];

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.

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

ArturGrigio commented 7 years ago

Thank you, I will take a look