Skip to main content

A wrapper for the Drift API

Project description

Drift API
=========

This package wraps the Drift API. It only wraps the 'track' and
'identify' endpoints offered by the HTTP API.

https://www.drift.com/

Installation
------------

Install with pip::

$ pip install drift-api

Usage
-----

from drift_api import Drift

company_data = {
'companyId': company_id,
'attributes': {'revenue': 'bajillions'},
}

user_data = {
'userId': user_id,
'attributes': {'hair_color': 'red'},
}

drift = Drift(DRIFT_ORG_ID)
drift.identify(company_data)
drift.identify(user_data)


The package also exposes a `drift.track` method and `multi` methods for both
`track` and `identify`.


PyPI
----

https://pypi.python.org/pypi/drift-api

Source
------

https://github.com/15five/drift-api


License
-------

This library is released under the terms of the **MIT license**.
Full details in ``LICENSE.txt`` file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drift-api-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file drift-api-0.1.0.tar.gz.

File metadata

  • Download URL: drift-api-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for drift-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4a922ce7ef511b85f851a03db51daa6ea2e008a21a654424cc0ed4dcfb4a7247
MD5 136f57401d8d233d6ef71804beb2fc40
BLAKE2b-256 9beeade130ca7dae4b4ec6ec8d817f52cecc589951fdfc78b58300f6b0dbc555

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page