From 8dffb18216bdc74024afa948466ec6b88eaeec4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Tue, 14 Aug 2018 12:41:28 +0200 Subject: [PATCH] api: Implement DELETE /user_groups/. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 553bd48..62f6b45 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1200,6 +1200,19 @@ class Client(object): request=group_data, ) + def remove_user_group(self, group_id): + # type: (int) -> Dict[str, Any] + ''' + Example usage: + + >>> client.remove_user_group(42) + {'msg': '', 'result': 'success'} + ''' + return self.call_endpoint( + url='user_groups/{}'.format(group_id), + method='DELETE', + ) + def get_subscribers(self, **request): # type: (**Any) -> Dict[str, Any] '''