Package com.algolia.api
Class AbtestingClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.AbtestingClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionAbtestingClient
(String appId, String apiKey) AbtestingClient
(String appId, String apiKey, ClientOptions options) AbtestingClient
(String appId, String apiKey, String region) AbtestingClient
(String appId, String apiKey, String region, ClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptionaddABTests
(AddABTestsRequest addABTestsRequest) Creates a new A/B test.addABTests
(AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) Creates a new A/B test.addABTestsAsync
(AddABTestsRequest addABTestsRequest) (asynchronously) Creates a new A/B test.addABTestsAsync
(AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) (asynchronously) Creates a new A/B test.customDelete
(String path) This method allow you to send requests to the Algolia REST API.customDelete
(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customDelete
(String path, Map<String, Object> parameters) This method allow you to send requests to the Algolia REST API.customDelete
(String path, Map<String, Object> parameters, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path, Map<String, Object> parameters) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync
(String path, Map<String, Object> parameters, RequestOptions requestOptions) (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.customGet
(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.customGetAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync
(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync
(String path, Map<String, Object> parameters) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync
(String path, Map<String, Object> parameters, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customPost
(String path) This method allow you to send requests to the Algolia REST API.customPost
(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.customPost
(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customPostAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customPostAsync
(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.customPostAsync
(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) (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.customPut
(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.customPutAsync
(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customPutAsync
(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.customPutAsync
(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.deleteABTest
(Integer id) Deletes an A/B test by its ID.deleteABTest
(Integer id, RequestOptions requestOptions) Deletes an A/B test by its ID.(asynchronously) Deletes an A/B test by its ID.deleteABTestAsync
(Integer id, RequestOptions requestOptions) (asynchronously) Deletes an A/B test by its ID.Retrieves the details for an A/B test by its ID.getABTest
(Integer id, RequestOptions requestOptions) Retrieves the details for an A/B test by its ID.(asynchronously) Retrieves the details for an A/B test by its ID.getABTestAsync
(Integer id, RequestOptions requestOptions) (asynchronously) Retrieves the details for an A/B test by its ID.Lists all A/B tests you configured for this application.listABTests
(RequestOptions requestOptions) Lists all A/B tests you configured for this application.listABTests
(Integer offset, Integer limit, String indexPrefix, String indexSuffix) Lists all A/B tests you configured for this application.listABTests
(Integer offset, Integer limit, String indexPrefix, String indexSuffix, RequestOptions requestOptions) Lists all A/B tests you configured for this application.(asynchronously) Lists all A/B tests you configured for this application.listABTestsAsync
(RequestOptions requestOptions) (asynchronously) Lists all A/B tests you configured for this application.listABTestsAsync
(Integer offset, Integer limit, String indexPrefix, String indexSuffix) (asynchronously) Lists all A/B tests you configured for this application.listABTestsAsync
(Integer offset, Integer limit, String indexPrefix, String indexSuffix, RequestOptions requestOptions) (asynchronously) Lists all A/B tests you configured for this application.scheduleABTest
(ScheduleABTestsRequest scheduleABTestsRequest) Schedule an A/B test to be started at a later time.scheduleABTest
(ScheduleABTestsRequest scheduleABTestsRequest, RequestOptions requestOptions) Schedule an A/B test to be started at a later time.scheduleABTestAsync
(ScheduleABTestsRequest scheduleABTestsRequest) (asynchronously) Schedule an A/B test to be started at a later time.scheduleABTestAsync
(ScheduleABTestsRequest scheduleABTestsRequest, RequestOptions requestOptions) (asynchronously) Schedule an A/B test to be started at a later time.stopABTest
(Integer id) Stops an A/B test by its ID.stopABTest
(Integer id, RequestOptions requestOptions) Stops an A/B test by its ID.(asynchronously) Stops an A/B test by its ID.stopABTestAsync
(Integer id, RequestOptions requestOptions) (asynchronously) Stops an A/B test by its ID.Methods inherited from class com.algolia.ApiClient
close, executeAsync, executeAsync
-
Constructor Details
-
AbtestingClient
-
AbtestingClient
-
AbtestingClient
-
AbtestingClient
-
-
Method Details
-
addABTests
public ABTestResponse addABTests(@Nonnull AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) throws AlgoliaRuntimeException Creates a new A/B test.- Parameters:
addABTestsRequest
- (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
-
addABTests
public ABTestResponse addABTests(@Nonnull AddABTestsRequest addABTestsRequest) throws AlgoliaRuntimeException Creates a new A/B test.- Parameters:
addABTestsRequest
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
addABTestsAsync
public CompletableFuture<ABTestResponse> addABTestsAsync(@Nonnull AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Creates a new A/B test.- Parameters:
addABTestsRequest
- (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
-
addABTestsAsync
public CompletableFuture<ABTestResponse> addABTestsAsync(@Nonnull AddABTestsRequest addABTestsRequest) throws AlgoliaRuntimeException (asynchronously) Creates a new A/B test.- Parameters:
addABTestsRequest
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customDelete
public Object customDelete(@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
-
customDelete
public Object customDelete(@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
-
customDelete
public Object customDelete(@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
-
customDelete
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
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@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
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@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
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@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
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customGet
public Object customGet(@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
-
customGet
public Object customGet(@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
-
customGet
public Object customGet(@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
-
customGet
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
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@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
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@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
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@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
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPost
public Object customPost(@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
-
customPost
public Object customPost(@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
-
customPost
public Object customPost(@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
-
customPost
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
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@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
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@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
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@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
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
customPut
public Object customPut(@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
-
customPut
public Object customPut(@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
-
customPut
public Object customPut(@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
-
customPut
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
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@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
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@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
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@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
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull 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)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteABTest
public ABTestResponse deleteABTest(@Nonnull Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException Deletes an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (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
-
deleteABTest
Deletes an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteABTestAsync
public CompletableFuture<ABTestResponse> deleteABTestAsync(@Nonnull Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Deletes an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (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
-
deleteABTestAsync
public CompletableFuture<ABTestResponse> deleteABTestAsync(@Nonnull Integer id) throws AlgoliaRuntimeException (asynchronously) Deletes an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getABTest
public ABTest getABTest(@Nonnull Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException Retrieves the details for an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (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
-
getABTest
Retrieves the details for an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getABTestAsync
public CompletableFuture<ABTest> getABTestAsync(@Nonnull Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Retrieves the details for an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (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
-
getABTestAsync
(asynchronously) Retrieves the details for an A/B test by its ID.- Parameters:
id
- Unique A/B test identifier. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTests
public ListABTestsResponse listABTests(Integer offset, Integer limit, String indexPrefix, String indexSuffix, RequestOptions requestOptions) throws AlgoliaRuntimeException Lists all A/B tests you configured for this application.- Parameters:
offset
- Position of the first item to return. (optional, default to 0)limit
- Number of items to return. (optional, default to 10)indexPrefix
- Index name prefix. Only A/B tests for indices starting with this string are included in the response. (optional)indexSuffix
- Index name suffix. Only A/B tests for indices ending with this string are included in the response. (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
-
listABTests
public ListABTestsResponse listABTests(Integer offset, Integer limit, String indexPrefix, String indexSuffix) throws AlgoliaRuntimeException Lists all A/B tests you configured for this application.- Parameters:
offset
- Position of the first item to return. (optional, default to 0)limit
- Number of items to return. (optional, default to 10)indexPrefix
- Index name prefix. Only A/B tests for indices starting with this string are included in the response. (optional)indexSuffix
- Index name suffix. Only A/B tests for indices ending with this string are included in the response. (optional)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTests
public ListABTestsResponse listABTests(RequestOptions requestOptions) throws AlgoliaRuntimeException Lists all A/B tests you configured for this application.- Parameters:
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
-
listABTests
Lists all A/B tests you configured for this application.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTestsAsync
public CompletableFuture<ListABTestsResponse> listABTestsAsync(Integer offset, Integer limit, String indexPrefix, String indexSuffix, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Lists all A/B tests you configured for this application.- Parameters:
offset
- Position of the first item to return. (optional, default to 0)limit
- Number of items to return. (optional, default to 10)indexPrefix
- Index name prefix. Only A/B tests for indices starting with this string are included in the response. (optional)indexSuffix
- Index name suffix. Only A/B tests for indices ending with this string are included in the response. (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
-
listABTestsAsync
public CompletableFuture<ListABTestsResponse> listABTestsAsync(Integer offset, Integer limit, String indexPrefix, String indexSuffix) throws AlgoliaRuntimeException (asynchronously) Lists all A/B tests you configured for this application.- Parameters:
offset
- Position of the first item to return. (optional, default to 0)limit
- Number of items to return. (optional, default to 10)indexPrefix
- Index name prefix. Only A/B tests for indices starting with this string are included in the response. (optional)indexSuffix
- Index name suffix. Only A/B tests for indices ending with this string are included in the response. (optional)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTestsAsync
public CompletableFuture<ListABTestsResponse> listABTestsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Lists all A/B tests you configured for this application.- Parameters:
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
-
listABTestsAsync
(asynchronously) Lists all A/B tests you configured for this application.- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
scheduleABTest
public ScheduleABTestResponse scheduleABTest(@Nonnull ScheduleABTestsRequest scheduleABTestsRequest, RequestOptions requestOptions) throws AlgoliaRuntimeException Schedule an A/B test to be started at a later time.- Parameters:
scheduleABTestsRequest
- (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
-
scheduleABTest
public ScheduleABTestResponse scheduleABTest(@Nonnull ScheduleABTestsRequest scheduleABTestsRequest) throws AlgoliaRuntimeException Schedule an A/B test to be started at a later time.- Parameters:
scheduleABTestsRequest
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
scheduleABTestAsync
public CompletableFuture<ScheduleABTestResponse> scheduleABTestAsync(@Nonnull ScheduleABTestsRequest scheduleABTestsRequest, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Schedule an A/B test to be started at a later time.- Parameters:
scheduleABTestsRequest
- (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
-
scheduleABTestAsync
public CompletableFuture<ScheduleABTestResponse> scheduleABTestAsync(@Nonnull ScheduleABTestsRequest scheduleABTestsRequest) throws AlgoliaRuntimeException (asynchronously) Schedule an A/B test to be started at a later time.- Parameters:
scheduleABTestsRequest
- (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
stopABTest
public ABTestResponse stopABTest(@Nonnull Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException Stops an A/B test by its ID. You can't restart stopped A/B tests.- Parameters:
id
- Unique A/B test identifier. (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
-
stopABTest
Stops an A/B test by its ID. You can't restart stopped A/B tests.- Parameters:
id
- Unique A/B test identifier. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
stopABTestAsync
public CompletableFuture<ABTestResponse> stopABTestAsync(@Nonnull Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Stops an A/B test by its ID. You can't restart stopped A/B tests.- Parameters:
id
- Unique A/B test identifier. (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
-
stopABTestAsync
public CompletableFuture<ABTestResponse> stopABTestAsync(@Nonnull Integer id) throws AlgoliaRuntimeException (asynchronously) Stops an A/B test by its ID. You can't restart stopped A/B tests.- Parameters:
id
- Unique A/B test identifier. (required)- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-