def get_url(config):
    """Retrieves the url from configuration, else uses the default cloco url"""
    url = config['settings']['url']
    if not url:
        url = 'https://api.cloco.io'
    return url
