thunderbird_accounts.subscription.send_client

Functions

get_send_storage_usage(oidc_id)

Retrieve a user's Send storage usage from Send's internal service-to-service API.

is_send_api_configured()

Exceptions

SendClientError

SendUserNotFound

exception thunderbird_accounts.subscription.send_client.SendClientError[source]

Bases: Exception

exception thunderbird_accounts.subscription.send_client.SendUserNotFound[source]

Bases: SendClientError

thunderbird_accounts.subscription.send_client.get_send_storage_usage(oidc_id: str) → dict[source]

Retrieve a user’s Send storage usage from Send’s internal service-to-service API.

Returns a dict with active (used bytes) and limit (quota bytes).