Client¶
HelldiveAPIClient is the main entry point. Instantiate it with your app name and contact info, then access data through its module attributes (client.planets, client.assignments, etc.).
Use it as a context manager to ensure the underlying HTTP connection is closed cleanly:
helldivepy.client.HelldiveAPIClient
¶
HelldiveAPIClient(
client: str = "helldivepy",
contact: str = "github:ajxd2/helldive.py",
base_url: str = "https://api.helldivers2.dev/api",
)
Create a new API client.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
str
|
Your application name, sent as |
'helldivepy'
|
contact
|
str
|
Contact info for your app, sent as |
'github:ajxd2/helldive.py'
|
base_url
|
str
|
API base URL. Override for testing or alternative deployments. |
'https://api.helldivers2.dev/api'
|