All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.factset.sdk.DirectStreamingofTransactionMessages.api.DsotmApi Maven / Gradle / Ivy

The newest version!
package com.factset.sdk.DirectStreamingofTransactionMessages.api;

import com.factset.sdk.DirectStreamingofTransactionMessages.ApiException;
import com.factset.sdk.DirectStreamingofTransactionMessages.ApiClient;
import com.factset.sdk.DirectStreamingofTransactionMessages.ApiResponse;
import com.factset.sdk.DirectStreamingofTransactionMessages.Configuration;
import com.factset.sdk.DirectStreamingofTransactionMessages.Pair;

import jakarta.ws.rs.core.GenericType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import com.factset.sdk.DirectStreamingofTransactionMessages.models.ClientErrorResponse;
import com.factset.sdk.DirectStreamingofTransactionMessages.models.DsotmParametersRoot;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")

public class DsotmApi {
  private ApiClient apiClient;

  public DsotmApi() {
    this(Configuration.getDefaultApiClient());
  }

  public DsotmApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  
  private static final Map sendTransactionsResponseTypeMap = new HashMap();

  


  /**
   * Get the API client
   *
   * @return API client
   */
  public ApiClient getApiClient() {
    return apiClient;
  }

  /**
   * Set the API client
   *
   * @param apiClient an instance of API client
   */
  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * Push transactions data into FactSet.
   * This endpoint takes the transactions data and pushes them into FactSet.
   * @param dsotmParametersRoot  (optional)
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 Expected response. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
400 Invalid POST body. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
401 Missing or invalid authentication. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
403 User is forbidden with current credentials * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
415 Missing/Invalid Content-Type header. Header needs to be set to application/json. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
429 Rate limit reached. Retry the requests after waiting the time specified in the retry-after header. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
500 Server error. Log the X-DataDirectRequest-Key header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
503 Request timed out. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
*/ public void sendTransactions(DsotmParametersRoot dsotmParametersRoot) throws ApiException { sendTransactionsWithHttpInfo(dsotmParametersRoot); } /** * Push transactions data into FactSet. * This endpoint takes the transactions data and pushes them into FactSet. * @param dsotmParametersRoot (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Expected response. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
400 Invalid POST body. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
401 Missing or invalid authentication. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
403 User is forbidden with current credentials * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
415 Missing/Invalid Content-Type header. Header needs to be set to application/json. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
429 Rate limit reached. Retry the requests after waiting the time specified in the retry-after header. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
500 Server error. Log the X-DataDirectRequest-Key header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
503 Request timed out. * X-DataDirect-Request-Key - FactSet’s request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
*/ public ApiResponse sendTransactionsWithHttpInfo(DsotmParametersRoot dsotmParametersRoot) throws ApiException { Object localVarPostBody = dsotmParametersRoot; // create path and map variables String localVarPath = "/transactions"; // query params java.util.List localVarQueryParams = new java.util.ArrayList(); java.util.Map localVarHeaderParams = new java.util.HashMap(); java.util.Map localVarCookieParams = new java.util.HashMap(); java.util.Map localVarFormParams = new java.util.HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< Void > apiResponse = apiClient.invokeAPI("DsotmApi.sendTransactions", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, sendTransactionsResponseTypeMap, false); return apiResponse; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy