[UP] TaxisClient {~login}

This commit is contained in:
Evgeny (Krymmy) Momotov 2025-09-25 12:21:31 +03:00
parent 4fe16e768d
commit f3a34b4c9e

View file

@ -255,7 +255,7 @@ class TaxisClient:
"client_id": client_id,
"client_secret": client_secret
}
result = await self._request("POST", "/auth/login", json_data=data)
result = await self._request("POST", "/auth/login", data=data)
self.api_key = result["api_key"]
self.session.headers.update({"Authorization": f"Bearer {self.api_key}"})
return ApiKeyOut(**result)