mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-30 14:10:40 -04:00
This avoids the annoying problem where you can’t import a client unless the app has already been initialised.
20 lines
552 B
Python
20 lines
552 B
Python
from app.notify_client import NotifyAdminAPIClient
|
|
|
|
|
|
class InboundNumberClient(NotifyAdminAPIClient):
|
|
|
|
def __init__(self):
|
|
super().__init__("a" * 73, "b")
|
|
|
|
def get_available_inbound_sms_numbers(self):
|
|
return self.get(url='/inbound-number/available')
|
|
|
|
def get_all_inbound_sms_number_service(self):
|
|
return self.get('/inbound-number')
|
|
|
|
def get_inbound_sms_number_for_service(self, service_id):
|
|
return self.get('/inbound-number/service/{}'.format(service_id))
|
|
|
|
|
|
inbound_number_client = InboundNumberClient()
|