Example

Sending basichttp.myevent to sessionId 1234 with an eventSource of http://www.example.org/ccxmlext. The parameters passed in are agent, site.location and site.code. The BRM is www.mybrm.com and the port is 9698.

This will result in the following event

  
<!-- Process incoming basichttp event -->  
<transition state="'dialogActive'" event="basichttp.*" >
    <log expr="'Received event'" />
    <log expr="'name=' + event$.name" />
    <log expr="'sourcetype=' + event$.eventsourcetype" />
    <log expr="'eventsource=' + event$.eventsource" />
    <log expr="'agent=' + event$.agent" />
    <log expr="'site.location=' + event$.site.location" />
    <log expr="'site.code=' + event$.site.code" />
</transition>
    

Example request using HTTP GET

URI

  
http://www.mybrm.com/api/v1/bvr/ccxml/basichttp?sessionId=0x00000000-091431A8-112-CCXID-CCXML_bsess_0001&name=basichttp.myevent&eventSource=http%3a//www.example.org/ccxmlext&agent=agent12&site.location=orlando&site.code=RE445
    

Example request using HTTP POST

URI

  
http://www.mybrm.com/api/v1/bvr/ccxml/basichttp
    

JSON

  
{
    "sessionId": "0x00000000-091431A8-112-CCXID-CCXML_bsess_0001",
    "name": "basichttp.myevent",
    "eventSource": "http://www.example.org/ccxmlext",
    "parameters": {
        "agent": "agent12",
        "site.location": "orlando",
        "site.code": "RE445"
    }
}
    

Example response

  
{
    "result": "OK"
}