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   
ParameterTypeRequiredDescription
ProviderIDIntRequiredProviderId assigned by ContactAtOnce! to each Provider.
MerchantIdIntRequiredUnique Id from the Publisher.
PlacementIdIntOptionalPlacement ID is an identifier used for tracking purposes.
CallBackStringOptionalThe 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  
ParameterTypeDescription
presenceStatusString
  • online - Agents are online
  • offline - No Agents are online

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