diff --git a/app/library/App/Bootstrap/RouteBootstrap.php b/app/library/App/Bootstrap/RouteBootstrap.php index 04a5184..c791c6e 100755 --- a/app/library/App/Bootstrap/RouteBootstrap.php +++ b/app/library/App/Bootstrap/RouteBootstrap.php @@ -59,6 +59,7 @@ class RouteBootstrap implements BootstrapInterface putenv('GOOGLE_APPLICATION_CREDENTIALS=/var/www/phalcon/ca4a1bd8aa14.json'); $client = new Google_Client(); $client->useApplicationDefaultCredentials(); + $client->setScopes(['https://www.googleapis.com/auth/analytics.readonly']); //$api_key = 'AIzaSyCgyPQhOmGEwyAdZ0uS6fJLLvnNxgncfy0'; //$client->setDeveloperKey($api_key); $analytics = new Google_Service_AnalyticsReporting($client); -- libgit2 0.21.4