Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.11 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.11 KB

heap-analytics-python-client

Build Status Coverage Status Pypi version

A Python3 client library for the Heap Analytics server-side API.

It supports both the track and identify APIs. See Heap documentation.

Installation

pip install git+git://github.com/m-vdb/[email protected]

Usage

from heapapi import HeapAPIClient

heap_client = HeapAPIClient("app_id")

heap_client.identify(
    identity="[email protected]",
    properties={"age": 30, "country": "USA"}
)

heap_client.track(
    identity="[email protected]",
    event="Purchase",
    properties={"cost": 20, "currency": "usd"}
)