api: Implement PATCH /user_groups/<user_group_id>.

This commit is contained in:
Yago González 2018-08-09 20:17:51 +02:00 committed by Eeshan Garg
parent c6b123016e
commit 851eb1b3bb

View file

@ -1182,6 +1182,24 @@ class Client(object):
request=group_data, request=group_data,
) )
def update_user_group(self, group_data):
# type: (Dict[str, Any]) -> Dict[str, Any]
'''
Example usage:
>>> client.update_user_group({
'group_id': 1,
'name': 'marketing',
'description': "Members of ACME Corp.'s marketing team.",
})
{'description': 'Description successfully updated.', 'name': 'Name successfully updated.', 'result': 'success', 'msg': ''}
'''
return self.call_endpoint(
url='user_groups/{}'.format(group_data['group_id']),
method='PATCH',
request=group_data,
)
def get_subscribers(self, **request): def get_subscribers(self, **request):
# type: (**Any) -> Dict[str, Any] # type: (**Any) -> Dict[str, Any]
''' '''