Class EventsApi


  • public class EventsApi
    extends Object
    • Constructor Detail

      • EventsApi

        public EventsApi()
      • EventsApi

        public EventsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getHostIndex

        public int getHostIndex()
      • setHostIndex

        public void setHostIndex​(int hostIndex)
      • getCustomBaseUrl

        public String getCustomBaseUrl()
      • setCustomBaseUrl

        public void setCustomBaseUrl​(String customBaseUrl)
      • getEventsCall

        public okhttp3.Call getEventsCall​(String trDataset,
                                          GetEventsData getEventsData,
                                          ApiCallback _callback)
                                   throws ApiException
        Build call for getEvents
        Parameters:
        trDataset - The dataset id to use for the request (required)
        getEventsData - JSON request payload to get events for a dataset (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 Events for the dataset -
        400 Service error relating to getting events for the dataset -
      • getEvents

        public EventReturn getEvents​(String trDataset,
                                     GetEventsData getEventsData)
                              throws ApiException
        Get events for the dataset Get events for the dataset Get events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.
        Parameters:
        trDataset - The dataset id to use for the request (required)
        getEventsData - JSON request payload to get events for a dataset (required)
        Returns:
        EventReturn
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 Events for the dataset -
        400 Service error relating to getting events for the dataset -
      • getEventsWithHttpInfo

        public ApiResponse<EventReturn> getEventsWithHttpInfo​(@NotNull
                                                              @NotNull String trDataset,
                                                              @NotNull
                                                              @NotNull GetEventsData getEventsData)
                                                       throws ApiException
        Get events for the dataset Get events for the dataset Get events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.
        Parameters:
        trDataset - The dataset id to use for the request (required)
        getEventsData - JSON request payload to get events for a dataset (required)
        Returns:
        ApiResponse<EventReturn>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        200 Events for the dataset -
        400 Service error relating to getting events for the dataset -
      • getEventsAsync

        public okhttp3.Call getEventsAsync​(String trDataset,
                                           GetEventsData getEventsData,
                                           ApiCallback<EventReturn> _callback)
                                    throws ApiException
        Get events for the dataset (asynchronously) Get events for the dataset Get events for the auth'ed user. Currently, this is only for events belonging to the auth'ed user. Soon, we plan to associate events to datasets instead of users.
        Parameters:
        trDataset - The dataset id to use for the request (required)
        getEventsData - JSON request payload to get events for a dataset (required)
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 Events for the dataset -
        400 Service error relating to getting events for the dataset -