Exemplo n.º 1
0
def delete_schedule_from_name(domain, username, name):
    all_schedules_json = get_request(domain, username, "schedules")
    all_schedules = json.loads(all_schedules_json)
    for key, value in all_schedules.items():
        if value['name'] == name:
            delete_request(domain, username, "schedules/" + key)
            print("deleted a schedule with name '" + name + "'")
Exemplo n.º 2
0
def get_all_schedules(domain, username):
    url = "schedules"
    return get_request(domain, username, url)