def get_log_list_apiv1(guild):
    with open('..//..//Warcraftlogs//api_key.txt.') as f:
        api_key = f.readlines()[0]
    link = ((((((('https://www.warcraftlogs.com:443/v1/reports/guild/' + guild['name']) + '/') + guild['realm'].replace(' ', '-').replace("'", '')) + '/') + guild['region']) + '?api_key=') + api_key)
    guild_logs = requests.get(link)
    log_list = guild_logs.json()
    log_list_new = []
    for item in log_list:
        if (item['zone'] == 26):
            log_list_new.append({'code': item['id'], 'startTime': item['start'], 'endTime': item['end']})
    return log_list_new
def get_log_list_apiv1(guild):
    with open('..//..//Warcraftlogs//api_key.txt.') as f:
        api_key = f.readlines()[0]
    link = ((((((('https://www.warcraftlogs.com:443/v1/reports/guild/' + guild['name']) + '/') + guild['realm'].replace(' ', '-').replace("'", )) + '/') + guild['region']) + '?api_key=') + api_key)
    guild_logs = requests.get(link)
    log_list = guild_logs.json()
    log_list_new = []
    for item in log_list:
        if (item['zone'] == 26):
            log_list_new.append({'code': item['id'], 'startTime': item['start'], 'endTime': item['end']})
    return log_list_new