REST.Backend.EMSApi.TEMSClientAPI.Login
Delphi
procedure Login(const ASessionAuthToken: string); overload;
procedure Login(const ALogin: TLogin); overload;
C++
void __fastcall Login(const System::UnicodeString ASessionAuthToken)/* overload */;
void __fastcall Login(const TLogin &ALogin)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | REST.Backend.EMSApi.pas REST.Backend.EMSApi.hpp |
REST.Backend.EMSApi | TEMSClientAPI |
Description
Stores the specified session authentication token to use it on future requests.
You may specify the session authentication token directly, as a string, or provide an instance of TLogin, which contains a session authentication token.
You may use LoginUser to obtain an instance of TLogin that you can pass to Login.
Exceptions
Exception | Message | Description |
---|---|---|
Session token required |
The specified session authentication token is an empty string. |