Evo Voice

<back to all web services

ChatEventsNodeNewMessageCallback

The following routes are available for this service:
All Verbs/nodes/chat-events/new-message
namespace Voice.Api.Nodes.Messaging

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ChatEventsNodeNewMessageCallback() = 
        member val AccountId:String = null with get,set
        member val EndpointId:String = null with get,set
        member val SessionId:String = null with get,set
        member val Body:String = null with get,set
        member val Sender:String = null with get,set
        member val SenderDisplayName:String = null with get,set
        member val AttachmentUri:String = null with get,set
        member val AttachmentContentType:String = null with get,set
        member val NewMessage:String = null with get,set
        member val NewMessageBody:String = null with get,set
        member val NewMessageSender:String = null with get,set

F# ChatEventsNodeNewMessageCallback 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

HTTP + JSON

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: evovoice.io 
Accept: application/json
Content-Type: application/json
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"}