mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 10:28:26 -04:00
Refactor the check token endpoint to use the newly merged api endpoints.
This commit is contained in:
@@ -34,7 +34,7 @@ class InviteApiClient(NotifyAdminAPIClient):
|
|||||||
return invited_users
|
return invited_users
|
||||||
|
|
||||||
def check_token(self, token):
|
def check_token(self, token):
|
||||||
resp = self.get(url='/invite/{}'.format(token))
|
resp = self.get(url='/invite/service/{}'.format(token))
|
||||||
return InvitedUser(**resp['data'])
|
return InvitedUser(**resp['data'])
|
||||||
|
|
||||||
def cancel_invited_user(self, service_id, invited_user_id):
|
def cancel_invited_user(self, service_id, invited_user_id):
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class OrgInviteApiClient(NotifyAdminAPIClient):
|
|||||||
return invited_users
|
return invited_users
|
||||||
|
|
||||||
def check_token(self, token):
|
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'])
|
return InvitedOrgUser(**resp['data'])
|
||||||
|
|
||||||
def cancel_invited_user(self, org_id, invited_user_id):
|
def cancel_invited_user(self, org_id, invited_user_id):
|
||||||
|
|||||||
Reference in New Issue
Block a user