getFieldNameMappings("Employee"); $customFields = \Classes\BaseService::getInstance()->getCustomFields("Employee"); $restApiBase = ''; $user = \Classes\BaseService::getInstance()->getCurrentUser(); if (empty($user)) { return; } $dbUser = new \Users\Common\Model\User(); $dbUser->Load("id = ?", array($user->id)); $resp = \Classes\RestApiManager::getInstance()->getAccessTokenForUser($dbUser); if ($resp->getStatus() != \Classes\IceResponse::SUCCESS) { \Utils\LogManager::getInstance()->error( "Error occurred while creating REST Api access token for ".$user->username ); } if (defined('SYM_CLIENT')) { $restApiBase = WEB_APP_BASE_URL.'/api/'.SYM_CLIENT.'/'; } else if (defined('REST_API_BASE')){ $restApiBase = REST_API_BASE; } else { $restApiBase = CLIENT_BASE_URL.'api/'; } ?>
getSetting("Api: REST Api Enabled") == "1") { ?>

Api Access Token

getData()?>

Mobile Authentication Code