Package software.xdev.brevo.api
Class NotesApi
java.lang.Object
software.xdev.brevo.api.NotesApi
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class NotesApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncrmNotesGet(String entity, String entityIds, Integer dateFrom, Integer dateTo, Long offset, Long limit, String sort) Get all notescrmNotesGet(String entity, String entityIds, Integer dateFrom, Integer dateTo, Long offset, Long limit, String sort, Map<String, String> additionalHeaders) Get all notesvoidDelete a notevoidcrmNotesIdDelete(String id, Map<String, String> additionalHeaders) Delete a notecrmNotesIdGet(String id) Get a notecrmNotesIdGet(String id, Map<String, String> additionalHeaders) Get a notevoidcrmNotesIdPatch(String id, NoteData noteData) Update a notevoidUpdate a notecrmNotesPost(NoteData noteData) Create a notecrmNotesPost(NoteData noteData, Map<String, String> additionalHeaders) Create a notevoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
NotesApi
public NotesApi() -
NotesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 ApiExceptionGet 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
Delete a note- Parameters:
id- Note ID to delete (required)- Throws:
ApiException- if fails to make API call
-
crmNotesIdDelete
Delete a note- Parameters:
id- Note ID to delete (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
crmNotesIdGet
Get a note- Parameters:
id- Note ID to get (required)- Returns:
- Note
- Throws:
ApiException- if fails to make API call
-
crmNotesIdGet
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
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 ApiExceptionUpdate 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
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 ApiExceptionCreate 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
-