JSON-P Presence Service
Description
JSON-P Presence Service: The JSON-P Presence service provides a way to get presence status of a given merchant using JavaScript.
Method: GET
URI (regionally defined):
- North America : https://jsonp.contactatonce.com/PresencePostback.aspx
- Australia : https://jsonp.contactatonce.com.au/PresencePostback.aspx
- Europe : https://jsonp.contactatonce.co.uk/PresencePostback.aspx
Request | |||
---|---|---|---|
Parameter | Type | Required | Description |
ProviderID | Int | Required | ProviderId assigned by ContactAtOnce! to each Provider. |
MerchantId | Int | Required | Unique Id from the Publisher. |
PlacementId | Int | Optional | Placement ID is an identifier used for tracking purposes. |
CallBack | String | Optional | The name of the function the results will be wrapped in. If no CallBack parameter is supplied, the return will be wrapped in a PresenceCallback function. |
Response | ||
---|---|---|
Parameter | Type | Description |
presenceStatus | String |
|
Example Request with CallBack https://jsonp.contactatonce.com/PresencePostback.aspx?ProviderID=123456&MerchantId=78910&PlacementId=1&CallBack=Checker Example Response Checker({"presenceStatus" : "online" });
Example Request without CallBack https://jsonp.contactatonce.com/PresencePostback.aspx?ProviderID=123456&MerchantId=78910&PlacementId=1 Example Response PresenceCallback({"presenceStatus" : "online" });