EMS.Services.TEMSInternalAPI.LoginUser
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: EMS.Services.pas EMS.Services.hpp
| |
| Unit: EMS.Services | |
| Parent: TEMSInternalAPI | |
Delphi
function LoginUser(const AUserName, APassword: string): IEMSResourceResponseContent; overload;
function LoginUser(const AJSONLogin: TJSONObject): IEMSResourceResponseContent; overload;
C++
_di_IEMSResourceResponseContent __fastcall LoginUser(const System::UnicodeString AUserName, const System::UnicodeString APassword)/* overload */;
_di_IEMSResourceResponseContent __fastcall LoginUser(System::Json::TJSONObject* const AJSONLogin)/* overload */;
Description
Logs on an EMS User to the EMS Server.
The LoginUser method is overloaded:
- The first overloaded method adds the
AUserNameand theAPasswordto a TJSONObject. This method calls the second overloaded LoginUser method with the resulting TJSONObject. - The second overloaded method logs on a new EMS User to the EMS Server.
AJSONBodycontains the EMS User data as a TJSONobject.
- Note: The EMS Username and Password fields are required.
LoginUser returns an IEMSResourceResponseContent to read the response from the resource.