| POST,OPTIONS | /v1/conversation/crm/reply |
|---|
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 IncomingCRMConversationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/conversation/crm/reply HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"MessageSid":"String","SmsSid":"String","Body":"String","MessageStatus":"String","OptOutType":"String","MessagingServiceSid":"String","NumMedia":0,"ReferralNumMedia":0,"AccountSid":"String","From":"String","To":"String","FromCity":"String","FromState":"String","FromZip":"String","FromCountry":"String","ToCity":"String","ToState":"String","ToZip":"String","ToCountry":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length (string)