All URIs are relative to https://api.brevo.com/v3
Method | HTTP request | Description |
---|---|---|
CreateUnifiedEvent | POST /events | Create an event |
void CreateUnifiedEvent (ModelEvent _event)
Create an event
Create an event to track a contact's interaction.
using System;
using System.Diagnostics;
using brevo_csharp.Api;
using brevo_csharp.Client;
using brevo_csharp.Model;
namespace Example
{
public class CreateUnifiedEventExample
{
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 EventsApi();
var _event = new ModelEvent(); // ModelEvent |
try
{
// Create an event
apiInstance.CreateUnifiedEvent(_event);
}
catch (Exception e)
{
Debug.Print("Exception when calling EventsApi.CreateUnifiedEvent: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
_event | ModelEvent |
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]