Trendsic Platform Service

<back to all web services

IncomingSMSWebhookHandleAll

The following routes are available for this service:
POST,OPTIONS/v1/sms/handleall
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Imports Twilio.AspNet.Common

Namespace Global

    Namespace Twilio.AspNet.Common

        Public Partial Class SmsRequest
            Inherits TwilioRequest
            Public Overridable Property MessageSid As String
            Public Overridable Property SmsSid As String
            Public Overridable Property Body As String
            Public Overridable Property MessageStatus As String
            Public Overridable Property OptOutType As String
            Public Overridable Property MessagingServiceSid As String
            Public Overridable Property NumMedia As Integer
            Public Overridable Property ReferralNumMedia As Integer
        End Class

        Public Partial Class TwilioRequest
            Public Overridable Property AccountSid As String
            Public Overridable Property From As String
            Public Overridable Property [To] As String
            Public Overridable Property FromCity As String
            Public Overridable Property FromState As String
            Public Overridable Property FromZip As String
            Public Overridable Property FromCountry As String
            Public Overridable Property ToCity As String
            Public Overridable Property ToState As String
            Public Overridable Property ToZip As String
            Public Overridable Property ToCountry As String
        End Class
    End Namespace
End Namespace

VB.NET IncomingSMSWebhookHandleAll 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 /v1/sms/handleall HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SMSTwilioHookRoutes.IncomingSMSWebhookHandleAll xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AccountSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</AccountSid>
  <From xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</From>
  <FromCity xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromCity>
  <FromCountry xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromCountry>
  <FromState xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromState>
  <FromZip xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromZip>
  <To xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</To>
  <ToCity xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToCity>
  <ToCountry xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToCountry>
  <ToState xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToState>
  <ToZip xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToZip>
  <Body xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</Body>
  <MessageSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</MessageSid>
  <MessageStatus xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</MessageStatus>
  <MessagingServiceSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</MessagingServiceSid>
  <NumMedia xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">0</NumMedia>
  <OptOutType xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</OptOutType>
  <ReferralNumMedia xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">0</ReferralNumMedia>
  <SmsSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</SmsSid>
</SMSTwilioHookRoutes.IncomingSMSWebhookHandleAll>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

(string)