Package software.xdev.brevo.api
Class NotesApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.NotesApi
-
Field Summary
-
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 note<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
-
NotesApi
public NotesApi() -
NotesApi
-
-
Method Details
-
crmNotesGet
public List<Note> crmNotesGet(@Nullable String entity, @Nullable String entityIds, @Nullable Integer dateFrom, @Nullable Integer dateTo, @Nullable Long offset, @Nullable Long limit, @Nullable 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(@Nullable String entity, @Nullable String entityIds, @Nullable Integer dateFrom, @Nullable Integer dateTo, @Nullable Long offset, @Nullable Long limit, @Nullable 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
public void crmNotesIdDelete(@Nonnull String id, Map<String, String> additionalHeaders) throws ApiExceptionDelete 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
public Note crmNotesIdGet(@Nonnull String id, Map<String, String> additionalHeaders) throws ApiExceptionGet 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(@Nonnull String id, @Nonnull 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(@Nonnull 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
-
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.
-