diff options
Diffstat (limited to 'pyfunkwhale/funkwhale.py')
-rw-r--r-- | pyfunkwhale/funkwhale.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pyfunkwhale/funkwhale.py b/pyfunkwhale/funkwhale.py new file mode 100644 index 0000000..8f399ab --- /dev/null +++ b/pyfunkwhale/funkwhale.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python + +from pyfunkwhale.client import Client + + +class Funkwhale(object): + + def __init__(self, client_name, redirect_uri, client_id, + client_secret, scopes, username, password, domain, + authorization_endpoint, token_endpoint, token_filename): + self.client = Client( + client_name, redirect_uri, client_id, client_secret, + scopes, username, password, domain, authorization_endpoint, + token_endpoint, token_filename) + + def artists(self): + return self.client.call('/artists/', 'get').json() |