This module has been tested with Python 2.7.
pip install customerio
from customerio import CustomerIO
cio = CustomerIO(site_id, api_key)
cio.identify(id=5, email='customer@example.com', name='Bob', plan='premium')
cio.track(customer_id=5, name='purchased')
cio.track(customer_id=5, name='purchased', price=23.45)
You can pass any keyword arguments to the identify
and track
methods. These kwargs will be converted to custom attributes.
- Dimitriy Narkevich for creating the library.