api: Implement POST /user_groups/create.
This commit is contained in:
parent
2f463e2a88
commit
0ca25af06e
|
@ -1054,6 +1054,23 @@ class Client(object):
|
||||||
method='GET'
|
method='GET'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def create_user_group(self, group_data):
|
||||||
|
# type: (Dict[str, Any]) -> Dict[str, Any]
|
||||||
|
'''
|
||||||
|
Example usage:
|
||||||
|
>>> client.create_user_group({
|
||||||
|
'name': 'marketing',
|
||||||
|
'description': "Members of ACME Corp.'s marketing team.",
|
||||||
|
'members': [4, 8, 15, 16, 23, 42],
|
||||||
|
})
|
||||||
|
{'msg': '', 'result': 'success'}
|
||||||
|
'''
|
||||||
|
return self.call_endpoint(
|
||||||
|
url='user_groups/create',
|
||||||
|
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]
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue