How to install Sift
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install sift
Lastest release
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