Trendsic Platform Service

<back to all web services

DispatchTrackSessionRequest

The following routes are available for this service:
POST,OPTIONS/v1/dispatch/track/{Token}/session
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DispatchTrackSessionRequest
    {
        public String Token = null;
        
        public String getToken() { return Token; }
        public DispatchTrackSessionRequest setToken(String value) { this.Token = value; return this; }
    }

    public static class DispatchTrackSessionResponse
    {
        public String ActToken = null;
        public Date ExpiresUtc = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getActToken() { return ActToken; }
        public DispatchTrackSessionResponse setActToken(String value) { this.ActToken = value; return this; }
        public Date getExpiresUtc() { return ExpiresUtc; }
        public DispatchTrackSessionResponse setExpiresUtc(Date value) { this.ExpiresUtc = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DispatchTrackSessionResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java DispatchTrackSessionRequest 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/dispatch/track/{Token}/session HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Token":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ActToken":"String","ExpiresUtc":"0001-01-01T00:00:00.0000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}