Trendsic Platform Service

<back to all web services

IncomingCRMConversationRequest

The following routes are available for this service:
POST,OPTIONS/v1/conversation/crm/reply
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
using Twilio.AspNet.Common;

namespace Twilio.AspNet.Common
{
    public partial class SmsRequest
        : TwilioRequest
    {
        public virtual string MessageSid { get; set; }
        public virtual string SmsSid { get; set; }
        public virtual string Body { get; set; }
        public virtual string MessageStatus { get; set; }
        public virtual string OptOutType { get; set; }
        public virtual string MessagingServiceSid { get; set; }
        public virtual int NumMedia { get; set; }
        public virtual int ReferralNumMedia { get; set; }
    }

    public partial class TwilioRequest
    {
        public virtual string AccountSid { get; set; }
        public virtual string From { get; set; }
        public virtual string To { get; set; }
        public virtual string FromCity { get; set; }
        public virtual string FromState { get; set; }
        public virtual string FromZip { get; set; }
        public virtual string FromCountry { get; set; }
        public virtual string ToCity { get; set; }
        public virtual string ToState { get; set; }
        public virtual string ToZip { get; set; }
        public virtual string ToCountry { get; set; }
    }

}

C# IncomingCRMConversationRequest DTOs

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
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/jsv
Content-Length: length

(string)