Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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