diff --git a/app/library/App/Bootstrap/RouteBootstrap.php b/app/library/App/Bootstrap/RouteBootstrap.php index 1ed824f..3e3ab6e 100755 --- a/app/library/App/Bootstrap/RouteBootstrap.php +++ b/app/library/App/Bootstrap/RouteBootstrap.php @@ -7,6 +7,8 @@ use App\Constants\Services; use Phalcon\Config; use Phalcon\DiInterface; use PhalconRest\Api; +use Google_Client; +use Google_Service_AnalyticsReporting; class RouteBootstrap implements BootstrapInterface { @@ -45,9 +47,12 @@ class RouteBootstrap implements BootstrapInterface /** @var \Phalcon\Mvc\View\Simple $view */ $view = $api->di->get(Services::VIEW); - $client = new \Google_Client(); + $client = new Google_Client(); + $api_key = 'AIzaSyCXzrwqxLN2bCvBhw2cJfdeEu9aj1aH5b8'; + $client->setDeveloperKey($api_key); + $analytics = new Google_Service_AnalyticsReporting($client); - $var_2 = var_dump($client); + $var_2 = var_dump($analytics); $msg = "testing fine"; -- libgit2 0.21.4