Exemplo n.º 1
0
 /**
  * Returns the DELETE response
  *
  * @param \PSX\Record\RecordInterface $record
  * @return array|\PSX\Record\RecordInterface
  */
 protected function doDelete($record)
 {
     $this->appDeveloperService->delete($this->userId, (int) $this->getUriFragment('app_id'));
     return array('success' => true, 'message' => 'App successful deleted');
 }
Exemplo n.º 2
0
 /**
  * Returns the POST response
  *
  * @param \PSX\Record\RecordInterface $record
  * @return array|\PSX\Record\RecordInterface
  */
 protected function doPost($record)
 {
     $this->appDeveloperService->create($this->userId, $record->name, $record->url, $record->scopes);
     return array('success' => true, 'message' => 'App successful created');
 }