View to show all inbound sms numbers for the platform admin user.

This commit is contained in:
Rebecca Law
2017-08-15 17:04:57 +01:00
parent 27a9180d2a
commit 8aab08d4d2
6 changed files with 54 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ class InboundNumberClient(NotifyAdminAPIClient):
self.api_key = app.config['ADMIN_CLIENT_SECRET']
def get_all_inbound_sms_number_service(self):
return self.get('/inbound_number')
return self.get('/inbound-number')
def get_inbound_sms_number_for_service(self, service_id):
return self.get('/inbound-number/service/{}'.format(service_id))