Python bindings for Sift Science's REST event API
Project description
Bindings for Sift Science’s REST API.
Installation
Get the package from pip:
pip install sift
Usage
Here’s an example:
import sift.Client api_key = 'XXXXXXXXXXXXXX' # TODO sift_client = sift.Client(api_key) # Track a transaction event -- note this is blocking sift_client.track('$transaction', { '$user_id': '23056', '$user_email': 'buyer@gmail.com', '$seller_user_id': '2371', '$seller_user_email': 'seller@gmail.com', '$transaction_id': '573050', '$currency_code': 'USD', '$amount': 15230000, '$time': 1327604222, 'trip_time': 930, 'distance_traveled': 5.26, })
0.0.1 (2013-01-08)
Just the Python REST client itself
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Sift-0.1.0.tar.gz
(2.3 kB
view hashes)