mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
get_plans() sends no API key query parameter 🟩
This commit is contained in:
parent
ffcff33dd4
commit
20b32bcda0
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class MagicPlanClient:
|
||||||
self._session.headers.update({"customer": customer_id, "key": api_key})
|
self._session.headers.update({"customer": customer_id, "key": api_key})
|
||||||
|
|
||||||
def get_plans(self) -> PlansListResponse:
|
def get_plans(self) -> PlansListResponse:
|
||||||
r = self._session.get(f"{_BASE_URL}/plans", params={"key": self._api_key})
|
r = self._session.get(f"{_BASE_URL}/plans")
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
return PlansListResponse.model_validate(r.json()["data"])
|
return PlansListResponse.model_validate(r.json()["data"])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue