Add scope to the google sync client (#890).

This commit is contained in:
Alex Tselegidis 2020-09-24 09:43:11 +03:00
parent 8c2058d70f
commit 4c10b5a173

View file

@ -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);
}