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