Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.9 KB

EventsApi.md

File metadata and controls

67 lines (47 loc) · 1.9 KB

brevo_python.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

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)

Parameters

Name Type Description Notes
event Event

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]