From 04e43b95bc9c216f8c19af81d4d065e57a6d0197 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Sun, 12 Apr 2020 01:49:17 +0530 Subject: [PATCH] api: Implement /users/{user_id}/reactivate api endpoint. --- zulip/zulip/__init__.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 6f06db7..551f3b5 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1110,6 +1110,20 @@ class Client(object): method='DELETE', ) + def reactivate_user_by_id(self, user_id): + # type: (int) -> Dict[str, Any] + + ''' + Example usage: + + >>> client.reactivate_user_by_id(8) + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='users/{}/reactivate'.format(user_id), + method='POST', + ) + def update_user_by_id(self, user_id, **request): # type: (int, **Any) -> Dict[str, Any]