Commit 80dede4a2cb7caa85189faa7b98873cbf74df278

Authored by Alex Savenko
1 parent 3b725555

ga response

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/library/App/Controllers/GaController.php
@@ -79,9 +79,9 @@ class GaController extends CrudResourceController { @@ -79,9 +79,9 @@ class GaController extends CrudResourceController {
79 $response = $analytics->reports->batchGet($body); 79 $response = $analytics->reports->batchGet($body);
80 80
81 $obj = $response->toSimpleObject(); 81 $obj = $response->toSimpleObject();
82 - $obj = $obj->reports; 82 + $obj = $obj->reports[0]['data'];
83 83
84 - var_dump($obj); 84 + return ($obj);
85 85
86 } 86 }
87 87