api: Implement POST /user_groups/<user_group_id>/members.

This commit is contained in:
Yago González 2018-08-14 13:46:29 +02:00 committed by Eeshan Garg
parent 8dffb18216
commit c480657952

View file

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