aboutsummaryrefslogtreecommitdiff
path: root/pyfunkwhale/funkwhale.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyfunkwhale/funkwhale.py')
-rw-r--r--pyfunkwhale/funkwhale.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py
index 1f8257b..1faf788 100644
--- a/pyfunkwhale/funkwhale.py
+++ b/pyfunkwhale/funkwhale.py
@@ -62,6 +62,13 @@ class Funkwhale(object):
return self.client.call('/users/users/me', 'get').json()
+ def rate_limit(self):
+ """
+ Retrieve rate-limit information and current usage status
+ """
+
+ return self.client.call('/rate-limit', 'get').json()
+
def artists(self, q: str = None, ordering: str = None,
playable: bool = None, page: int = None,
page_size: int = None) -> dict: