1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 15:37:47 +01:00

add get_lists method

This commit is contained in:
Dan Schwarz 2023-03-13 20:50:07 -04:00 committed by Ivan Habunek
parent 4c12a210c4
commit 39e1f92970
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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)