From ed706c24cec63fb6df30c84777511d2b15320199 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Fri, 10 Apr 2020 03:00:03 +0530 Subject: [PATCH] api: Implement GET /realm/presence endpoint. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 3483aab..79205d0 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1017,6 +1017,19 @@ class Client(object): method='GET', ) + def get_realm_presence(self): + # type: () -> Dict[str, Any] + ''' + Example usage: + + >>> client.get_realm_presence() + {'presences': {...}, 'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='realm/presence', + method='GET', + ) + def update_presence(self, request): # type: (Dict[str, Any]) -> Dict[str, Any] '''