REST.Backend.EMSApi.TEMSClientAPI.PushBody
Delphi
procedure PushBody(const AMessage: TJSONObject); overload;
procedure PushBody(const AMessage: TJSONObject; out AStatus: TPushStatus); overload;
C++
void __fastcall PushBody(System::Json::TJSONObject* const AMessage)/* overload */;
void __fastcall PushBody(System::Json::TJSONObject* const AMessage, /* out */ TPushStatus &AStatus)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | REST.Backend.EMSApi.pas REST.Backend.EMSApi.hpp |
REST.Backend.EMSApi | TEMSClientAPI |
Description
Sends the specified EMS push message payload to the EMS server.
You may optionally specify an instance of TPushStatus (AStatus
) that PushBody fills with the EMS push notification status information that the EMS server provides.
Exceptions
Exception | Message | Description |
---|---|---|
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. |