api: Implement /users/{user_id}/reactivate api endpoint.

This commit is contained in:
Kartik Srivastava 2020-04-12 01:49:17 +05:30 committed by Tim Abbott
parent 59b025d2e4
commit 04e43b95bc

View file

@ -1110,6 +1110,20 @@ class Client(object):
method='DELETE', 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): def update_user_by_id(self, user_id, **request):
# type: (int, **Any) -> Dict[str, Any] # type: (int, **Any) -> Dict[str, Any]