aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--pyfunkwhale/funkwhale.py7
2 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 82dd441..023c872 100644
--- a/README.md
+++ b/README.md
@@ -82,7 +82,7 @@ List of features implemented or planned:
- [ ] Create an account
- [ ] Request a password request
- [x] Retrieve user information
- - [ ] Retrieve rate-limit information and current usage status
+ - [x] Retrieve rate-limit information and current usage status
- [x] Artists
- [x] List artists
- [x] Retrieve a single artist
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: