Created
October 6, 2013 22:00
-
-
Save SamyPesse/6859673 to your computer and use it in GitHub Desktop.
Track cigarettes to Reportr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find the rpeortr.py in examples/python | |
from reportr import Reportr | |
# Create a Reportr Client | |
client = Reportr( | |
host="http://www.reportr.io", | |
token="--token--") | |
# Define model for our event | |
client.model("like", "cigarette", | |
name="Cigarettes I smoke", | |
description="Number of cigarettes I smoke.", | |
icon="$message") | |
# Track an event | |
client.track("life", "cigarette", properties={ | |
"n": 1 | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment