[UP] TaxisClient {~login}
This commit is contained in:
parent
4fe16e768d
commit
f3a34b4c9e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue