verify_otp_message
(**kwargs)¶Verify an OTP
See also: AWS API Documentation
Request Syntax
response = client.verify_otp_message(
ApplicationId='string',
VerifyOTPMessageRequestParameters={
'DestinationIdentity': 'string',
'Otp': 'string',
'ReferenceId': 'string'
}
)
[REQUIRED]
The unique ID of your Amazon Pinpoint application.
[REQUIRED]
Verify OTP message request.
The destination identity to send OTP to.
The OTP the end user provided for verification.
The reference identifier provided when the OTP was previously sent.
dict
Response Syntax
{
'VerificationResponse': {
'Valid': True|False
}
}
Response Structure
(dict) --
200 response
VerificationResponse (dict) --
Verify OTP Message Response.
Valid (boolean) --
Specifies whether the OTP is valid or not.
Exceptions
Pinpoint.Client.exceptions.BadRequestException
Pinpoint.Client.exceptions.InternalServerErrorException
Pinpoint.Client.exceptions.PayloadTooLargeException
Pinpoint.Client.exceptions.ForbiddenException
Pinpoint.Client.exceptions.NotFoundException
Pinpoint.Client.exceptions.MethodNotAllowedException
Pinpoint.Client.exceptions.TooManyRequestsException