Functionality added and all tests working.

Update correct use of permissions form.
This commit is contained in:
Nicholas Staples
2016-03-23 10:46:31 +00:00
parent 0435015211
commit f3689cc113
8 changed files with 115 additions and 8 deletions

View File

@@ -70,6 +70,15 @@ class ServiceAPIClient(NotificationsAPIClient):
endpoint = "/service/{0}".format(service_id)
return self.post(endpoint, data)
def remove_user_from_service(self, service_id, user_id):
"""
Remove a user from a service
"""
endpoint = '/service/{service_id}/users/{user_id}'.format(
service_id=service_id,
user_id=user_id)
return self.delete(endpoint)
def create_service_template(self, name, type_, content, service_id, subject=None):
"""
Create a service template.