Commit 789e0facbeb4e1aaecc1991a3b68c8b6588b43fb
1 parent
945afadd
ga output
Showing
1 changed file
with
0 additions
and
12 deletions
Show diff stats
app/library/App/Controllers/GaController.php
... | ... | @@ -78,18 +78,6 @@ class GaController extends CrudResourceController { |
78 | 78 | |
79 | 79 | $response = $analytics->reports->batchGet($body); |
80 | 80 | |
81 | - /** @var \Google_Service_AnalyticsReporting_Report $report */ | |
82 | - $report = $response->getReports()[0]; | |
83 | - | |
84 | - $data = $report->getColumnHeader(); | |
85 | - | |
86 | - $response->modelData; | |
87 | - | |
88 | - return var_dump($data); | |
89 | - | |
90 | - $obj = $response->toSimpleObject(); | |
91 | - $obj = $obj->reports[0]['data']['rows']; | |
92 | - | |
93 | 81 | $result = []; |
94 | 82 | |
95 | 83 | foreach ($response as $item) { | ... | ... |