Package software.xdev.brevo.api
Class TasksApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.TasksApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncrmTasksGet(String filterType, String filterStatus, String filterDate, String filterAssignTo, String filterContacts, String filterDeals, String filterCompanies, Integer dateFrom, Integer dateTo, Long offset, Long limit, String sort, String sortBy) Get all taskscrmTasksGet(String filterType, String filterStatus, String filterDate, String filterAssignTo, String filterContacts, String filterDeals, String filterCompanies, Integer dateFrom, Integer dateTo, Long offset, Long limit, String sort, String sortBy, Map<String, String> additionalHeaders) Get all tasksvoidDelete a taskvoidcrmTasksIdDelete(String id, Map<String, String> additionalHeaders) Delete a taskcrmTasksIdGet(String id) Get a taskcrmTasksIdGet(String id, Map<String, String> additionalHeaders) Get a taskvoidcrmTasksIdPatch(String id, CrmTasksIdPatchRequest crmTasksIdPatchRequest) Update a taskvoidcrmTasksIdPatch(String id, CrmTasksIdPatchRequest crmTasksIdPatchRequest, Map<String, String> additionalHeaders) Update a taskcrmTasksPost(CrmTasksPostRequest crmTasksPostRequest) Create a taskcrmTasksPost(CrmTasksPostRequest crmTasksPostRequest, Map<String, String> additionalHeaders) Create a taskGet all task typescrmTasktypesGet(Map<String, String> additionalHeaders) Get all task types<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
-
TasksApi
public TasksApi() -
TasksApi
-
-
Method Details
-
crmTasksGet
public TaskList crmTasksGet(@Nullable String filterType, @Nullable String filterStatus, @Nullable String filterDate, @Nullable String filterAssignTo, @Nullable String filterContacts, @Nullable String filterDeals, @Nullable String filterCompanies, @Nullable Integer dateFrom, @Nullable Integer dateTo, @Nullable Long offset, @Nullable Long limit, @Nullable String sort, @Nullable String sortBy) throws ApiException Get all tasks- Parameters:
filterType- Filter by task type (ID) (optional)filterStatus- Filter by task status (optional)filterDate- Filter by date (optional)filterAssignTo- Filter by the \"assignTo\" ID. You can utilize account emails for the \"assignTo\" attribute. (optional)filterContacts- Filter by contact ids (optional)filterDeals- Filter by deals ids (optional)filterCompanies- Filter by companies ids (optional)dateFrom- dateFrom to date range filter type (timestamp in milliseconds) (optional)dateTo- dateTo to date range filter type (timestamp in milliseconds) (optional)offset- Index of the first document of the page (optional)limit- Number of documents per page (optional, default to 50)sort- Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)sortBy- The field used to sort field names. (optional)- Returns:
- TaskList
- Throws:
ApiException- if fails to make API call
-
crmTasksGet
public TaskList crmTasksGet(@Nullable String filterType, @Nullable String filterStatus, @Nullable String filterDate, @Nullable String filterAssignTo, @Nullable String filterContacts, @Nullable String filterDeals, @Nullable String filterCompanies, @Nullable Integer dateFrom, @Nullable Integer dateTo, @Nullable Long offset, @Nullable Long limit, @Nullable String sort, @Nullable String sortBy, Map<String, String> additionalHeaders) throws ApiExceptionGet all tasks- Parameters:
filterType- Filter by task type (ID) (optional)filterStatus- Filter by task status (optional)filterDate- Filter by date (optional)filterAssignTo- Filter by the \"assignTo\" ID. You can utilize account emails for the \"assignTo\" attribute. (optional)filterContacts- Filter by contact ids (optional)filterDeals- Filter by deals ids (optional)filterCompanies- Filter by companies ids (optional)dateFrom- dateFrom to date range filter type (timestamp in milliseconds) (optional)dateTo- dateTo to date range filter type (timestamp in milliseconds) (optional)offset- Index of the first document of the page (optional)limit- Number of documents per page (optional, default to 50)sort- Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)sortBy- The field used to sort field names. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- TaskList
- Throws:
ApiException- if fails to make API call
-
crmTasksIdDelete
Delete a task- Parameters:
id- (required)- Throws:
ApiException- if fails to make API call
-
crmTasksIdDelete
public void crmTasksIdDelete(@Nonnull String id, Map<String, String> additionalHeaders) throws ApiExceptionDelete a task- Parameters:
id- (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
crmTasksIdGet
Get a task- Parameters:
id- (required)- Returns:
- Task
- Throws:
ApiException- if fails to make API call
-
crmTasksIdGet
public Task crmTasksIdGet(@Nonnull String id, Map<String, String> additionalHeaders) throws ApiExceptionGet a task- Parameters:
id- (required)additionalHeaders- additionalHeaders for this call- Returns:
- Task
- Throws:
ApiException- if fails to make API call
-
crmTasksIdPatch
public void crmTasksIdPatch(@Nonnull String id, @Nonnull CrmTasksIdPatchRequest crmTasksIdPatchRequest) throws ApiException Update a task- Parameters:
id- (required)crmTasksIdPatchRequest- Updated task details. (required)- Throws:
ApiException- if fails to make API call
-
crmTasksIdPatch
public void crmTasksIdPatch(@Nonnull String id, @Nonnull CrmTasksIdPatchRequest crmTasksIdPatchRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate a task- Parameters:
id- (required)crmTasksIdPatchRequest- Updated task details. (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
crmTasksPost
public CrmTasksPost201Response crmTasksPost(@Nonnull CrmTasksPostRequest crmTasksPostRequest) throws ApiException Create a task- Parameters:
crmTasksPostRequest- Task name. (required)- Returns:
- CrmTasksPost201Response
- Throws:
ApiException- if fails to make API call
-
crmTasksPost
public CrmTasksPost201Response crmTasksPost(@Nonnull CrmTasksPostRequest crmTasksPostRequest, Map<String, String> additionalHeaders) throws ApiExceptionCreate a task- Parameters:
crmTasksPostRequest- Task name. (required)additionalHeaders- additionalHeaders for this call- Returns:
- CrmTasksPost201Response
- Throws:
ApiException- if fails to make API call
-
crmTasktypesGet
Get all task types- Returns:
- TaskTypes
- Throws:
ApiException- if fails to make API call
-
crmTasktypesGet
Get all task types- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- TaskTypes
- 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.
-