Package software.xdev.brevo.api
Class TasksApi
java.lang.Object
software.xdev.brevo.api.TasksApi
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TasksApi
extends Object
-
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 typesvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
TasksApi
public TasksApi() -
TasksApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
crmTasksGet
public TaskList crmTasksGet(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) 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 assignTo id (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(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) 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 assignTo id (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
Delete 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
Get a task- Parameters:
id- (required)additionalHeaders- additionalHeaders for this call- Returns:
- Task
- Throws:
ApiException- if fails to make API call
-
crmTasksIdPatch
public void crmTasksIdPatch(String id, 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(String id, 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(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(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
-