Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 811 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 811 Bytes

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