getSuppressedDestination method
Future<GetSuppressedDestinationResponse>
getSuppressedDestination({
- required String emailAddress,
Retrieves information about a specific email address that's on the suppression list for your account.
May throw BadRequestException. May throw TooManyRequestsException. May throw NotFoundException.
Parameter emailAddress
:
The email address that's on the account suppression list.
Implementation
Future<GetSuppressedDestinationResponse> getSuppressedDestination({
required String emailAddress,
}) async {
ArgumentError.checkNotNull(emailAddress, 'emailAddress');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/email/suppression/addresses/${Uri.encodeComponent(emailAddress)}',
exceptionFnMap: _exceptionFns,
);
return GetSuppressedDestinationResponse.fromJson(response);
}