mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
use new check api endpoints for validating invite tokens
added in https://github.com/alphagov/notifications-api/pull/3171
This commit is contained in:
@@ -56,7 +56,7 @@ class InviteApiClient(NotifyAdminAPIClient):
|
||||
])
|
||||
|
||||
def check_token(self, token):
|
||||
return self.get(url='/invite/service/{}'.format(token))['data']
|
||||
return self.get(url='/invite/service/check/{}'.format(token))['data']
|
||||
|
||||
def cancel_invited_user(self, service_id, invited_user_id):
|
||||
data = {'status': 'cancelled'}
|
||||
|
||||
Reference in New Issue
Block a user