Class NotesApi

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

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

    • NotesApi

      public NotesApi()
    • NotesApi

      public NotesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • crmNotesGet

      public List<Note> crmNotesGet(String entity, String entityIds, Integer dateFrom, Integer dateTo, Long offset, Long limit, String sort) throws ApiException
      Get all notes
      Parameters:
      entity - Filter by note entity type (optional)
      entityIds - Filter by note entity 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)
      Returns:
      List<Note>
      Throws:
      ApiException - if fails to make API call
    • crmNotesGet

      public List<Note> crmNotesGet(String entity, String entityIds, Integer dateFrom, Integer dateTo, Long offset, Long limit, String sort, Map<String,String> additionalHeaders) throws ApiException
      Get all notes
      Parameters:
      entity - Filter by note entity type (optional)
      entityIds - Filter by note entity 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Note>
      Throws:
      ApiException - if fails to make API call
    • crmNotesIdDelete

      public void crmNotesIdDelete(String id) throws ApiException
      Delete a note
      Parameters:
      id - Note ID to delete (required)
      Throws:
      ApiException - if fails to make API call
    • crmNotesIdDelete

      public void crmNotesIdDelete(String id, Map<String,String> additionalHeaders) throws ApiException
      Delete a note
      Parameters:
      id - Note ID to delete (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • crmNotesIdGet

      public Note crmNotesIdGet(String id) throws ApiException
      Get a note
      Parameters:
      id - Note ID to get (required)
      Returns:
      Note
      Throws:
      ApiException - if fails to make API call
    • crmNotesIdGet

      public Note crmNotesIdGet(String id, Map<String,String> additionalHeaders) throws ApiException
      Get a note
      Parameters:
      id - Note ID to get (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      Note
      Throws:
      ApiException - if fails to make API call
    • crmNotesIdPatch

      public void crmNotesIdPatch(String id, NoteData noteData) throws ApiException
      Update a note
      Parameters:
      id - Note ID to update (required)
      noteData - Note data to update a note. (required)
      Throws:
      ApiException - if fails to make API call
    • crmNotesIdPatch

      public void crmNotesIdPatch(String id, NoteData noteData, Map<String,String> additionalHeaders) throws ApiException
      Update a note
      Parameters:
      id - Note ID to update (required)
      noteData - Note data to update a note. (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • crmNotesPost

      public NoteId crmNotesPost(NoteData noteData) throws ApiException
      Create a note
      Parameters:
      noteData - Note data to create a note. (required)
      Returns:
      NoteId
      Throws:
      ApiException - if fails to make API call
    • crmNotesPost

      public NoteId crmNotesPost(NoteData noteData, Map<String,String> additionalHeaders) throws ApiException
      Create a note
      Parameters:
      noteData - Note data to create a note. (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      NoteId
      Throws:
      ApiException - if fails to make API call