Page and form to persist the inbound api data for a service.
This commit is contained in:
Rebecca Law
2017-06-15 16:20:07 +01:00
parent 12cfd45f60
commit 703b48b157
5 changed files with 84 additions and 1 deletions

View File

@@ -266,6 +266,14 @@ class ServiceAPIClient(NotifyAdminAPIClient):
'/service/{}/inbound-sms/summary'.format(service_id)
)
def update_service_inbound_api(self, service_id, url, bearer_token, user_id):
data = {
"url":url,
"bearer_token": bearer_token,
"updated_by_id": user_id
}
return self.post("/service/{}/inbound-api".format(service_id), data)
class ServicesBrowsableItem(BrowsableItem):
@property