⚙️ DogeAPIClient¶
The DogeAPIClient is the low-level engine powering all API interactions.
It wraps the httpx.Client and provides retry logic, timeouts, and request abstraction.
🔌 Class Reference¶
DogeAPIClient
¶
DogeAPIClient(base_url: str = BASE_URL, timeout: float = TIMEOUT, session: Optional[Client] = None, max_retries: int = 5, backoff_factor: float = 1.5, max_backoff: float = 60.0, **httpx_kwargs)
DOGE API client with built-in retry logic for unstable endpoints.
| METHOD | DESCRIPTION |
|---|---|
rest_request |
Perform a REST request with retry logic for 429 and 5xx errors. |
Source code in src/pydoge_api/client.py
rest_request
¶
Perform a REST request with retry logic for 429 and 5xx errors.
| PARAMETER | DESCRIPTION |
|---|---|
|
HTTP method (GET, POST, etc.)
TYPE:
|
|
Full target URL.
TYPE:
|
|
Passed to httpx.request() (params, json, data, headers, etc.)
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Response
|
Response object, or raises DogeAPIRequestError. |