From 28168cadb5efbd83e7130566798fcfa7bf76c509 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Feb 2017 21:31:35 +0200 Subject: [PATCH] ga output --- app/library/App/Controllers/GaController.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/library/App/Controllers/GaController.php b/app/library/App/Controllers/GaController.php index 6675e59..4da2b37 100644 --- a/app/library/App/Controllers/GaController.php +++ b/app/library/App/Controllers/GaController.php @@ -78,8 +78,14 @@ class GaController extends CrudResourceController { $response = $analytics->reports->batchGet($body); - $response = $response->toSimpleObject(); - $response = $response->reports[0]['data']['rows']; + $report = $response->getReports()[0]; + $rows = $report->getData()->getRows(); + + die(var_dump($rows)); + + + //$response = $response->toSimpleObject(); + //$response = $response->reports[0]['data']['rows']; $result = []; -- libgit2 0.21.4