Package com.algolia.api
Class InsightsClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.InsightsClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionInsightsClient(String appId, String apiKey) InsightsClient(String appId, String apiKey, ClientOptions options) InsightsClient(String appId, String apiKey, String region) InsightsClient(String appId, String apiKey, String region, ClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptionThis method allow you to send requests to the Algolia REST API.del(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.delAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.get(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.getAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.post(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.postAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.pushEvents(InsightsEvents insightsEvents) Send a list of events to the Insights API.pushEvents(InsightsEvents insightsEvents, RequestOptions requestOptions) Send a list of events to the Insights API.pushEventsAsync(InsightsEvents insightsEvents) (asynchronously) Send a list of events to the Insights API.pushEventsAsync(InsightsEvents insightsEvents, RequestOptions requestOptions) (asynchronously) Send a list of events to the Insights API.This method allow you to send requests to the Algolia REST API.put(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.putAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.Methods inherited from class com.algolia.ApiClient
close, executeAsync, executeAsync
-
Constructor Details
-
InsightsClient
-
InsightsClient
-
InsightsClient
-
InsightsClient
-
-
Method Details
-
del
public Object del(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
del
public Object del(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
del
public Object del(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
del
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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
delAsync
public CompletableFuture<Object> delAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
delAsync
public CompletableFuture<Object> delAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
delAsync
public CompletableFuture<Object> delAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
delAsync
(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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
get
public Object get(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
get
public Object get(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
get
public Object get(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
get
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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getAsync
public CompletableFuture<Object> getAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getAsync
public CompletableFuture<Object> getAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getAsync
public CompletableFuture<Object> getAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getAsync
(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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
post
public Object post(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
post
public Object post(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
post
public Object post(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
post
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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
postAsync
public CompletableFuture<Object> postAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
postAsync
public CompletableFuture<Object> postAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
postAsync
public CompletableFuture<Object> postAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
postAsync
(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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
pushEvents
public EventsResponse pushEvents(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
pushEvents
public EventsResponse pushEvents(@Nonnull 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
pushEventsAsync
public CompletableFuture<EventsResponse> pushEventsAsync(@Nonnull 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 MB.- Parameters:
insightsEvents- (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
pushEventsAsync
public CompletableFuture<EventsResponse> pushEventsAsync(@Nonnull 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 MB.- Parameters:
insightsEvents- (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
put
public Object put(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
put
public Object put(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
put
public Object put(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
put
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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
putAsync
public CompletableFuture<Object> putAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
putAsync
public CompletableFuture<Object> putAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
putAsync
public CompletableFuture<Object> putAsync(@Nonnull 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.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
putAsync
(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)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-