From af8f2385b270ce08b5d2252a0b65ad8827b744d0 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 21:20:56 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 318ea29..7a1c02c 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -81,9 +81,9 @@ class GaController extends CrudResourceController { /** @var \Google_Service_AnalyticsReporting_Report $report */ $report = $response->getReports(); - $data = $report[0]; + $data = $report[0]->getData(); - return var_dump($report); + return var_dump($data); $obj = $response->toSimpleObject(); $obj = $obj->reports[0]['data']['rows']; -- libgit2 0.21.4