From ac697026b11500674cd9f9482f641bd37c71588f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Tue, 14 Aug 2018 02:25:40 +0200 Subject: [PATCH] api: Implement GET /realm/filters. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index c76e7ab..11a855c 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -864,6 +864,19 @@ class Client(object): method='GET' ) + def get_realm_filters(self): + # type: () -> Dict[str, Any] + ''' + Example usage: + + >>> client.get_realm_filters() + {'result': 'success', 'msg': '', 'filters': [['#(?P[0-9]+)', 'https://github.com/zulip/zulip/issues/%(id)s', 1]]} + ''' + return self.call_endpoint( + url='realm/filters', + method='GET', + ) + def get_server_settings(self): # type: () -> Dict[str, Any] '''