Trendsic Platform Service

<back to all web services

IncomingSchedulerSMSRequest

The following routes are available for this service:
POST,OPTIONS/v1/sms/reply
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type TwilioRequest() = 
        member val AccountSid:String = null with get,set
        member val From:String = null with get,set
        member val To:String = null with get,set
        member val FromCity:String = null with get,set
        member val FromState:String = null with get,set
        member val FromZip:String = null with get,set
        member val FromCountry:String = null with get,set
        member val ToCity:String = null with get,set
        member val ToState:String = null with get,set
        member val ToZip:String = null with get,set
        member val ToCountry:String = null with get,set

    [<AllowNullLiteral>]
    type SmsRequest() = 
        inherit TwilioRequest()
        member val MessageSid:String = null with get,set
        member val SmsSid:String = null with get,set
        member val Body:String = null with get,set
        member val MessageStatus:String = null with get,set
        member val OptOutType:String = null with get,set
        member val MessagingServiceSid:String = null with get,set
        member val NumMedia:Int32 = new Int32() with get,set
        member val ReferralNumMedia:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type IncomingSchedulerSMSRequest() = 
        inherit SmsRequest()

F# 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)