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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<IntegrationsActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Action>String</Action>
  <ApiKey>String</ApiKey>
  <FromDate>String</FromDate>
  <Provider>String</Provider>
  <ToDate>String</ToDate>
</IntegrationsActionRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<IntegrationsActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Message>String</Message>
  <Ok>false</Ok>
  <Provider>
    <AccountLabel>String</AccountLabel>
    <Actions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Actions>
    <AuthMode>String</AuthMode>
    <Available>false</Available>
    <Blurb>String</Blurb>
    <Category>String</Category>
    <Environment>String</Environment>
    <Health>String</Health>
    <Key>String</Key>
    <LastActivityAt>0001-01-01T00:00:00</LastActivityAt>
    <ManageRoute>String</ManageRoute>
    <Mono>String</Mono>
    <Name>String</Name>
    <Status>String</Status>
    <StatusDetail>String</StatusDetail>
  </Provider>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Url>String</Url>
</IntegrationsActionResponse>