mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Inbound number admin page
This commit is contained in:
15
app/notify_client/inbound_number_client.py
Normal file
15
app/notify_client/inbound_number_client.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from app.notify_client import NotifyAdminAPIClient
|
||||
|
||||
class InboundNumberClient(NotifyAdminAPIClient):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__("a" * 73, "b")
|
||||
|
||||
def init_app(self, app):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
self.service_id = app.config['ADMIN_CLIENT_USER_NAME']
|
||||
self.api_key = app.config['ADMIN_CLIENT_SECRET']
|
||||
|
||||
def get_inbound_sms_number_service(self):
|
||||
endpoint = '/inbound_number'
|
||||
return self.get(endpoint)
|
||||
Reference in New Issue
Block a user