diff options
Diffstat (limited to 'pyfunkwhale/funkwhale.py')
-rw-r--r-- | pyfunkwhale/funkwhale.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py index 02b76f2..1f8257b 100644 --- a/pyfunkwhale/funkwhale.py +++ b/pyfunkwhale/funkwhale.py @@ -55,6 +55,13 @@ class Funkwhale(object): return self.client.call('/oauth/apps/', 'post', data=datas).json() + def user_me(self): + """ + Retrieve profile informations of the current user + """ + + return self.client.call('/users/users/me', 'get').json() + def artists(self, q: str = None, ordering: str = None, playable: bool = None, page: int = None, page_size: int = None) -> dict: |