From d02dbbcf754d08986f859e4e8515624c09aab7cd Mon Sep 17 00:00:00 2001 From: Roman Godov Date: Sat, 18 Aug 2018 22:30:35 +0300 Subject: [PATCH] api: Implement GET /user_groups. --- zulip/zulip/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 54caa1d..d04c596 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1218,6 +1218,18 @@ class Client(object): method='GET' ) + def get_user_groups(self): + # type: () -> Dict[str, Any] + ''' + Example usage: + >>> client.get_user_groups() + {'result': 'success', 'msg': '', 'user_groups': [{...}, {...}]} + ''' + return self.call_endpoint( + url='user_groups', + method='GET', + ) + def create_user_group(self, group_data): # type: (Dict[str, Any]) -> Dict[str, Any] '''