verifyOTPMessage method

Future<VerifyOTPMessageResponse> verifyOTPMessage({
  1. required String applicationId,
  2. required VerifyOTPMessageRequestParameters verifyOTPMessageRequestParameters,
})

Verify an OTP

May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw MethodNotAllowedException. May throw NotFoundException. May throw PayloadTooLargeException. May throw TooManyRequestsException.

Parameter applicationId : The unique ID of your Amazon Pinpoint application.

Implementation

Future<VerifyOTPMessageResponse> verifyOTPMessage({
  required String applicationId,
  required VerifyOTPMessageRequestParameters
      verifyOTPMessageRequestParameters,
}) async {
  final response = await _protocol.sendRaw(
    payload: verifyOTPMessageRequestParameters,
    method: 'POST',
    requestUri: '/v1/apps/${Uri.encodeComponent(applicationId)}/verify-otp',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return VerifyOTPMessageResponse(
    verificationResponse: VerificationResponse.fromJson($json),
  );
}