From 30fa7c5d2f354f79410846da3a273e9e5c72378c Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Tue, 26 May 2020 21:42:45 +0530 Subject: [PATCH] api: Implement GET /realm/profile_fields endpoint. --- zulip/zulip/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 6b1eb56..405d5a6 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -907,6 +907,18 @@ class Client: method='DELETE', ) + def get_realm_profile_fields(self) -> Dict[str, Any]: + ''' + Example usage: + + >>> client.get_realm_profile_fields() + {'result': 'success', 'msg': '', 'custom_fields': [{...}, {...}, {...}, {...}]} + ''' + return self.call_endpoint( + url='realm/profile_fields', + method='GET', + ) + def get_server_settings(self) -> Dict[str, Any]: ''' Example usage: