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

This commit is contained in:
Kartik Srivastava 2020-04-08 04:42:59 +05:30 committed by GitHub
parent 8d7eb0fea3
commit 6dd52439bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1070,6 +1070,20 @@ class Client(object):
request=request, request=request,
) )
def deactivate_user_by_id(self, user_id):
# type: (int) -> Dict[str, Any]
'''
Example usage:
>>> client.deactivate_user_by_id(8)
{'result': 'success', 'msg': ''}
'''
return self.call_endpoint(
url='users/{}'.format(user_id),
method='DELETE',
)
def get_members(self, request=None): def get_members(self, request=None):
# type: (Optional[Dict[str, Any]]) -> Dict[str, Any] # type: (Optional[Dict[str, Any]]) -> Dict[str, Any]
''' '''