Skip to content

Commit

Permalink
Feat: Webapi get user details
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNulschDE committed Dec 14, 2024
1 parent 8aba6b8 commit a7a5a38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/mbapi2020/webapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ async def _request(
except Exception:
LOGGER.debug(traceback.format_exc())

async def get_user(self):
"""Get standard user information."""
return await self._request("get", "/v1/user")

async def get_user_info(self):
"""Get all devices associated with an API key."""
return await self._request("get", "/v2/vehicles")
Expand Down

0 comments on commit a7a5a38

Please # to comment.