A Python wrapper for Emma's API.
Python
Latest commit 9ed93c3 Feb 1, 2016 @omnomicon omnomicon Merge pull request #6 from myemma/STAB/194_support_add_with_groups
Stab/194 support add with groups

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