Remove unused _api_key instance variable now auth is fully header-based 🟪

This commit is contained in:
Daniel Roth 2026-05-12 14:03:07 +00:00
parent eb381a778c
commit 3df726937e

View file

@ -7,7 +7,6 @@ _BASE_URL = "https://cloud.magicplan.app/api/v2"
class MagicPlanClient: class MagicPlanClient:
def __init__(self, customer_id: str, api_key: str) -> None: def __init__(self, customer_id: str, api_key: str) -> None:
self._api_key = api_key
self._session = requests.Session() self._session = requests.Session()
self._session.headers.update({"customer": customer_id, "key": api_key}) self._session.headers.update({"customer": customer_id, "key": api_key})