From e25492672634a6d2a29873b43d2589835fe330ae Mon Sep 17 00:00:00 2001 From: Sebastian Scherbel Date: Mon, 18 Apr 2022 09:33:03 +0200 Subject: [PATCH] Add option to fetch all categories including subcategories --- src/pydiscourse/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pydiscourse/client.py b/src/pydiscourse/client.py index 63e4ecf..807a949 100644 --- a/src/pydiscourse/client.py +++ b/src/pydiscourse/client.py @@ -942,6 +942,12 @@ class DiscourseClient(object): """ return self._delete(u"/categories/{0}".format(category_id), **kwargs) + def get_site_info(self): + """ + Get site info to fetch all categories and subcategories + """ + return self._get("/site.json") + def get_site_settings(self): """ Get site settings