Module datatap.api.endpoints.user_endpoints
Expand source code
from .request import ApiNamespace
from ..types import JsonUser
class User(ApiNamespace):
"""
Raw API for interacting with user endpoints.
"""
def current(self) -> JsonUser:
"""
Returns a `JsonUser` representing the logged in user.
"""
return self.get[JsonUser]("/user")
Classes
class User (request: Request)
-
Raw API for interacting with user endpoints.
Expand source code
class User(ApiNamespace): """ Raw API for interacting with user endpoints. """ def current(self) -> JsonUser: """ Returns a `JsonUser` representing the logged in user. """ return self.get[JsonUser]("/user")
Ancestors
Methods
def current(self) ‑> JsonUser
-
Returns a
JsonUser
representing the logged in user.Expand source code
def current(self) -> JsonUser: """ Returns a `JsonUser` representing the logged in user. """ return self.get[JsonUser]("/user")