/** * 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'); }
/** * 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'); }