Evo Voice

<back to all web services

LiveAnswerSendEmail

The following routes are available for this service:
All Verbs/nodes/live-answer/email
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class LiveAnswerSendEmail
    {
        public String flowId = null;
        public String sessionId = null;
        public String nodeId = null;
        public String clientId = null;
        public String subject = null;
        public String body = null;
        public ArrayList<LiveAnswerEmailRecipient> to = null;
        public ArrayList<LiveAnswerEmailRecipient> cc = null;
        public ArrayList<LiveAnswerEmailRecipient> bcc = null;
        
        public String getFlowId() { return flowId; }
        public LiveAnswerSendEmail setFlowId(String value) { this.flowId = value; return this; }
        public String getSessionId() { return sessionId; }
        public LiveAnswerSendEmail setSessionId(String value) { this.sessionId = value; return this; }
        public String getNodeId() { return nodeId; }
        public LiveAnswerSendEmail setNodeId(String value) { this.nodeId = value; return this; }
        public String getClientId() { return clientId; }
        public LiveAnswerSendEmail setClientId(String value) { this.clientId = value; return this; }
        public String getSubject() { return subject; }
        public LiveAnswerSendEmail setSubject(String value) { this.subject = value; return this; }
        public String getBody() { return body; }
        public LiveAnswerSendEmail setBody(String value) { this.body = value; return this; }
        public ArrayList<LiveAnswerEmailRecipient> getTo() { return to; }
        public LiveAnswerSendEmail setTo(ArrayList<LiveAnswerEmailRecipient> value) { this.to = value; return this; }
        public ArrayList<LiveAnswerEmailRecipient> getCc() { return cc; }
        public LiveAnswerSendEmail setCc(ArrayList<LiveAnswerEmailRecipient> value) { this.cc = value; return this; }
        public ArrayList<LiveAnswerEmailRecipient> getBcc() { return bcc; }
        public LiveAnswerSendEmail setBcc(ArrayList<LiveAnswerEmailRecipient> value) { this.bcc = value; return this; }
    }

    public static class LiveAnswerEmailRecipient
    {
        public String name = null;
        public String address = null;
        
        public String getName() { return name; }
        public LiveAnswerEmailRecipient setName(String value) { this.name = value; return this; }
        public String getAddress() { return address; }
        public LiveAnswerEmailRecipient setAddress(String value) { this.address = value; return this; }
    }

}

Java LiveAnswerSendEmail 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/live-answer/email HTTP/1.1 
Host: evovoice.io 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"flowId":"String","sessionId":"String","nodeId":"String","clientId":"String","subject":"String","body":"String","to":[{"name":"String","address":"String"}],"cc":[{"name":"String","address":"String"}],"bcc":[{"name":"String","address":"String"}]}