Commit 1bd425391c22681b0802242139254b3cd5e79208
1 parent
f3ea4b97
ga output
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/library/App/Controllers/GaController.php
... | ... | @@ -78,13 +78,13 @@ class GaController extends CrudResourceController { |
78 | 78 | |
79 | 79 | $response = $analytics->reports->batchGet($body); |
80 | 80 | |
81 | - $response = $response->current(); | |
81 | + $response = $response->getReports(); | |
82 | + | |
83 | + return var_dump($response); | |
82 | 84 | |
83 | 85 | $obj = $response->toSimpleObject(); |
84 | 86 | $obj = $obj->reports[0]['data']['rows']; |
85 | 87 | |
86 | - return var_dump($response); | |
87 | - | |
88 | 88 | $result = []; |
89 | 89 | |
90 | 90 | foreach ($response as $item) { | ... | ... |