| POST GET | /communication/message/clickatell/webhook |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ClickatellWebhook
{
open var IntegrationId:String? = null
open var IntegrationName:String? = null
open var Event:ClickatellMesageStatusUpdateEvent? = null
}
open class ClickatellMesageStatusUpdateEvent
{
open var MessageStatusUpdate:ArrayList<ClickatellMesageStatusUpdateObject>? = null
}
open class ClickatellMesageStatusUpdateObject
{
open var Channel:String? = null
open var Timestamp:Long? = null
open var StatusCode:Int? = null
open var Status:String? = null
open var MessageId:String? = null
open var ClientMessageId:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /communication/message/clickatell/webhook HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ClickatellWebhook xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
<Event>
<MessageStatusUpdate>
<ClickatellMesageStatusUpdateObject>
<Channel>String</Channel>
<ClientMessageId>String</ClientMessageId>
<MessageId>String</MessageId>
<Status>String</Status>
<StatusCode>0</StatusCode>
<Timestamp>0</Timestamp>
</ClickatellMesageStatusUpdateObject>
</MessageStatusUpdate>
</Event>
<IntegrationId>String</IntegrationId>
<IntegrationName>String</IntegrationName>
</ClickatellWebhook>