Skip to content

Latest commit

 

History

History
67 lines (44 loc) · 1.53 KB

File metadata and controls

67 lines (44 loc) · 1.53 KB

Brevo::EventsApi

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

Method HTTP request Description
create_event POST /events Create an event

create_event

create_event(event)

Create an event

Create an event to track a contact's interaction.

Example

# 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

Parameters

Name Type Description Notes
event Event

Return type

nil (empty response body)

Authorization

api-key, partner-key

HTTP request headers

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