Quick Start
Get your API keys
Install and configure the library
# Install via pip
pip install httpx
# Import httpx library
import httpx
# Define example data
example_data = {
"type": "$login",
"status": "$succeeded",
"user_headers": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15",
"host": "site.customer.com",
"accept_language": "en-US",
"accept_encoding": "gzip, deflate, br",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
},
"product": "Safee-Login",
"user": {
"user_id": "098080381",
"user_email": "[email protected]",
"user_ip": "156.146.48.12"
}
}
# Define Headers
headers = {'Content-Type': 'application/json', 'Authorization-API': 'xxx.xxx.xxx.xxx'}
Send a custom event
Viewing the result
Last updated