All Verbs | /nodes/live-answer/callback |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class LiveAnswerCallback
{
open var sessionId:String? = null
open var flowId:String? = null
open var nodeId:String? = null
open var clientId:String? = null
open var conversationId:String? = null
open var aiMinutes:Int? = null
open var from:String? = null
open var to:String? = null
open var transcript:ArrayList<LiveAnswerCallbackTranscriptMessage>? = null
open var startDate:Date? = null
open var endDate:Date? = null
open var attachments:ArrayList<LiveAnswerCallbackAttachment>? = null
}
open class LiveAnswerCallbackTranscriptMessage
{
open var date:Date? = null
open var role:String? = null
open var senderName:String? = null
open var targetName:String? = null
open var functionName:String? = null
open var functionArgs:String? = null
open var content:String? = null
}
open class LiveAnswerCallbackAttachment
{
open var fileName:String? = null
open var contentType:String? = null
open var uri:String? = null
@SerializedName("data") open var Data:String? = null
}
Kotlin LiveAnswerCallback DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /nodes/live-answer/callback HTTP/1.1
Host: team.evovoice.io
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<LiveAnswerCallback xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Nodes.AI">
<AIMinutes>0</AIMinutes>
<Attachments>
<LiveAnswerCallbackAttachment>
<ContentType>String</ContentType>
<Data>String</Data>
<FileName>String</FileName>
<Uri>String</Uri>
</LiveAnswerCallbackAttachment>
</Attachments>
<ClientId>String</ClientId>
<ConversationId>String</ConversationId>
<EndDate>0001-01-01T00:00:00</EndDate>
<FlowId>String</FlowId>
<From>String</From>
<NodeId>String</NodeId>
<SessionId>String</SessionId>
<StartDate>0001-01-01T00:00:00</StartDate>
<To>String</To>
<Transcript>
<LiveAnswerCallbackTranscriptMessage>
<Content>String</Content>
<Date>0001-01-01T00:00:00</Date>
<FunctionArgs>String</FunctionArgs>
<FunctionName>String</FunctionName>
<Role>String</Role>
<SenderName>String</SenderName>
<TargetName>String</TargetName>
</LiveAnswerCallbackTranscriptMessage>
</Transcript>
</LiveAnswerCallback>