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 (string entity = null, string entityIds = null, int? dateFrom = null, int? dateTo = null, long? offset = null, long? limit = null, string sort = null)
Get all notes
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CrmNotesGetExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new NotesApi();
var entity = entity_example; // string | Filter by note entity type (optional)
var entityIds = entityIds_example; // string | Filter by note entity IDs (optional)
var dateFrom = 56; // int? | dateFrom to date range filter type (timestamp in milliseconds) (optional)
var dateTo = 56; // int? | dateTo to date range filter type (timestamp in milliseconds) (optional)
var offset = 789; // long? | Index of the first document of the page (optional)
var limit = 789; // long? | Number of documents per page (optional) (default to 50)
var sort = sort_example; // string | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional)
try
{
// Get all notes
NoteList result = apiInstance.CrmNotesGet(entity, entityIds, dateFrom, dateTo, offset, limit, sort);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NotesApi.CrmNotesGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
entity | string | Filter by note entity type | [optional] |
entityIds | string | Filter by note entity IDs | [optional] |
dateFrom | int? | dateFrom to date range filter type (timestamp in milliseconds) | [optional] |
dateTo | int? | 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] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void CrmNotesIdDelete (string id)
Delete a note
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CrmNotesIdDeleteExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new NotesApi();
var id = id_example; // string | Note ID to delete
try
{
// Delete a note
apiInstance.CrmNotesIdDelete(id);
}
catch (Exception e)
{
Debug.Print("Exception when calling NotesApi.CrmNotesIdDelete: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Note ID to delete |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Note CrmNotesIdGet (string id)
Get a note
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CrmNotesIdGetExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new NotesApi();
var id = id_example; // string | Note ID to get
try
{
// Get a note
Note result = apiInstance.CrmNotesIdGet(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NotesApi.CrmNotesIdGet: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Note ID to get |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void CrmNotesIdPatch (string id, NoteData body)
Update a note
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CrmNotesIdPatchExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new NotesApi();
var id = id_example; // string | Note ID to update
var body = new NoteData(); // NoteData | Note data to update a note
try
{
// Update a note
apiInstance.CrmNotesIdPatch(id, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling NotesApi.CrmNotesIdPatch: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | Note ID to update | |
body | NoteData | Note data to update a note |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NoteId CrmNotesPost (NoteData body)
Create a note
using System;
using System.Diagnostics;
using sib_api_v3_sdk.Api;
using sib_api_v3_sdk.Client;
using sib_api_v3_sdk.Model;
namespace Example
{
public class CrmNotesPostExample
{
public void main()
{
// Configure API key authorization: api-key
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
// Configure API key authorization: partner-key
Configuration.Default.AddApiKey("partner-key", "YOUR_PARTNER_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new NotesApi();
var body = new NoteData(); // NoteData | Note data to create a note.
try
{
// Create a note
NoteId result = apiInstance.CrmNotesPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NotesApi.CrmNotesPost: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | NoteData | Note data to create a note. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]