digitaluapi

<back to all web services

ClickatellWebhook

The following routes are available for this service:
POST GET/communication/message/clickatell/webhook
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports digitaluapi.ServiceModel

Namespace Global

    Namespace digitaluapi.ServiceModel

        Public Partial Class ClickatellMesageStatusUpdateEvent
            Public Overridable Property MessageStatusUpdate As List(Of ClickatellMesageStatusUpdateObject)
        End Class

        Public Partial Class ClickatellMesageStatusUpdateObject
            Public Overridable Property Channel As String
            Public Overridable Property Timestamp As Long
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Status As String
            Public Overridable Property MessageId As String
            Public Overridable Property ClientMessageId As String
        End Class

        Public Partial Class ClickatellWebhook
            Public Overridable Property IntegrationId As String
            Public Overridable Property IntegrationName As String
            Public Overridable Property [Event] As ClickatellMesageStatusUpdateEvent
        End Class
    End Namespace
End Namespace

VB.NET ClickatellWebhook DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>