def __init__(self, api_key=API_KEY, user_agent=USER_AGENT): # Setup configuration self.configuration = Configuration() self.configuration.host = HOST self.configuration.api_key['ApiKey'] = api_key self.configuration.api_key_prefix['Authorization'] = 'Bearer' # Create client self.api_client = ApiClient(configuration=self.configuration) self.api_client.user_agent = user_agent
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client