Trendsic Platform Service

<back to all web services

IncomingRecruitmentSMSRequest

The following routes are available for this service:
POST,OPTIONS/v1/sms/recruitment/reply
"use strict";
export class TwilioRequest {
    /** @param {{AccountSid?:string,From?:string,To?:string,FromCity?:string,FromState?:string,FromZip?:string,FromCountry?:string,ToCity?:string,ToState?:string,ToZip?:string,ToCountry?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AccountSid;
    /** @type {string} */
    From;
    /** @type {string} */
    To;
    /** @type {string} */
    FromCity;
    /** @type {string} */
    FromState;
    /** @type {string} */
    FromZip;
    /** @type {string} */
    FromCountry;
    /** @type {string} */
    ToCity;
    /** @type {string} */
    ToState;
    /** @type {string} */
    ToZip;
    /** @type {string} */
    ToCountry;
}
export class SmsRequest extends TwilioRequest {
    /** @param {{MessageSid?:string,SmsSid?:string,Body?:string,MessageStatus?:string,OptOutType?:string,MessagingServiceSid?:string,NumMedia?:number,ReferralNumMedia?:number,AccountSid?:string,From?:string,To?:string,FromCity?:string,FromState?:string,FromZip?:string,FromCountry?:string,ToCity?:string,ToState?:string,ToZip?:string,ToCountry?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    MessageSid;
    /** @type {string} */
    SmsSid;
    /** @type {string} */
    Body;
    /** @type {string} */
    MessageStatus;
    /** @type {string} */
    OptOutType;
    /** @type {string} */
    MessagingServiceSid;
    /** @type {number} */
    NumMedia;
    /** @type {number} */
    ReferralNumMedia;
}
export class IncomingRecruitmentSMSRequest extends SmsRequest {
    /** @param {{MessageSid?:string,SmsSid?:string,Body?:string,MessageStatus?:string,OptOutType?:string,MessagingServiceSid?:string,NumMedia?:number,ReferralNumMedia?:number,AccountSid?:string,From?:string,To?:string,FromCity?:string,FromState?:string,FromZip?:string,FromCountry?:string,ToCity?:string,ToState?:string,ToZip?:string,ToCountry?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
}

JavaScript IncomingRecruitmentSMSRequest 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/sms/recruitment/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)