All URIs are relative to https://api.brevo.com/v3
| Method | HTTP request | Description |
|---|---|---|
| create_event | POST /events | Create an event |
create_event(event)
Create an event
Create an event to track a contact's interaction.
# load the gem
require 'brevo'
# setup authorization
Brevo.configure do |config|
# Configure API key authorization: api-key
config.api_key['api-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
config.api_key['partner-key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['partner-key'] = 'Bearer'
end
api_instance = Brevo::EventsApi.new
event = Brevo::Event.new # Event |
begin
#Create an event
api_instance.create_event(event)
rescue Brevo::ApiError => e
puts "Exception when calling EventsApi->create_event: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| event | Event |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json