frompymstodoimportToDoConnectionclient_id='PLACE YOUR CLIENT ID'client_secret='PLACE YOUR CLIENT SECRET'auth_url=ToDoConnection.get_auth_url(client_id)
redirect_resp=input(f'Go here and authorize:\n{auth_url}\n\nPaste the full redirect URL below:\n')
token=ToDoConnection.get_token(client_id, client_secret, redirect_resp)
todo_client=ToDoConnection(client_id=client_id, client_secret=client_secret, token=token)
lists=todo_client.get_lists()
task_list=lists[0]
tasks=todo_client.get_tasks(task_list.list_id)
print(task_list)
print(*tasks, sep='\n')