From 39e1f92970bf55d306c9e4d7ac0094e2e2907220 Mon Sep 17 00:00:00 2001 From: Dan Schwarz Date: Mon, 13 Mar 2023 20:50:07 -0400 Subject: [PATCH] add get_lists method --- toot/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toot/api.py b/toot/api.py index f1beece..7752af4 100644 --- a/toot/api.py +++ b/toot/api.py @@ -519,3 +519,8 @@ def clear_notifications(app, user): def get_instance(base_url): url = f"{base_url}/api/v1/instance" return http.anon_get(url).json() + + +def get_lists(app, user): + path = "/api/v1/lists" + return _get_response_list(app, user, path)