Trendsic Platform Service

<back to all web services

SendTrackLinkRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/fleet/send-track
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SendTrackLinkRequest
    {
        public Integer JobID = null;
        public String ScheduledDate = null;
        public String Email = null;
        public String Phone = null;
        
        public Integer getJobID() { return JobID; }
        public SendTrackLinkRequest setJobID(Integer value) { this.JobID = value; return this; }
        public String getScheduledDate() { return ScheduledDate; }
        public SendTrackLinkRequest setScheduledDate(String value) { this.ScheduledDate = value; return this; }
        public String getEmail() { return Email; }
        public SendTrackLinkRequest setEmail(String value) { this.Email = value; return this; }
        public String getPhone() { return Phone; }
        public SendTrackLinkRequest setPhone(String value) { this.Phone = value; return this; }
    }

    public static class SendTrackLinkResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String TrackUrl = null;
        public ArrayList<String> Sent = new ArrayList<String>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public SendTrackLinkResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getTrackUrl() { return TrackUrl; }
        public SendTrackLinkResponse setTrackUrl(String value) { this.TrackUrl = value; return this; }
        public ArrayList<String> getSent() { return Sent; }
        public SendTrackLinkResponse setSent(ArrayList<String> value) { this.Sent = value; return this; }
    }

}

Java SendTrackLinkRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/fleet/send-track HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"JobID":0,"ScheduledDate":"String","Email":"String","Phone":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TrackUrl":"String","Sent":["String"]}