From 4c10b5a17393261341ff4af42fe0e3072097d397 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 24 Sep 2020 09:43:11 +0300 Subject: [PATCH] Add scope to the google sync client (#890). --- application/libraries/Google_sync.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/Google_sync.php b/application/libraries/Google_sync.php index bd493647..07388b7d 100644 --- a/application/libraries/Google_sync.php +++ b/application/libraries/Google_sync.php @@ -62,6 +62,7 @@ class Google_Sync { $this->client->setClientSecret($this->framework->config->item('google_client_secret')); $this->client->setDeveloperKey($this->framework->config->item('google_api_key')); $this->client->setRedirectUri(site_url('google/oauth_callback')); + $this->client->setScopes('https://www.googleapis.com/auth/calendar'); $this->service = new Google_Service_Calendar($this->client); }