/** * @url GET /:usr_uid * * @param string $usr_uid {@min 32}{@max 32} */ public function doGetUser($usr_uid) { try { $user = new \ProcessMaker\BusinessModel\User(); $user->setFormatFieldNameInUppercase(false); $response = $user->getUser($usr_uid); return \ProcessMaker\Util\DateTime::convertUtcToIso8601($response, $this->arrayFieldIso8601); } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } }
/** * @url GET /:usr_uid * * @param string $usr_uid {@min 32}{@max 32} */ public function doGetUser($usr_uid) { try { $user = new \ProcessMaker\BusinessModel\User(); $user->setFormatFieldNameInUppercase(false); $response = $user->getUser($usr_uid); return $response; } catch (\Exception $e) { throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); } }