SDKs
Python SDK (server api)
Quickly integrate the Ours Privacy Python SDK using pip. Explore its features with our Interactive API Explorer.
Ours Privacy Python SDK Documentation
This is a quick start guide for integrating the Ours Privacy Python SDK (python) into your server-side applications.
Installation
Install the SDK via pip:
pip install ours-privacyFor more details, visit the PyPi repository | Github Repo.
Usage
Initialize the SDK and send events with just a few lines of code:
from ours_privacy import OursPrivacy
client = OursPrivacy()
# Track an event
response = client.track.event(
token='your-api-key',
event='Purchase',
userId='user123'
)
# Identify a user
response = client.identify.visitor(
token='your-api-key',
userId='user123',
userProperties={
'email': 'user@example.com',
'firstName': 'John',
'lastName': 'Doe'
}
)Explore the API
Want to see what the SDK can do? Try our Interactive API Explorer to experiment with endpoints and features in real time.
How is this guide?