def __init__(self, app_name, *args, **kwargs): """ :param: app_name - string, name of the application (can be anything) :keyword: local_config - dict, configuration that should be applied over the default config (that is loaded from config.py and local_config.py) """ ADSFlask.__init__(self, app_name, *args, **kwargs)
def __init__(self, *args, **kwargs): ADSFlask.__init__(self, *args, **kwargs) # HTTP client is provided by requests module; it handles connection pooling # here we just set some headers we always want to use while sending a request self.client.headers.update({ 'Authorization': 'Bearer {}'.format(self.config.get("API_TOKEN", '')) })
def __init__(self, *args, **kwargs): ADSFlask.__init__(self, *args, **kwargs) # HTTP client is provided by requests module; it handles connection pooling # here we just set some headers we always want to use while sending a request self.client.headers.update({'Authorization': 'Bearer {}'.format(self.config.get("API_TOKEN", ''))})