Python SDK (server api)
Quick start guide for the Ours Privacy Python SDK.
Ours Privacy Python SDK Documentation
This is a quick start guide for integrating the Ours Privacy Python SDK into your server-side applications.
Installation
Install the SDK via Pip:
pip install oursprivacy-client
For more details, visit the PyPi repository | Github Repo
Usage
Initialize the SDK and send events with just a few lines of code:
import oursprivacy_client
api_client = oursprivacy_client.OursPrivacyApi()
response = api_client.identify(oursprivacy_client.IdentifyRequest.from_dict({
'token': 'token_from_ours_privacy_source',
'userId': 'some_id',
'userProperties': {} # add relevant properties
}))
response = api_client.track(oursprivacy_client.TrackRequest.from_dict({
'token': 'token_from_ours_privacy_source',
'event': 'your_event_name',
'userId': 'some_id'
}))
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.
Updated 11 days ago