Trendsic Platform Service

<back to all web services

IntegrationsActionRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/integrations/{Provider}/{Action}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class IntegrationsActionRequest
    {
        public String Provider = null;
        public String Action = null;
        public String ApiKey = null;
        public String FromDate = null;
        public String ToDate = null;
        
        public String getProvider() { return Provider; }
        public IntegrationsActionRequest setProvider(String value) { this.Provider = value; return this; }
        public String getAction() { return Action; }
        public IntegrationsActionRequest setAction(String value) { this.Action = value; return this; }
        public String getApiKey() { return ApiKey; }
        public IntegrationsActionRequest setApiKey(String value) { this.ApiKey = value; return this; }
        public String getFromDate() { return FromDate; }
        public IntegrationsActionRequest setFromDate(String value) { this.FromDate = value; return this; }
        public String getToDate() { return ToDate; }
        public IntegrationsActionRequest setToDate(String value) { this.ToDate = value; return this; }
    }

    public static class IntegrationsActionResponse
    {
        public Boolean Ok = null;
        public String Message = null;
        public String Url = null;
        public ProviderView Provider = null;
        public ResponseStatus ResponseStatus = null;
        
        public Boolean isOk() { return Ok; }
        public IntegrationsActionResponse setOk(Boolean value) { this.Ok = value; return this; }
        public String getMessage() { return Message; }
        public IntegrationsActionResponse setMessage(String value) { this.Message = value; return this; }
        public String getUrl() { return Url; }
        public IntegrationsActionResponse setUrl(String value) { this.Url = value; return this; }
        public ProviderView getProvider() { return Provider; }
        public IntegrationsActionResponse setProvider(ProviderView value) { this.Provider = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public IntegrationsActionResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class ProviderView
    {
        public String Key = null;
        public String Name = null;
        public String Category = null;
        public String Blurb = null;
        public String Mono = null;
        public String AuthMode = null;
        public Boolean Available = null;
        public String Status = null;
        public String Health = null;
        public String StatusDetail = null;
        public String AccountLabel = null;
        public String Environment = null;
        public Date LastActivityAt = null;
        public String ManageRoute = null;
        public ArrayList<String> Actions = new ArrayList<String>();
        
        public String getKey() { return Key; }
        public ProviderView setKey(String value) { this.Key = value; return this; }
        public String getName() { return Name; }
        public ProviderView setName(String value) { this.Name = value; return this; }
        public String getCategory() { return Category; }
        public ProviderView setCategory(String value) { this.Category = value; return this; }
        public String getBlurb() { return Blurb; }
        public ProviderView setBlurb(String value) { this.Blurb = value; return this; }
        public String getMono() { return Mono; }
        public ProviderView setMono(String value) { this.Mono = value; return this; }
        public String getAuthMode() { return AuthMode; }
        public ProviderView setAuthMode(String value) { this.AuthMode = value; return this; }
        public Boolean isAvailable() { return Available; }
        public ProviderView setAvailable(Boolean value) { this.Available = value; return this; }
        public String getStatus() { return Status; }
        public ProviderView setStatus(String value) { this.Status = value; return this; }
        public String getHealth() { return Health; }
        public ProviderView setHealth(String value) { this.Health = value; return this; }
        public String getStatusDetail() { return StatusDetail; }
        public ProviderView setStatusDetail(String value) { this.StatusDetail = value; return this; }
        public String getAccountLabel() { return AccountLabel; }
        public ProviderView setAccountLabel(String value) { this.AccountLabel = value; return this; }
        public String getEnvironment() { return Environment; }
        public ProviderView setEnvironment(String value) { this.Environment = value; return this; }
        public Date getLastActivityAt() { return LastActivityAt; }
        public ProviderView setLastActivityAt(Date value) { this.LastActivityAt = value; return this; }
        public String getManageRoute() { return ManageRoute; }
        public ProviderView setManageRoute(String value) { this.ManageRoute = value; return this; }
        public ArrayList<String> getActions() { return Actions; }
        public ProviderView setActions(ArrayList<String> value) { this.Actions = value; return this; }
    }

}

Java IntegrationsActionRequest 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/integrations/{Provider}/{Action} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Provider: String,
	Action: String,
	ApiKey: String,
	FromDate: String,
	ToDate: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Ok: False,
	Message: String,
	Url: String,
	Provider: 
	{
		Key: String,
		Name: String,
		Category: String,
		Blurb: String,
		Mono: String,
		AuthMode: String,
		Available: False,
		Status: String,
		Health: String,
		StatusDetail: String,
		AccountLabel: String,
		Environment: String,
		LastActivityAt: 0001-01-01,
		ManageRoute: String,
		Actions: 
		[
			String
		]
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}