All Verbs | /nodes/chat-events/new-message |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Nodes.Messaging
Namespace Global
Namespace Voice.Api.Nodes.Messaging
Public Partial Class ChatEventsNodeNewMessageCallback
Public Overridable Property AccountId As String
Public Overridable Property EndpointId As String
Public Overridable Property SessionId As String
Public Overridable Property Body As String
Public Overridable Property Sender As String
Public Overridable Property SenderDisplayName As String
Public Overridable Property AttachmentUri As String
Public Overridable Property AttachmentContentType As String
Public Overridable Property NewMessage As String
Public Overridable Property NewMessageBody As String
Public Overridable Property NewMessageSender As String
End Class
End Namespace
End Namespace
VB.NET ChatEventsNodeNewMessageCallback DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /nodes/chat-events/new-message HTTP/1.1
Host: team.evovoice.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"accountId":"String","endpointId":"String","sessionId":"String","body":"String","sender":"String","senderDisplayName":"String","attachmentUri":"String","attachmentContentType":"String","newMessage":"String","newMessageBody":"String","newMessageSender":"String"}