Commit 34feae2d75cbf24ee6b12e24d3cb699af6f2f182
1 parent
3bec53cb
test google lib
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
app/library/App/Bootstrap/RouteBootstrap.php
| @@ -12,6 +12,8 @@ use Google_Service_AnalyticsReporting; | @@ -12,6 +12,8 @@ use Google_Service_AnalyticsReporting; | ||
| 12 | 12 | ||
| 13 | class RouteBootstrap implements BootstrapInterface | 13 | class RouteBootstrap implements BootstrapInterface |
| 14 | { | 14 | { |
| 15 | + public $VIEW_ID = '123'; | ||
| 16 | + | ||
| 15 | public function run(Api $api, DiInterface $di, Config $config) | 17 | public function run(Api $api, DiInterface $di, Config $config) |
| 16 | { | 18 | { |
| 17 | $api->get('/', function() use ($api) { | 19 | $api->get('/', function() use ($api) { |
| @@ -52,11 +54,12 @@ class RouteBootstrap implements BootstrapInterface | @@ -52,11 +54,12 @@ class RouteBootstrap implements BootstrapInterface | ||
| 52 | $client->setDeveloperKey($api_key); | 54 | $client->setDeveloperKey($api_key); |
| 53 | $analytics = new Google_Service_AnalyticsReporting($client); | 55 | $analytics = new Google_Service_AnalyticsReporting($client); |
| 54 | 56 | ||
| 55 | - $response = $this->getReport($analytics, '', ''); | 57 | + |
| 58 | + //$response = $this->getReport($analytics, '', ''); | ||
| 56 | 59 | ||
| 57 | 60 | ||
| 58 | 61 | ||
| 59 | - $var_2 = var_dump($response); | 62 | + $var_2 = var_dump($this->VIEW_ID); |
| 60 | 63 | ||
| 61 | $msg = "testing fine"; | 64 | $msg = "testing fine"; |
| 62 | 65 |