All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
crmNotesGet | GET /crm/notes | Get all notes |
crmNotesIdDelete | DELETE /crm/notes/{id} | Delete a note |
crmNotesIdGet | GET /crm/notes/{id} | Get a note |
crmNotesIdPatch | PATCH /crm/notes/{id} | Update a note |
crmNotesPost | POST /crm/notes | Create a note |
NoteList crmNotesGet(entity, entityIds, dateFrom, dateTo, offset, limit, sort)
Get all notes
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
NotesApi apiInstance = new NotesApi();
String entity = "entity_example"; // String | Filter by note entity type
String entityIds = "entityIds_example"; // String | Filter by note entity IDs
Integer dateFrom = 56; // Integer | dateFrom to date range filter type (timestamp in milliseconds)
Integer dateTo = 56; // Integer | dateTo to date range filter type (timestamp in milliseconds)
Long offset = 789L; // Long | Index of the first document of the page
Long limit = 50L; // Long | Number of documents per page
String sort = "sort_example"; // String | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed
try {
NoteList result = apiInstance.crmNotesGet(entity, entityIds, dateFrom, dateTo, offset, limit, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#crmNotesGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
entity | String | Filter by note entity type | [optional] [enum: companies, deals, contacts] |
entityIds | String | Filter by note entity IDs | [optional] |
dateFrom | Integer | dateFrom to date range filter type (timestamp in milliseconds) | [optional] |
dateTo | Integer | dateTo to date range filter type (timestamp in milliseconds) | [optional] |
offset | Long | Index of the first document of the page | [optional] |
limit | Long | Number of documents per page | [optional] [default to 50] |
sort | String | Sort the results in the ascending/descending order. Default order is descending by creation if `sort` is not passed | [optional] [enum: asc, desc] |
- Content-Type: application/json
- Accept: application/json
crmNotesIdDelete(id)
Delete a note
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
NotesApi apiInstance = new NotesApi();
String id = "id_example"; // String | Note ID to delete
try {
apiInstance.crmNotesIdDelete(id);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#crmNotesIdDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Note ID to delete |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
Note crmNotesIdGet(id)
Get a note
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
NotesApi apiInstance = new NotesApi();
String id = "id_example"; // String | Note ID to get
try {
Note result = apiInstance.crmNotesIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#crmNotesIdGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Note ID to get |
- Content-Type: application/json
- Accept: application/json
crmNotesIdPatch(id, body)
Update a note
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
NotesApi apiInstance = new NotesApi();
String id = "id_example"; // String | Note ID to update
NoteData body = new NoteData(); // NoteData | Note data to update a note
try {
apiInstance.crmNotesIdPatch(id, body);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#crmNotesIdPatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Note ID to update | |
body | NoteData | Note data to update a note |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
NoteId crmNotesPost(body)
Create a note
// Import classes:
//import sendinblue.ApiClient;
//import sendinblue.ApiException;
//import sendinblue.Configuration;
//import sendinblue.auth.*;
//import sibApi.NotesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api-key
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");
// Configure API key authorization: partner-key
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
partnerKey.setApiKey("YOUR PARTNER KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//partnerKey.setApiKeyPrefix("Token");
NotesApi apiInstance = new NotesApi();
NoteData body = new NoteData(); // NoteData | Note data to create a note.
try {
NoteId result = apiInstance.crmNotesPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NotesApi#crmNotesPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | NoteData | Note data to create a note. |
- Content-Type: application/json
- Accept: application/json