From 050d419e79e5f73cd8149428006bf3e6b7aa0f02 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 28 Dec 2016 23:10:29 +0200 Subject: [PATCH] testing --- backend/views/report/index.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/views/report/index.php b/backend/views/report/index.php index b3dccee..de76ede 100644 --- a/backend/views/report/index.php +++ b/backend/views/report/index.php @@ -19,7 +19,13 @@ $this->params['breadcrumbs'][] = $this->title;

title) ?>

googleApi->client); + + $client = new Google_Client(); + //$client->setAuthConfig(__DIR__ . '/client_secrets.json'); + $client->addScope(Google_Service_Analytics::ANALYTICS_READONLY); + + $analytics = new Google_Service_AnalyticsReporting($client); + //$analytics = new Google_Service_AnalyticsReporting(\Yii::$app->googleApi->client); // Вызов the Analytics Reporting API V4. $response = getReport($analytics); -- libgit2 0.21.4