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.
from __future__ import print_function
import time
import brevo_python
from brevo_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api-key
configuration = brevo_python.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: partner-key
configuration = brevo_python.Configuration()
configuration.api_key['partner-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['partner-key'] = 'Bearer'
# create an instance of the API class
api_instance = brevo_python.EventsApi(brevo_python.ApiClient(configuration))
event = brevo_python.Event() # Event |
try:
# Create an event
api_instance.create_event(event)
except ApiException as e:
print("Exception when calling EventsApi->create_event: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
event | Event |
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]