From 298eb77b5409a1c2c48f75c53fb52edf09d3ebe9 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 26 Feb 2018 11:50:40 +0000 Subject: [PATCH] Refactor the check token endpoint to use the newly merged api endpoints. --- app/notify_client/invite_api_client.py | 2 +- app/notify_client/org_invite_api_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/notify_client/invite_api_client.py b/app/notify_client/invite_api_client.py index a3b2589b7..5792ee2b7 100644 --- a/app/notify_client/invite_api_client.py +++ b/app/notify_client/invite_api_client.py @@ -34,7 +34,7 @@ class InviteApiClient(NotifyAdminAPIClient): return invited_users def check_token(self, token): - resp = self.get(url='/invite/{}'.format(token)) + resp = self.get(url='/invite/service/{}'.format(token)) return InvitedUser(**resp['data']) def cancel_invited_user(self, service_id, invited_user_id): diff --git a/app/notify_client/org_invite_api_client.py b/app/notify_client/org_invite_api_client.py index 71f3f955b..af7d7870d 100644 --- a/app/notify_client/org_invite_api_client.py +++ b/app/notify_client/org_invite_api_client.py @@ -30,7 +30,7 @@ class OrgInviteApiClient(NotifyAdminAPIClient): return invited_users def check_token(self, token): - resp = self.get(url='/organisation-invitation/{}'.format(token)) + resp = self.get(url='/invite/organisation/{}'.format(token)) return InvitedOrgUser(**resp['data']) def cancel_invited_user(self, org_id, invited_user_id):