Пример #1
0
    def __init__(self, list_name, task_name):
        super().__init__()

        url = api_urls.modify_task(
            get_list_id_by_name(list_name), get_task_id(list_name, task_name)
        )
        self.request = RestRequestPatch(url)
Пример #2
0
def rename_list(old_list_title: str, new_list_title: str):
    request = RestRequestPatch(
        api_urls.modify_list(get_list_id_by_name(old_list_title))
    )
    request["title"] = new_list_title
    return request.execute()