All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For a sample proxy service that illustrates how to work with sending the messages to brokers, see Sample configuration.

OperationDescription
Working with Send the message to brokers

Lists the users who will receive call alerts for the given session tracker.

Working with Send the message to brokersLists the users who will receive text message alerts for the given session tracker.
Working with Send the message to brokersLists the users who will receive call alerts for the given source tracker.
Working with Send the message to brokersLists the users who will receive text message alerts for the given source tracker. Publish the messages to the Kafka brokers

Operation details

This section provides details on the operations.

Listing call alert receivers for the session tracker

...

Publishing the messages to the Kafka brokers

The kafkaproduce-operation operation sends the messages to brokers using the topic

Code Block
languagexml
titlelistUsersForSessionTrackerCallAlertskafkaproduce-operation
<callrail<kafka.listUsersForSessionTrackerCallAlerts>kafkaproduce-operation>
	<companyId><topic>{$ctx:companyIdtopic}</companyId>
    <trackerId>{$ctx:trackerId}</trackerId>
    <perPage>{$ctx:perPage}</perPage>
    <page>{$ctx:page}</page>
</callrail.listUsersForSessionTrackerCallAlerts>

 

topic>
</kafka.kafkaproduce-operation>
Sample request

Following is a sample REST/JSON request that can be handled by the listUsersForSourceTrackerSmsAlerts the kafkaproduce-operation operation.

Code Block
languagexml
titleSample Request for listUsersForSourceTrackerSmsAlertskafkaproduce-operation
{
	"apiUrl":"https://api.callrail.com",
	"apiKey":"f0d9e966cf19af35db86dde005d3028ae",
	"companyId":"195726064",
	"trackerId":"312892004",
	"perPage":"5",
	"page":"1"
} 
Related CallRail documentation

http://apidocs.callrail.com/objects/alerts.html#listing-alerts-for-a-tracker

Anchorsamplesample 

Sample configuration

Following is a sample proxy service that illustrates how to connect to CallRail with the init operation and use the listUsersForSessionTrackerCallAlerts operation. The sample request for this proxy can be found in listUsersForSessionTrackerCallAlerts sample request. You can use this sample as a template for using other operations in this category.

Code Block
languagexml
titleSample Proxy
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="callrailkafka_listUsersForSessionTrackerCallAlertskafkaproduce-operation"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
   <target>
      <inSequence onError="faultHandlerSeq">
         <property name="apiUrl" expression="json-eval($.apiUrl)"/>
         <property name="apiKey" expression="json-eval($.apiKey)"/>
         <property name="companyId" expression="json-eval($.companyId)"/>
         <property name="trackerId" expression="json-eval($.trackerId)"/>
         <property name="perPage" expression="json-eval($.perPage)"/>
         <property name="page" expression="json-eval($.page)"/>
         <callrail.init>
            <apiUrl>{$ctx:apiUrl}</apiUrl>
            <apiKey>{$ctx:apiKey}</apiKey>
         </callrail.init>
         <callrail.listUsersForSessionTrackerCallAlerts>
            <companyId>{$ctx:companyId}</companyId>
            <trackerId>{$ctx:trackerId}</trackerId>
            <perPage>{$ctx:perPage}</perPage>
            <page>{$ctx:page}</page>
         </callrail.listUsersForSessionTrackerCallAlerts>
         <respond/>
      </inSequence>
      <outSequence>
        <send/>
      </outSequence>
   </target>
   <description/>
</proxy>                                

...