Package software.xdev.brevo.api
Class ProcessApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.ProcessApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProcess(Long processId) Return the informations for a processgetProcess(Long processId, Map<String, String> additionalHeaders) Return the informations for a processgetProcesses(Long limit, Long offset, String sort) Return all the processes for your accountReturn all the processes for your account<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.Methods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
ProcessApi
public ProcessApi() -
ProcessApi
-
-
Method Details
-
getProcess
Return the informations for a process- Parameters:
processId- Id of the process (required)- Returns:
- GetProcess
- Throws:
ApiException- if fails to make API call
-
getProcess
public GetProcess getProcess(@Nonnull Long processId, Map<String, String> additionalHeaders) throws ApiExceptionReturn the informations for a process- Parameters:
processId- Id of the process (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetProcess
- Throws:
ApiException- if fails to make API call
-
getProcesses
public GetProcesses getProcesses(@Nullable Long limit, @Nullable Long offset, @Nullable String sort) throws ApiException Return all the processes for your account- Parameters:
limit- Number limitation for the result returned (optional, default to 10)offset- Beginning point in the list to retrieve from. (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)- Returns:
- GetProcesses
- Throws:
ApiException- if fails to make API call
-
getProcesses
public GetProcesses getProcesses(@Nullable Long limit, @Nullable Long offset, @Nullable String sort, Map<String, String> additionalHeaders) throws ApiExceptionReturn all the processes for your account- Parameters:
limit- Number limitation for the result returned (optional, default to 10)offset- Beginning point in the list to retrieve from. (optional, default to 0)sort- Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc)additionalHeaders- additionalHeaders for this call- Returns:
- GetProcesses
- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-