thunderbird_accounts.mail.tiny_jmap_client

Classes

TinyJMAPClient(hostname, username, token)

The tiniest JMAP client you can imagine.

class thunderbird_accounts.mail.tiny_jmap_client.TinyJMAPClient(hostname, username, token)[source]

Bases: object

The tiniest JMAP client you can imagine. Source: https://github.com/fastmail/JMAP-Samples/blob/main/python3/tiny_jmap_library.py

__init__(hostname, username, token)[source]

Initialize using a hostname, username and bearer token

get_session()[source]

Return the JMAP Session Resource as a Python dict

get_account_id()[source]

Return the accountId for the account matching self.username

get_identity_id()[source]

Return the identityId for an address matching self.username

make_jmap_call(call)[source]

Make a JMAP POST request to the API, returning the response as a Python data structure.