verifyDestinationNumber method
Use the verification code that was received by the verified destination phone number to opt-in the verified destination phone number to receive more messages.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter verificationCode :
The verification code that was received by the verified destination phone
number.
Parameter verifiedDestinationNumberId :
The unique identifier for the verififed destination phone number.
Implementation
Future<VerifyDestinationNumberResult> verifyDestinationNumber({
required String verificationCode,
required String verifiedDestinationNumberId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.VerifyDestinationNumber'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'VerificationCode': verificationCode,
'VerifiedDestinationNumberId': verifiedDestinationNumberId,
},
);
return VerifyDestinationNumberResult.fromJson(jsonResponse.body);
}