Skip to content

Instantly share code, notes, and snippets.

@buremba
Last active February 6, 2017 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buremba/7e8e66d786cc2ec84b159a8e644c5c9e to your computer and use it in GitHub Desktop.
Save buremba/7e8e66d786cc2ec84b159a8e644c5c9e to your computer and use it in GitHub Desktop.
import requests
import json
url = "[YOUR_RAKAM_API]/event/collect"
response = requests.post(url, data=json.dumps({"api":{"api_key":"YOUR_WRITE_KEY"},
"collection": "systemevent","properties":{ "_time": "2017-01-01T00:00:01", "_user": "userid"}}))
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment