Class TasksApi

java.lang.Object
software.xdev.brevo.api.TasksApi

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TasksApi extends Object
  • Constructor Details

    • TasksApi

      public TasksApi()
    • TasksApi

      public TasksApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      TaskList
      Throws:
      ApiException - if fails to make API call
    • crmTasksIdDelete

      public void crmTasksIdDelete(String id) throws ApiException
      Delete a task
      Parameters:
      id - (required)
      Throws:
      ApiException - if fails to make API call
    • crmTasksIdDelete

      public void crmTasksIdDelete(String id, Map<String,String> additionalHeaders) throws ApiException
      Delete a task
      Parameters:
      id - (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • crmTasksIdGet

      public Task crmTasksIdGet(String id) throws ApiException
      Get a task
      Parameters:
      id - (required)
      Returns:
      Task
      Throws:
      ApiException - if fails to make API call
    • crmTasksIdGet

      public Task crmTasksIdGet(String id, Map<String,String> additionalHeaders) throws ApiException
      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 ApiException
      Update 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 ApiException
      Create a task
      Parameters:
      crmTasksPostRequest - Task name. (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      CrmTasksPost201Response
      Throws:
      ApiException - if fails to make API call
    • crmTasktypesGet

      public TaskTypes crmTasktypesGet() throws ApiException
      Get all task types
      Returns:
      TaskTypes
      Throws:
      ApiException - if fails to make API call
    • crmTasktypesGet

      public TaskTypes crmTasktypesGet(Map<String,String> additionalHeaders) throws ApiException
      Get all task types
      Parameters:
      additionalHeaders - additionalHeaders for this call
      Returns:
      TaskTypes
      Throws:
      ApiException - if fails to make API call