diff options
author | neodarz <neodarz@neodarz.net> | 2020-04-12 11:17:37 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-04-12 11:17:37 +0200 |
commit | 2c8fa5251fa49bd8f7e537fbdbc801bc7bc04e59 (patch) | |
tree | b5d1ad3c04cf144ce421f3b80a6e809aa2e25b57 /pyfunkwhale/funkwhale.py | |
parent | 9ab6caef3c048b254b55fae422c64ebafd330296 (diff) | |
download | pyfunkwhale-2c8fa5251fa49bd8f7e537fbdbc801bc7bc04e59.tar.xz pyfunkwhale-2c8fa5251fa49bd8f7e537fbdbc801bc7bc04e59.zip |
Add rate-limit endpoint
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 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: |