A Python wrapper for Emma's API.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Emma API Wrapper (Python)

Build Status

Examples

Load all members

from emma.model.account import Account
acct = Account(account_id="x", public_key="y", private_key="z")
acct.members.fetch_all() # Get a dictionary of all members for the account (paginated)

Lazy-load a single member by ID

from emma.model.account import Account
acct = Account(account_id="x", public_key="y", private_key="z")
member = acct.members.get(200) # Member() or None

Lazy-load a single member by email

from emma.model.account import Account
acct = Account(account_id="x", public_key="y", private_key="z")
member = acct.members.get("test@example.com") # Member() or None