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:
Chris Hill-Scott
2016-09-08 15:55:07 +01:00
parent 2ea401213e
commit fa5e5475e9
12 changed files with 54 additions and 54 deletions

View File

@@ -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):
"""