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

com.factset.sdk.Signals.api.EventsApi Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.factset.sdk.Signals.api;

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

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

import com.factset.sdk.Signals.models.DateTimeInterval;
import com.factset.sdk.Signals.models.ErrorResponse;
import com.factset.sdk.Signals.models.EventAdaptiveCard;
import com.factset.sdk.Signals.models.EventAdaptiveCards;
import com.factset.sdk.Signals.models.EventDetail;
import com.factset.sdk.Signals.models.EventDetails;
import com.factset.sdk.Signals.models.EventHeadlines;
import com.factset.sdk.Signals.models.EventRequestBody;
import com.factset.sdk.Signals.models.EventsEntities;
import com.factset.sdk.Signals.models.EventsEntitiesPost;
import com.factset.sdk.Signals.models.RateLimitResponse;
import com.factset.sdk.Signals.models.RelevanceScoreRange;

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

public class EventsApi {
  private ApiClient apiClient;

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

  public EventsApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  
  private static final Map getEventAdaptiveCardByIdResponseTypeMap = new HashMap();
  static {
    getEventAdaptiveCardByIdResponseTypeMap.put(200, new GenericType(){});
    getEventAdaptiveCardByIdResponseTypeMap.put(404, new GenericType(){});
    getEventAdaptiveCardByIdResponseTypeMap.put(429, new GenericType(){});
    getEventAdaptiveCardByIdResponseTypeMap.put(500, new GenericType(){});
  }

  private static final Map getEventDetailByIdResponseTypeMap = new HashMap();
  static {
    getEventDetailByIdResponseTypeMap.put(200, new GenericType(){});
    getEventDetailByIdResponseTypeMap.put(404, new GenericType(){});
    getEventDetailByIdResponseTypeMap.put(429, new GenericType(){});
    getEventDetailByIdResponseTypeMap.put(500, new GenericType(){});
  }

  private static final Map postEventAdaptiveCardsResponseTypeMap = new HashMap();
  static {
    postEventAdaptiveCardsResponseTypeMap.put(200, new GenericType(){});
    postEventAdaptiveCardsResponseTypeMap.put(400, new GenericType(){});
    postEventAdaptiveCardsResponseTypeMap.put(429, new GenericType(){});
    postEventAdaptiveCardsResponseTypeMap.put(500, new GenericType(){});
  }

  private static final Map postEventDetailsResponseTypeMap = new HashMap();
  static {
    postEventDetailsResponseTypeMap.put(200, new GenericType(){});
    postEventDetailsResponseTypeMap.put(429, new GenericType(){});
  }

  private static final Map postEventEntitiesResponseTypeMap = new HashMap();
  static {
    postEventEntitiesResponseTypeMap.put(200, new GenericType(){});
    postEventEntitiesResponseTypeMap.put(400, new GenericType(){});
    postEventEntitiesResponseTypeMap.put(429, new GenericType(){});
    postEventEntitiesResponseTypeMap.put(500, new GenericType(){});
  }

  private static final Map postEventHeadlinesResponseTypeMap = new HashMap();
  static {
    postEventHeadlinesResponseTypeMap.put(200, new GenericType(){});
    postEventHeadlinesResponseTypeMap.put(429, new GenericType(){});
  }

  


  /**
   * 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;
  }

  /**
   * 
   * Fetch Microsoft's Adaptive Cards, which includes headlines and event details data plus hyperlinks to FactSet reports, for a single requested Signal event
   * @param eventId The UUID of the event to return. (required)
   * @return EventAdaptiveCard
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 OK -
404 Not Found -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public EventAdaptiveCard getEventAdaptiveCardById(java.util.UUID eventId) throws ApiException { return getEventAdaptiveCardByIdWithHttpInfo(eventId).getData(); } /** * * Fetch Microsoft's Adaptive Cards, which includes headlines and event details data plus hyperlinks to FactSet reports, for a single requested Signal event * @param eventId The UUID of the event to return. (required) * @return ApiResponse<EventAdaptiveCard> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
404 Not Found -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public ApiResponse getEventAdaptiveCardByIdWithHttpInfo(java.util.UUID eventId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'eventId' is set if (eventId == null) { throw new ApiException(400, "Missing the required parameter 'eventId' when calling getEventAdaptiveCardById"); } // create path and map variables String localVarPath = "/events/adaptive-cards/{eventId}" .replaceAll("\\{" + "eventId" + "\\}", apiClient.escapeString(eventId.toString())); // 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 = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< EventAdaptiveCard > apiResponse = apiClient.invokeAPI("EventsApi.getEventAdaptiveCardById", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, getEventAdaptiveCardByIdResponseTypeMap, false); return apiResponse; } /** * * Fetch Signals event headlines plus all additional event details for a single requested Signal event * @param eventId The UUID of the event to return. (required) * @return EventDetail * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
404 Not Found -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public EventDetail getEventDetailById(java.util.UUID eventId) throws ApiException { return getEventDetailByIdWithHttpInfo(eventId).getData(); } /** * * Fetch Signals event headlines plus all additional event details for a single requested Signal event * @param eventId The UUID of the event to return. (required) * @return ApiResponse<EventDetail> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
404 Not Found -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public ApiResponse getEventDetailByIdWithHttpInfo(java.util.UUID eventId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'eventId' is set if (eventId == null) { throw new ApiException(400, "Missing the required parameter 'eventId' when calling getEventDetailById"); } // create path and map variables String localVarPath = "/events/details/{eventId}" .replaceAll("\\{" + "eventId" + "\\}", apiClient.escapeString(eventId.toString())); // 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 = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< EventDetail > apiResponse = apiClient.invokeAPI("EventsApi.getEventDetailById", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, getEventDetailByIdResponseTypeMap, false); return apiResponse; } /** * * Fetch Microsoft's Adaptive Cards, which includes headlines and event details data plus hyperlinks to FactSet reports, based on at least one of the following filtering parameters: `ids`, `portfolios` * @param eventRequestBody (required) * @return EventAdaptiveCards * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public EventAdaptiveCards postEventAdaptiveCards(EventRequestBody eventRequestBody) throws ApiException { return postEventAdaptiveCardsWithHttpInfo(eventRequestBody).getData(); } /** * * Fetch Microsoft's Adaptive Cards, which includes headlines and event details data plus hyperlinks to FactSet reports, based on at least one of the following filtering parameters: `ids`, `portfolios` * @param eventRequestBody (required) * @return ApiResponse<EventAdaptiveCards> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public ApiResponse postEventAdaptiveCardsWithHttpInfo(EventRequestBody eventRequestBody) throws ApiException { Object localVarPostBody = eventRequestBody; // verify the required parameter 'eventRequestBody' is set if (eventRequestBody == null) { throw new ApiException(400, "Missing the required parameter 'eventRequestBody' when calling postEventAdaptiveCards"); } // create path and map variables String localVarPath = "/events/adaptive-cards"; // 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< EventAdaptiveCards > apiResponse = apiClient.invokeAPI("EventsApi.postEventAdaptiveCards", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, postEventAdaptiveCardsResponseTypeMap, false); return apiResponse; } /** * * Fetch Signals event headlines plus all additional event details for up to 1000 identifiers and at least one of the following filtering parameters: `ids`, `portfolios` * @param eventRequestBody (required) * @return EventDetails * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
*/ public EventDetails postEventDetails(EventRequestBody eventRequestBody) throws ApiException { return postEventDetailsWithHttpInfo(eventRequestBody).getData(); } /** * * Fetch Signals event headlines plus all additional event details for up to 1000 identifiers and at least one of the following filtering parameters: `ids`, `portfolios` * @param eventRequestBody (required) * @return ApiResponse<EventDetails> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
*/ public ApiResponse postEventDetailsWithHttpInfo(EventRequestBody eventRequestBody) throws ApiException { Object localVarPostBody = eventRequestBody; // verify the required parameter 'eventRequestBody' is set if (eventRequestBody == null) { throw new ApiException(400, "Missing the required parameter 'eventRequestBody' when calling postEventDetails"); } // create path and map variables String localVarPath = "/events/details"; // 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< EventDetails > apiResponse = apiClient.invokeAPI("EventsApi.postEventDetails", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, postEventDetailsResponseTypeMap, false); return apiResponse; } /** * * Fetch FactSet entity IDs for events that match the filtering criteria * @param eventsEntitiesPost (required) * @return EventsEntities * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public EventsEntities postEventEntities(EventsEntitiesPost eventsEntitiesPost) throws ApiException { return postEventEntitiesWithHttpInfo(eventsEntitiesPost).getData(); } /** * * Fetch FactSet entity IDs for events that match the filtering criteria * @param eventsEntitiesPost (required) * @return ApiResponse<EventsEntities> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
500 Internal Server Error -
*/ public ApiResponse postEventEntitiesWithHttpInfo(EventsEntitiesPost eventsEntitiesPost) throws ApiException { Object localVarPostBody = eventsEntitiesPost; // verify the required parameter 'eventsEntitiesPost' is set if (eventsEntitiesPost == null) { throw new ApiException(400, "Missing the required parameter 'eventsEntitiesPost' when calling postEventEntities"); } // create path and map variables String localVarPath = "/events/entities"; // 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< EventsEntities > apiResponse = apiClient.invokeAPI("EventsApi.postEventEntities", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, postEventEntitiesResponseTypeMap, false); return apiResponse; } /** * * Fetch Signals event headlines based on the filtering criteria for up to 1000 identifiers and at least one of the following filtering parameters: `ids`, `portfolios` * @param eventRequestBody (required) * @return EventHeadlines * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
*/ public EventHeadlines postEventHeadlines(EventRequestBody eventRequestBody) throws ApiException { return postEventHeadlinesWithHttpInfo(eventRequestBody).getData(); } /** * * Fetch Signals event headlines based on the filtering criteria for up to 1000 identifiers and at least one of the following filtering parameters: `ids`, `portfolios` * @param eventRequestBody (required) * @return ApiResponse<EventHeadlines> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 OK -
429 API Rate Limit Exceeded * Api-Version -
* Api-Supported-Versions -
* RateLimit-Limit -
* RateLimit-Remaining -
* RateLimit-Reset -
*/ public ApiResponse postEventHeadlinesWithHttpInfo(EventRequestBody eventRequestBody) throws ApiException { Object localVarPostBody = eventRequestBody; // verify the required parameter 'eventRequestBody' is set if (eventRequestBody == null) { throw new ApiException(400, "Missing the required parameter 'eventRequestBody' when calling postEventHeadlines"); } // create path and map variables String localVarPath = "/events/headlines"; // 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< EventHeadlines > apiResponse = apiClient.invokeAPI("EventsApi.postEventHeadlines", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, postEventHeadlinesResponseTypeMap, false); return apiResponse; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy