Package com.algolia.api
Class AbtestingClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.AbtestingClient
-
Field Summary
-
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 an A/B test.addABTests
(AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) Creates an A/B test.addABTestsAsync
(AddABTestsRequest addABTestsRequest) (asynchronously) Creates an A/B test.addABTestsAsync
(AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) (asynchronously) Creates an A/B test.This 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.deleteABTest
(Integer id) Delete an A/B test.deleteABTest
(Integer id, RequestOptions requestOptions) Delete an A/B test.(asynchronously) Delete an A/B test.deleteABTestAsync
(Integer id, RequestOptions requestOptions) (asynchronously) Delete an A/B test.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.Get specific details for an A/B test.getABTest
(Integer id, RequestOptions requestOptions) Get specific details for an A/B test.(asynchronously) Get specific details for an A/B test.getABTestAsync
(Integer id, RequestOptions requestOptions) (asynchronously) Get specific details for an A/B test.(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.List all A/B tests.listABTests
(RequestOptions requestOptions) List all A/B tests.listABTests
(Integer offset, Integer limit, String indexPrefix, String indexSuffix) List all A/B tests.listABTests
(Integer offset, Integer limit, String indexPrefix, String indexSuffix, RequestOptions requestOptions) List all A/B tests.(asynchronously) List all A/B tests.listABTestsAsync
(RequestOptions requestOptions) (asynchronously) List all A/B tests.listABTestsAsync
(Integer offset, Integer limit, String indexPrefix, String indexSuffix) (asynchronously) List all A/B tests.listABTestsAsync
(Integer offset, Integer limit, String indexPrefix, String indexSuffix, RequestOptions requestOptions) (asynchronously) List all A/B tests.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.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.stopABTest
(Integer id) If stopped, the test is over and can't be restarted.stopABTest
(Integer id, RequestOptions requestOptions) If stopped, the test is over and can't be restarted.(asynchronously) If stopped, the test is over and can't be restarted.stopABTestAsync
(Integer id, RequestOptions requestOptions) (asynchronously) If stopped, the test is over and can't be restarted.Methods inherited from class com.algolia.ApiClient
addAlgoliaAgent, addDefaultHeader, buildCall, buildRequest, buildUrl, escapeString, executeAsync, executeAsync, executeAsync, getConnectTimeout, getReadTimeout, getWriteTimeout, isDebugging, parameterToString, processHeaderParams, removeAlgoliaAgent, serialize, setConnectTimeout, setHosts, setLogLevel, setReadTimeout, setWriteTimeout
-
Constructor Details
-
AbtestingClient
-
AbtestingClient
-
AbtestingClient
-
AbtestingClient
-
-
Method Details
-
addABTests
public ABTestResponse addABTests(AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) throws AlgoliaRuntimeException Creates an A/B test.- Parameters:
addABTestsRequest
- (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- ABTestResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
addABTests
public ABTestResponse addABTests(AddABTestsRequest addABTestsRequest) throws AlgoliaRuntimeException Creates an A/B test.- Parameters:
addABTestsRequest
- (required)- Returns:
- ABTestResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
addABTestsAsync
public CompletableFuture<ABTestResponse> addABTestsAsync(AddABTestsRequest addABTestsRequest, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Creates an A/B test.- Parameters:
addABTestsRequest
- (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
-
addABTestsAsync
public CompletableFuture<ABTestResponse> addABTestsAsync(AddABTestsRequest addABTestsRequest) throws AlgoliaRuntimeException (asynchronously) Creates an A/B test.- Parameters:
addABTestsRequest
- (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
del
public Object del(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.- Returns:
- Object
- 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)parameters
- Query parameters to apply to the current query. (optional)- Returns:
- Object
- 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)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
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
- 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
- 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
- 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)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteABTest
public ABTestResponse deleteABTest(Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- ABTestResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteABTest
Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)- Returns:
- ABTestResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
deleteABTestAsync
public CompletableFuture<ABTestResponse> deleteABTestAsync(Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (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
-
deleteABTestAsync
public CompletableFuture<ABTestResponse> deleteABTestAsync(Integer id) throws AlgoliaRuntimeException (asynchronously) Delete an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (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 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.- Returns:
- Object
- 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)parameters
- Query parameters to apply to the current query. (optional)- Returns:
- Object
- 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)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
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
- 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
- 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
- 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)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getABTest
Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- ABTest
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getABTest
Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)- Returns:
- ABTest
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
getABTestAsync
public CompletableFuture<ABTest> getABTestAsync(Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (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
-
getABTestAsync
(asynchronously) Get specific details for an A/B test. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)- Returns:
- CompletableFuture
The awaitable future - 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 List all A/B tests.- Parameters:
offset
- Position of the starting record. Used for paging. 0 is the first record. (optional, default to 0)limit
- Number of records to return (page size). (optional, default to 10)indexPrefix
- Only return A/B tests for indices starting with this prefix. (optional)indexSuffix
- Only return A/B tests for indices ending with this suffix. (optional)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- ListABTestsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTests
public ListABTestsResponse listABTests(Integer offset, Integer limit, String indexPrefix, String indexSuffix) throws AlgoliaRuntimeException List all A/B tests.- Parameters:
offset
- Position of the starting record. Used for paging. 0 is the first record. (optional, default to 0)limit
- Number of records to return (page size). (optional, default to 10)indexPrefix
- Only return A/B tests for indices starting with this prefix. (optional)indexSuffix
- Only return A/B tests for indices ending with this suffix. (optional)- Returns:
- ListABTestsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTests
public ListABTestsResponse listABTests(RequestOptions requestOptions) throws AlgoliaRuntimeException List all A/B tests.- Parameters:
requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- ListABTestsResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTests
List all A/B tests.- Returns:
- ListABTestsResponse
- 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) List all A/B tests.- Parameters:
offset
- Position of the starting record. Used for paging. 0 is the first record. (optional, default to 0)limit
- Number of records to return (page size). (optional, default to 10)indexPrefix
- Only return A/B tests for indices starting with this prefix. (optional)indexSuffix
- Only return A/B tests for indices ending with this suffix. (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
-
listABTestsAsync
public CompletableFuture<ListABTestsResponse> listABTestsAsync(Integer offset, Integer limit, String indexPrefix, String indexSuffix) throws AlgoliaRuntimeException (asynchronously) List all A/B tests.- Parameters:
offset
- Position of the starting record. Used for paging. 0 is the first record. (optional, default to 0)limit
- Number of records to return (page size). (optional, default to 10)indexPrefix
- Only return A/B tests for indices starting with this prefix. (optional)indexSuffix
- Only return A/B tests for indices ending with this suffix. (optional)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
listABTestsAsync
public CompletableFuture<ListABTestsResponse> listABTestsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List all A/B tests.- Parameters:
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
-
listABTestsAsync
(asynchronously) List all A/B tests.- 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 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.- 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 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)- Returns:
- Object
- 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)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
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
- 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
- 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
- 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)- Returns:
- CompletableFuture
- 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 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.- 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 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)- Returns:
- Object
- 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)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
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
- 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
- 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
- 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)- Returns:
- CompletableFuture
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
stopABTest
public ABTestResponse stopABTest(Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)requestOptions
- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Returns:
- ABTestResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
stopABTest
If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)- Returns:
- ABTestResponse
- Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-
stopABTestAsync
public CompletableFuture<ABTestResponse> stopABTestAsync(Integer id, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (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
-
stopABTestAsync
(asynchronously) If stopped, the test is over and can't be restarted. There is now only one index, receiving 100% of all search requests. The data gathered for stopped A/B tests is retained. To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).- Parameters:
id
- Unique A/B test ID. (required)- Returns:
- CompletableFuture
The awaitable future - Throws:
AlgoliaRuntimeException
- If it fails to process the API call
-