@classmethod
def load_token(cls):
    "\n            Read an API token from a configuration file, if none found, use '' for no auth\n        "
    token = ''
    root_dir = cls.find_project_root_directory(None)
    if (not root_dir):
        return token
    config_file = (root_dir / 'config.yaml')
    if config_file.exists():
        with open(config_file) as file:
            config = yaml.load(file, Loader=yaml.FullLoader)
            try:
                token = config['token']
            except:
                print('Unable to load api-token from project root directory config.yaml')
    return token
Read an API token from a configuration file, if none found, use '' for no auth
@classmethod
def load_token(cls):
    "\n            \n        "
    token = 
    root_dir = cls.find_project_root_directory(None)
    if (not root_dir):
        return token
    config_file = (root_dir / 'config.yaml')
    if config_file.exists():
        with open(config_file) as file:
            config = yaml.load(file, Loader=yaml.FullLoader)
            try:
                token = config['token']
            except:
                print('Unable to load api-token from project root directory config.yaml')
    return token