Commit b2bed68d0460cbdd3dfb2cd2f7714895ad189b55

Authored by Alex Savenko
1 parent 31a43cb4

test google lib

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/library/App/Bootstrap/RouteBootstrap.php
@@ -60,8 +60,8 @@ class RouteBootstrap implements BootstrapInterface @@ -60,8 +60,8 @@ class RouteBootstrap implements BootstrapInterface
60 $client = new Google_Client(); 60 $client = new Google_Client();
61 $client->useApplicationDefaultCredentials(); 61 $client->useApplicationDefaultCredentials();
62 $client->setScopes(['https://www.googleapis.com/auth/analytics.readonly']); 62 $client->setScopes(['https://www.googleapis.com/auth/analytics.readonly']);
63 - //$api_key = 'AIzaSyCgyPQhOmGEwyAdZ0uS6fJLLvnNxgncfy0';  
64 - //$client->setDeveloperKey($api_key); 63 + $api_key = 'AIzaSyBNYr7n7bcHbO-sJ9xuWwS9xQ2OY5aFAiE';
  64 + $client->setDeveloperKey($api_key);
65 $analytics = new Google_Service_AnalyticsReporting($client); 65 $analytics = new Google_Service_AnalyticsReporting($client);
66 66
67 $param[] = ['metric' => 'ga:sessions', 'alias' => 'Сессии']; 67 $param[] = ['metric' => 'ga:sessions', 'alias' => 'Сессии'];