client
Client
An asynchronous client used for interacting with the API.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key |
str
|
The root api key to use for requests. |
required |
Other Parameters:
| Name | Type | Description |
|---|---|---|
api_version |
t.Optional[int]
|
The api version to access. Defaults to 1. |
api_base_url |
t.Optional[str]
|
The base url to use for the api (no trailing /).
Defaults to |
Source code in unkey/client.py
close
async
set_api_base_url
Sets the api base url used by the http service.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_url |
str
|
The new api base url to use for requests. |
required |
set_api_key
Sets the api key used by the http service.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key |
str
|
The new root api key to use for requests. |
required |