Skip to content

Latest commit

 

History

History
78 lines (58 loc) · 2.23 KB

EventsApi.md

File metadata and controls

78 lines (58 loc) · 2.23 KB

brevo_csharp.Api.EventsApi

All URIs are relative to https://api.brevo.com/v3

Method HTTP request Description
CreateUnifiedEvent POST /events Create an event

CreateUnifiedEvent

void CreateUnifiedEvent (ModelEvent _event)

Create an event

Create an event to track a contact's interaction.

Example

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 );
            }
        }
    }
}

Parameters

Name Type Description Notes
_event ModelEvent

Return type

void (empty response body)

Authorization

api-key, partner-key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]