PagerMessages APIs
-
Send Pager Message to Array of Contacts
Description: Launches an alertUsage:
POST api/Messages/Pager/Send/{TaskName}/{PagerCode}
Parameter Type Source Description TaskName String FromUri The name of the alert. PagerCode Int32 FromUri The unique numerical code identifying the Pager message to send. Contacts Contact[] FromBody Array of Contact to send the Pager message to. Returns:
Returns a positive 32-bit integer value that uniquely identifies the alert job.
Examples:
<!-- Intent: send the pager message with pagercode of 100000 to an array of contacts posted in the body of the request and name the alert "My Test Alert" POST to the following url http://api.v4.swiftreach.com/api/Messages/Pager/Send/MY%20Test%20Alert/100000 --> <ArrayOfContact> <Contact> <EntityName>Sample One</EntityName> <EntityGuid>a44667cf-e4e5-4f28-b4e2-948ba2065c09</EntityGuid> <Pager>5551234567</Pager> <SMSNetwork>0</SMSNetwork> <PagerNetwork>1</PagerNetwork> </Contact> <Contact> <EntityName>Sample Two</EntityName> <EntityGuid>a44667cf-e4e5-4f28-b4e2-948ba2065c09</EntityGuid> <Pager>5551234567</Pager> <SMSNetwork>0</SMSNetwork> <PagerNetwork>7</PagerNetwork> </Contact> </ArrayOfContact> <!-- example return value --> <int>123456</int>