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