From 9b8fbac233e67982c8693a4c064ba939b6fc8803 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 21:29:33 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 0744e1d..6675e59 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -78,6 +78,9 @@ class GaController extends CrudResourceController { $response = $analytics->reports->batchGet($body); + $response = $response->toSimpleObject(); + $response = $response->reports[0]['data']['rows']; + $result = []; foreach ($response as $item) { -- libgit2 0.21.4