From b2bed68d0460cbdd3dfb2cd2f7714895ad189b55 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Feb 2017 17:09:34 +0200 Subject: [PATCH] test google lib --- app/library/App/Bootstrap/RouteBootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/App/Bootstrap/RouteBootstrap.php b/app/library/App/Bootstrap/RouteBootstrap.php index c791c6e..7c49fb0 100755 --- a/app/library/App/Bootstrap/RouteBootstrap.php +++ b/app/library/App/Bootstrap/RouteBootstrap.php @@ -60,8 +60,8 @@ class RouteBootstrap implements BootstrapInterface $client = new Google_Client(); $client->useApplicationDefaultCredentials(); $client->setScopes(['https://www.googleapis.com/auth/analytics.readonly']); - //$api_key = 'AIzaSyCgyPQhOmGEwyAdZ0uS6fJLLvnNxgncfy0'; - //$client->setDeveloperKey($api_key); + $api_key = 'AIzaSyBNYr7n7bcHbO-sJ9xuWwS9xQ2OY5aFAiE'; + $client->setDeveloperKey($api_key); $analytics = new Google_Service_AnalyticsReporting($client); $param[] = ['metric' => 'ga:sessions', 'alias' => 'Сессии']; -- libgit2 0.21.4