Trendsic Platform Service

<back to all web services

IncomingCRMConversationRequest

The following routes are available for this service:
POST,OPTIONS/v1/conversation/crm/reply
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class IncomingCRMConversationRequest extends SmsRequest
    {
        
    }

    public static class SmsRequest extends TwilioRequest
    {
        public String MessageSid = null;
        public String SmsSid = null;
        public String Body = null;
        public String MessageStatus = null;
        public String OptOutType = null;
        public String MessagingServiceSid = null;
        public Integer NumMedia = null;
        public Integer ReferralNumMedia = null;
        
        public String getMessageSid() { return MessageSid; }
        public SmsRequest setMessageSid(String value) { this.MessageSid = value; return this; }
        public String getSmsSid() { return SmsSid; }
        public SmsRequest setSmsSid(String value) { this.SmsSid = value; return this; }
        public String getBody() { return Body; }
        public SmsRequest setBody(String value) { this.Body = value; return this; }
        public String getMessageStatus() { return MessageStatus; }
        public SmsRequest setMessageStatus(String value) { this.MessageStatus = value; return this; }
        public String getOptOutType() { return OptOutType; }
        public SmsRequest setOptOutType(String value) { this.OptOutType = value; return this; }
        public String getMessagingServiceSid() { return MessagingServiceSid; }
        public SmsRequest setMessagingServiceSid(String value) { this.MessagingServiceSid = value; return this; }
        public Integer getNumMedia() { return NumMedia; }
        public SmsRequest setNumMedia(Integer value) { this.NumMedia = value; return this; }
        public Integer getReferralNumMedia() { return ReferralNumMedia; }
        public SmsRequest setReferralNumMedia(Integer value) { this.ReferralNumMedia = value; return this; }
    }

    public static class TwilioRequest
    {
        public String AccountSid = null;
        public String From = null;
        public String To = null;
        public String FromCity = null;
        public String FromState = null;
        public String FromZip = null;
        public String FromCountry = null;
        public String ToCity = null;
        public String ToState = null;
        public String ToZip = null;
        public String ToCountry = null;
        
        public String getAccountSid() { return AccountSid; }
        public TwilioRequest setAccountSid(String value) { this.AccountSid = value; return this; }
        public String getFrom() { return From; }
        public TwilioRequest setFrom(String value) { this.From = value; return this; }
        public String getTo() { return To; }
        public TwilioRequest setTo(String value) { this.To = value; return this; }
        public String getFromCity() { return FromCity; }
        public TwilioRequest setFromCity(String value) { this.FromCity = value; return this; }
        public String getFromState() { return FromState; }
        public TwilioRequest setFromState(String value) { this.FromState = value; return this; }
        public String getFromZip() { return FromZip; }
        public TwilioRequest setFromZip(String value) { this.FromZip = value; return this; }
        public String getFromCountry() { return FromCountry; }
        public TwilioRequest setFromCountry(String value) { this.FromCountry = value; return this; }
        public String getToCity() { return ToCity; }
        public TwilioRequest setToCity(String value) { this.ToCity = value; return this; }
        public String getToState() { return ToState; }
        public TwilioRequest setToState(String value) { this.ToState = value; return this; }
        public String getToZip() { return ToZip; }
        public TwilioRequest setToZip(String value) { this.ToZip = value; return this; }
        public String getToCountry() { return ToCountry; }
        public TwilioRequest setToCountry(String value) { this.ToCountry = value; return this; }
    }

}

Java IncomingCRMConversationRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/conversation/crm/reply HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"MessageSid":"String","SmsSid":"String","Body":"String","MessageStatus":"String","OptOutType":"String","MessagingServiceSid":"String","NumMedia":0,"ReferralNumMedia":0,"AccountSid":"String","From":"String","To":"String","FromCity":"String","FromState":"String","FromZip":"String","FromCountry":"String","ToCity":"String","ToState":"String","ToZip":"String","ToCountry":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

(string)