mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-30 11:19:44 -04:00
Update Python client
Just so that nobody else has to do it. Implements: - [x] https://github.com/alphagov/notifications-python-client/pull/29 Which is a breaking change requiring the renaming of method arguments.
This commit is contained in:
@@ -11,12 +11,12 @@ class ServiceAPIClient(NotificationsAPIClient):
|
||||
def __init__(self):
|
||||
super(ServiceAPIClient, self).__init__("api_url",
|
||||
"client",
|
||||
"secret")
|
||||
"api_key")
|
||||
|
||||
def init_app(self, application):
|
||||
self.base_url = application.config['API_HOST_NAME']
|
||||
self.client_id = application.config['ADMIN_CLIENT_USER_NAME']
|
||||
self.secret = application.config['ADMIN_CLIENT_SECRET']
|
||||
self.service_id = application.config['ADMIN_CLIENT_USER_NAME']
|
||||
self.api_key = application.config['ADMIN_CLIENT_SECRET']
|
||||
|
||||
def create_service(self, service_name, active, message_limit, restricted, user_id, email_from):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user