| POST GET | /communication/message/clickatell/webhook |
|---|
import Foundation
import ServiceStack
public class ClickatellWebhook : Codable
{
public var integrationId:String
public var integrationName:String
public var event:ClickatellMesageStatusUpdateEvent
required public init(){}
}
public class ClickatellMesageStatusUpdateEvent : Codable
{
public var messageStatusUpdate:[ClickatellMesageStatusUpdateObject]
required public init(){}
}
public class ClickatellMesageStatusUpdateObject : Codable
{
public var channel:String
public var timestamp:Int
public var statusCode:Int
public var status:String
public var messageId:String
public var clientMessageId:String
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"IntegrationId":"String","IntegrationName":"String","Event":{"MessageStatusUpdate":[{"Channel":"String","Timestamp":0,"StatusCode":0,"Status":"String","MessageId":"String","ClientMessageId":"String"}]}}