🧠DogeAPI¶
The DogeAPI class provides a unified interface to all API endpoints in the DOGE SDK.
It wraps the lower-level client and injects SavingsAPI, and PaymentsAPI — all using a shared session and common flags.
📦 Class Reference¶
DogeAPI(fetch_all: bool = False, output_pydantic: bool = True, handle_response: bool = True, run_async: bool = False, client: Optional[DogeAPIClient] = None, **client_kwargs)
¶
Unified entrypoint for interacting with all DOGE endpoints.
| ATTRIBUTE | DESCRIPTION |
|---|---|
client |
Shared client instance used across all endpoint classes.
TYPE:
|
savings |
Access to /savings endpoints.
TYPE:
|
payments |
Access to /payments endpoints.
TYPE:
|
| PARAMETER | DESCRIPTION |
|---|---|
|
Automatically fetch all pages for paginated endpoints.
TYPE:
|
|
If True, return Pydantic models. If False, return plain dicts with .export().
TYPE:
|
|
If True, decode responses. If False, return raw httpx.Response.
TYPE:
|
|
If True, use asyncio-based pagination (if supported).
TYPE:
|
|
Reuse an existing client. When provided,
TYPE:
|
|
Passed to DogeAPIClient (e.g. base_url, timeout, headers) when
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
close |
Close the internal client session (unless an external client was injected). |
Source code in src/pydoge_api/api.py
close()
¶
Close the internal client session (unless an external client was injected).