Evo Voice

<back to all web services

GetChatTranscript

Gets the specified transcript

Requires Authentication
Required role:User
The following routes are available for this service:
GET/sessions/{sessionId}/transcript
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Gets the specified transcript
    */
    @Api(Description="Gets the specified transcript")
    public static class GetChatTranscript implements IGet
    {
        /**
        * the session whose transcript you want to get
        */
        @ApiMember(Description="the session whose transcript you want to get")
        public String sessionId = null;

        /**
        * Include previous messages from this chat party
        */
        @ApiMember(Description="Include previous messages from this chat party")
        public Boolean includeHistorical = null;

        /**
        * How far back to include in historical messages. Max 6 months in past
        */
        @ApiMember(Description="How far back to include in historical messages. Max 6 months in past")
        public String historicalCutOffDate = null;
        
        public String getSessionId() { return sessionId; }
        public GetChatTranscript setSessionId(String value) { this.sessionId = value; return this; }
        public Boolean isIncludeHistorical() { return includeHistorical; }
        public GetChatTranscript setIncludeHistorical(Boolean value) { this.includeHistorical = value; return this; }
        public String getHistoricalCutOffDate() { return historicalCutOffDate; }
        public GetChatTranscript setHistoricalCutOffDate(String value) { this.historicalCutOffDate = value; return this; }
    }

    public static class GetChatTranscriptResponse
    {
        public ArrayList<ChatTranscriptMessage> messages = null;
        
        public ArrayList<ChatTranscriptMessage> getMessages() { return messages; }
        public GetChatTranscriptResponse setMessages(ArrayList<ChatTranscriptMessage> value) { this.messages = value; return this; }
    }

    public static class ChatTranscriptMessage
    {
        public String date = null;
        public String from = null;
        public String body = null;
        public String mediaUri = null;
        public String mediaContentType = null;
        
        public String getDate() { return date; }
        public ChatTranscriptMessage setDate(String value) { this.date = value; return this; }
        public String getFrom() { return from; }
        public ChatTranscriptMessage setFrom(String value) { this.from = value; return this; }
        public String getBody() { return body; }
        public ChatTranscriptMessage setBody(String value) { this.body = value; return this; }
        public String getMediaUri() { return mediaUri; }
        public ChatTranscriptMessage setMediaUri(String value) { this.mediaUri = value; return this; }
        public String getMediaContentType() { return mediaContentType; }
        public ChatTranscriptMessage setMediaContentType(String value) { this.mediaContentType = value; return this; }
    }

}

Java GetChatTranscript 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.

GET /sessions/{sessionId}/transcript HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetChatTranscriptResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Sessions">
  <Messages>
    <ChatTranscriptMessage>
      <Body>String</Body>
      <Date>String</Date>
      <From>String</From>
      <MediaContentType>String</MediaContentType>
      <MediaUri>String</MediaUri>
    </ChatTranscriptMessage>
  </Messages>
</GetChatTranscriptResponse>