pydrawise.auth
pydrawise.auth
Authentication support for the Hydrawise v2 GraphQL API.
HybridAuth
HybridAuth(username: str, password: str, api_key: str)
Authentication support for the Hydrawise GraphQL & REST APIs.
Initializer.
| Parameters: |
|
|---|
check
async
check() -> bool
Validates that both the GraphQL credentials and the REST API key are valid.
RestAuth
RestAuth(api_key: str)
Bases: BaseAuth
Authentication support for the Hydrawise REST API.
Initializer.
| Parameters: |
|
|---|
check
async
check() -> bool
Validates that the credentials are valid.
get
async
get(path: str, **kwargs) -> dict
Perform an authenticated GET request and return the JSON response.