REST.Backend.EMSApi.TEMSClientAPI.RetrieveCurrentUser

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RetrieveCurrentUser(AProc: TRetrieveUserProc): Boolean; overload;
function RetrieveCurrentUser(out AUser: TUser;  const AJSON: TJSONArray = nil): Boolean; overload;

C++

bool __fastcall RetrieveCurrentUser(_di_TRetrieveUserProc AProc)/* overload */;
bool __fastcall RetrieveCurrentUser(/* out */ TUser &AUser, System::Json::TJSONArray* const AJSON = (System::Json::TJSONArray*)(0x0))/* overload */;

Properties

Type Visibility Source Unit Parent
function public
REST.Backend.EMSApi.pas
REST.Backend.EMSApi.hpp
REST.Backend.EMSApi TEMSClientAPI

Description

Requests your user information from the EMS server and returns True if it receives the information successfully or False otherwise.

To handle the received information, you must provide either of the following:

Exceptions

Exception Message Description

EEMSClientAPIError

MasterSecret required

Authentication is TAuthentication.MasterSecret and ConnectionInfo.MasterSecret is an empty string.

Session token required

Authentication is TAuthentication.Session and you did not log in or the session authentication token that you provided to Login is an empty string.

See Also