api: Implement DELETE /users/{user_id} api endpoint.
This commit is contained in:
parent
8d7eb0fea3
commit
6dd52439bf
|
@ -1070,6 +1070,20 @@ class Client(object):
|
|||
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):
|
||||
# type: (Optional[Dict[str, Any]]) -> Dict[str, Any]
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue