api: Implement POST /user_groups/<user_group_id>/members.
This commit is contained in:
parent
8dffb18216
commit
c480657952
|
@ -1213,6 +1213,23 @@ class Client(object):
|
|||
method='DELETE',
|
||||
)
|
||||
|
||||
def update_user_group_members(self, group_data):
|
||||
# type: (Dict[str, Any]) -> Dict[str, Any]
|
||||
'''
|
||||
Example usage:
|
||||
|
||||
>>> client.update_user_group_members({
|
||||
'delete': [4, 8, 15],
|
||||
'add': [16, 23, 42],
|
||||
})
|
||||
{'msg': '', 'result': 'success'}
|
||||
'''
|
||||
return self.call_endpoint(
|
||||
url='user_groups/{}/members'.format(group_data['group_id']),
|
||||
method='POST',
|
||||
request=group_data,
|
||||
)
|
||||
|
||||
def get_subscribers(self, **request):
|
||||
# type: (**Any) -> Dict[str, Any]
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue