Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def init_domo_client(self, client_id, client_secret, **kwargs):
'''
- Create an API client on https://developer.domo.com
- Initialize the Domo SDK with your API client id/secret
- If you have multiple API clients you would like to use, simply initialize multiple Domo() instances
- Docs: https://developer.domo.com/docs/domo-apis/getting-started
'''
handler = logging.StreamHandler()
handler.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
logging.getLogger().addHandler(handler)
return Domo(client_id, client_secret, logger_name='foo', log_level=logging.INFO, api_host=API_HOST, **kwargs)