Class InsightsClient

java.lang.Object
com.algolia.ApiClient
com.algolia.api.InsightsClient

public class InsightsClient extends ApiClient
  • Constructor Details

  • Method Details

    • del

      public Object del(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • del

      public Object del(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • delAsync

      public CompletableFuture<Object> delAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • get

      public Object get(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path, Map<String,Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path, Map<String,Object> parameters) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • getAsync

      public CompletableFuture<Object> getAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • post

      public Object post(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • postAsync

      public CompletableFuture<Object> postAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • pushEvents

      public EventsResponse pushEvents(InsightsEvents insightsEvents, RequestOptions requestOptions) throws AlgoliaRuntimeException
      Send a list of events to the Insights API. You can include up to 1,000 events in a single request, but the request body must be smaller than 2 MB.
      Parameters:
      insightsEvents - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      EventsResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • pushEvents

      public EventsResponse pushEvents(InsightsEvents insightsEvents) throws AlgoliaRuntimeException
      Send a list of events to the Insights API. You can include up to 1,000 events in a single request, but the request body must be smaller than 2 MB.
      Parameters:
      insightsEvents - (required)
      Returns:
      EventsResponse
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • pushEventsAsync

      public CompletableFuture<EventsResponse> pushEventsAsync(InsightsEvents insightsEvents, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) Send a list of events to the Insights API. You can include up to 1,000 events in a single request, but the request body must be smaller than 2&nbsp;MB.
      Parameters:
      insightsEvents - (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • pushEventsAsync

      public CompletableFuture<EventsResponse> pushEventsAsync(InsightsEvents insightsEvents) throws AlgoliaRuntimeException
      (asynchronously) Send a list of events to the Insights API. You can include up to 1,000 events in a single request, but the request body must be smaller than 2&nbsp;MB.
      Parameters:
      insightsEvents - (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • put

      public Object put(String path) throws AlgoliaRuntimeException
      This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      Object
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path, Map<String,Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path, Map<String,Object> parameters, Object body) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      parameters - Query parameters to apply to the current query. (optional)
      body - Parameters to send with the custom request. (optional)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path, RequestOptions requestOptions) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call
    • putAsync

      public CompletableFuture<Object> putAsync(String path) throws AlgoliaRuntimeException
      (asynchronously) This method allow you to send requests to the Algolia REST API.
      Parameters:
      path - Path of the endpoint, anything after \"/1\" must be specified. (required)
      Returns:
      CompletableFuture The awaitable future
      Throws:
      AlgoliaRuntimeException - If it fails to process the API call