EMS.Services.TEMSInternalAPI.PushToTarget

From RAD Studio API Documentation
Jump to: navigation, search

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);

Properties

Type Visibility Source Unit Parent
function public
EMS.Services.pas
EMS.Services.hpp
EMS.Services TEMSInternalAPI

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":"xyz@xmail.com"}}
  • A combination of EMS Channels and filters.

PushToTarget returns an IEMSResourceResponseContent to read the response from the resource.

See Also