From 4d482e0ef30297f716885fd8246f4638a856ba3b Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Bodas Date: Tue, 27 Apr 2021 12:32:08 +0530 Subject: [PATCH] zulip: Replace GET realm/filters with realm/linkifiers. In zulip/zulip@3947b0c80a26b9126540ada996f027aac03063b7, we replaced the legacy endpoint to use the term "linkifier" instead of "filter" and to return the data in a dictionary format. None of the official clients currently actually use this endpoint. --- zulip/zulip/__init__.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 141187c..c9b69f7 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -900,15 +900,25 @@ class Client: method='DELETE', ) - def get_realm_filters(self) -> Dict[str, Any]: + def get_realm_linkifiers(self) -> 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]]} + >>> client.get_realm_linkifiers() + { + 'result': 'success', + 'msg': '', + 'linkifiers': [ + { + 'id': 1, + 'pattern': #(?P[0-9]+)', + 'url_format': 'https://github.com/zulip/zulip/issues/%(id)s', + }, + ] + } ''' return self.call_endpoint( - url='realm/filters', + url='realm/linkifiers', method='GET', )