EMS.Services.TEMSInternalAPI.PushToTarget
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: EMS.Services.pas EMS.Services.hpp
| |
| Unit: EMS.Services | |
| Parent: TEMSInternalAPI | |
Delphi
function PushToTarget(const AData: TJSONObject; const ATarget: TJSONObject): IEMSResourceResponseContent;
C++
_di_IEMSResourceResponseContent __fastcall PushToTarget(System::Json::TJSONObject* const AData, System::Json::TJSONObject* const ATarget);
Description
Sends an EMS Push notification message to a particular EMS Installation.
The PushToTarget method sends the AData message and identifies the target EMS Installation by the ATarget parameter.
The ATarget is a TJSONObject that contains:
- EMS Channels:
{"channels": ["a","b"]}"}
- A filter:
{"where":{"email":"[email protected]"}}
- A combination of EMS Channels and filters.
PushToTarget returns an IEMSResourceResponseContent to read the response from the resource.