All Verbs | /chat/endpoint/message |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SendEndpointMessage
{
public String sessionId = null;
public String endpointId = null;
public String body = null;
public String attachmentUri = null;
public String attachmentContentType = null;
public String sender = null;
public String displayName = null;
public String getSessionId() { return sessionId; }
public SendEndpointMessage setSessionId(String value) { this.sessionId = value; return this; }
public String getEndpointId() { return endpointId; }
public SendEndpointMessage setEndpointId(String value) { this.endpointId = value; return this; }
public String getBody() { return body; }
public SendEndpointMessage setBody(String value) { this.body = value; return this; }
public String getAttachmentUri() { return attachmentUri; }
public SendEndpointMessage setAttachmentUri(String value) { this.attachmentUri = value; return this; }
public String getAttachmentContentType() { return attachmentContentType; }
public SendEndpointMessage setAttachmentContentType(String value) { this.attachmentContentType = value; return this; }
public String getSender() { return sender; }
public SendEndpointMessage setSender(String value) { this.sender = value; return this; }
public String getDisplayName() { return displayName; }
public SendEndpointMessage setDisplayName(String value) { this.displayName = value; return this; }
}
}
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 /chat/endpoint/message HTTP/1.1
Host: team.evovoice.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"sessionId":"String","endpointId":"String","body":"String","attachmentUri":"String","attachmentContentType":"String","sender":"String","displayName":"String"}