From ac399d895df5682ee061378b7d9f4669873d8328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Sat, 11 Aug 2018 13:41:23 +0200 Subject: [PATCH] api: Implement POST /mark_all_as_read. --- zulip/zulip/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 078c97e..1f1e6fb 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -763,6 +763,19 @@ class Client(object): request=update_data ) + def mark_all_as_read(self): + # type: () -> Dict[str, Any] + ''' + Example usage: + + >>> client.mark_all_as_read() + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='mark_all_as_read', + method='POST', + ) + def get_message_history(self, message_id): # type: (int) -> Dict[str, Any] '''