From 92ceb991a31161f6f31bb1ae458da39d638e090b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Sat, 11 Aug 2018 15:01:08 +0200 Subject: [PATCH] api: Implement GET /server_settings. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index cb708b8..078c97e 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -820,6 +820,19 @@ class Client(object): method='GET' ) + def get_server_settings(self): + # type: () -> Dict[str, Any] + ''' + Example usage: + + >>> client.get_server_settings() + {'msg': '', 'result': 'success', 'zulip_version': '1.9.0', 'push_notifications_enabled': False, ...} + ''' + return self.call_endpoint( + url='/server_settings', + method='GET', + ) + def get_events(self, **request): # type: (**Any) -> Dict[str, Any] '''