Trendsic Platform Service

<back to all web services

IncomingSchedulerSMSRequest

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

public class dtos
{

    public static class IncomingSchedulerSMSRequest 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 IncomingSchedulerSMSRequest 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.

POST /v1/sms/reply HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SMSTwilioHookRoutes.IncomingSchedulerSMSRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AccountSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</AccountSid>
  <From xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</From>
  <FromCity xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromCity>
  <FromCountry xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromCountry>
  <FromState xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromState>
  <FromZip xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</FromZip>
  <To xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</To>
  <ToCity xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToCity>
  <ToCountry xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToCountry>
  <ToState xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToState>
  <ToZip xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</ToZip>
  <Body xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</Body>
  <MessageSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</MessageSid>
  <MessageStatus xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</MessageStatus>
  <MessagingServiceSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</MessagingServiceSid>
  <NumMedia xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">0</NumMedia>
  <OptOutType xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</OptOutType>
  <ReferralNumMedia xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">0</ReferralNumMedia>
  <SmsSid xmlns="http://schemas.datacontract.org/2004/07/Twilio.AspNet.Common">String</SmsSid>
</SMSTwilioHookRoutes.IncomingSchedulerSMSRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

(string)