def __init__(self, token, client=None): super(APIClient, self).__init__() self.client = client self.http = HTTPClient(token, self._after_requests) self._captures = local()
def __init__(self, token, client=None): super(APIClient, self).__init__() self.client = client self.http = HTTPClient(token)
def __init__(self, client): super(APIClient, self).__init__() self.client = client self.http = HTTPClient(self.client.config.token)