Skip to main content

Iterable API wrapper

Project description

Iterable API

This is a mostly complete wrapper of the Iterable API built with Python.

The interface is still in a state of flux, some methods will be renamed but the signatures should stay the same.

Quickstart

import os
from iterable import Iterable

api = Iterable(os.environ.get('ITERABLE_API_KEY'))

api.events.track(event_name='hello_iterable', user_id=42, created_at=datetime.now().to_timestamp())

Dropping down

The API client is a requests.Session under the hood with HTTP method names as top level functions in the wrapper.

If you want to drop down to the client, you only need to provide the resource path, e.g.:

api.get('/events/track')

Testing

The library uses pytest - you can run the tests by invoking the following:

pytest 

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

iterable-api-0.1.0.tar.gz (23.5 kB view hashes)

Uploaded Source

Built Distribution

iterable_api-0.1.0-py3-none-any.whl (29.8 kB view hashes)

Uploaded Python 3

Supported by

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