Slight changes to match new API features:

- get user now throws a 404 so handle that
- making a service now needs one user not many to create
This commit is contained in:
Martyn Inglis
2016-02-19 16:38:08 +00:00
parent f761afa76e
commit 6616182ab3
3 changed files with 11 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ class NotificationsAdminAPIClient(NotificationsAPIClient):
"name": service_name,
"active": active,
"limit": limit,
"users": [user_id],
"user_id": user_id,
"restricted": restricted
}
return self.post("/service", data)