forked from mirrors/easyappointments
Remove the Google Calendar read-only scope use as it is not needed (#1212)
This commit is contained in:
parent
7d10ab7d9d
commit
5569369b15
1 changed files with 6 additions and 2 deletions
|
@ -53,8 +53,12 @@ class Google_sync {
|
||||||
$this->CI =& get_instance();
|
$this->CI =& get_instance();
|
||||||
|
|
||||||
// Initialize google client and calendar service.
|
// Initialize google client and calendar service.
|
||||||
|
$http = new GuzzleHttp\Client([
|
||||||
|
'verify' => false
|
||||||
|
]);
|
||||||
|
|
||||||
$this->client = new Google_Client();
|
$this->client = new Google_Client();
|
||||||
|
$this->client->setHttpClient($http);
|
||||||
$this->client->setApplicationName(config('google_application_name'));
|
$this->client->setApplicationName(config('google_application_name'));
|
||||||
$this->client->setClientId(config('google_client_id'));
|
$this->client->setClientId(config('google_client_id'));
|
||||||
$this->client->setClientSecret(config('google_client_secret'));
|
$this->client->setClientSecret(config('google_client_secret'));
|
||||||
|
@ -64,7 +68,7 @@ class Google_sync {
|
||||||
$this->client->setAccessType('offline');
|
$this->client->setAccessType('offline');
|
||||||
$this->client->addScope([
|
$this->client->addScope([
|
||||||
Google_Service_Calendar::CALENDAR,
|
Google_Service_Calendar::CALENDAR,
|
||||||
Google_Service_Calendar::CALENDAR_READONLY
|
// Google_Service_Calendar::CALENDAR_READONLY
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->service = new Google_Service_Calendar($this->client);
|
$this->service = new Google_Service_Calendar($this->client);
|
||||||
|
|
Loading…
Reference in a new issue