from .rest import RestClient


class Blacklists(object):
    def __init__(self, domain, jwt_token):
        url = 'https://%s/api/v2/blacklists/tokens' % domain

        self.client = RestClient(endpoint=url, jwt=jwt_token)

    def get(self, aud=None):
        params = {
            'aud': aud
        }

        return self.client.get(params=params)

    def create(self, jti, aud=''):
        return self.client.post(data={'jti': jti, 'aud': aud})

@@ -101,16 +101,21 @@
         
+self.
 url = 'h
@@ -159,17 +159,16 @@
  domain%0A
-%0A
         
@@ -196,22 +196,8 @@
 ent(
-endpoint=url, 
 jwt=
@@ -321,16 +321,26 @@
 ent.get(
+self.url, 
 params=p
@@ -414,16 +414,26 @@
 nt.post(
+self.url, 
 data=%7B'j

Fix Blacklists usage of RestClient