Source code for wow._async.resources.account

 1"""Routes of the Account Profile API.
 2
 3Account profile has not been recorded live; see :mod:`wow.models.account` for sourcing.
 4"""
 5
 6from wow._async._resource import AsyncResource
 7from wow.models.account import AccountProfile
 8
 9__all__ = ["AsyncAccount"]
10
11
[docs] 12class AsyncAccount(AsyncResource): 13 """``client.account``: the authenticated user's WoW Forever accounts and characters.""" 14 15 __slots__ = () 16
[docs] 17 async def profile(self) -> AccountProfile: 18 """Get the authenticated user's account profile. Needs a user token with the ``wow.profile`` scope.""" 19 return await self._get("profile", "/profile/user/wow", AccountProfile)