From af7c614c1058bb81843cbd9acc2e64891d40b3f8 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Feb 2017 17:01:05 +0200 Subject: [PATCH] test google lib --- app/library/App/Bootstrap/RouteBootstrap.php | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) 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