function run()
 {
     $apikey = $this->request->getPar('apikey');
     $app = new App();
     $app->setApiKey($apikey);
     $appRdd = $app->read();
     if ($appRdd === null) {
         throw new GraphException('Application unauthorized', 401, 401);
     }
     $this->sendModel($appRdd);
 }
Example #2
0
 function run()
 {
     $app = App::getByRequest(true);
     $this->sendModel($app->create());
 }