use new check api endpoints for validating invite tokens

added in https://github.com/alphagov/notifications-api/pull/3171
This commit is contained in:
Leo Hemsted
2021-03-12 15:57:46 +00:00
parent 45297eae43
commit bf979128ab
3 changed files with 4 additions and 5 deletions

View File

@@ -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'}