From b2ffc8675fd553b5811fd44b17ad723a4c9b5de7 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 20:57:31 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 42fa306..e40d5b0 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -78,6 +78,8 @@ class GaController extends CrudResourceController { $response = $analytics->reports->batchGet($body); + $response = $response->getReports(); + $obj = $response->toSimpleObject(); $obj = $obj->reports[0]['data']['rows']; -- libgit2 0.21.4