getDomainDeliverabilityCampaign method
Future<GetDomainDeliverabilityCampaignResponse>
getDomainDeliverabilityCampaign({
- required String campaignId,
Retrieve all the deliverability data for a specific campaign. This data is
available for a campaign only if the campaign sent email by using a domain
that the Deliverability dashboard is enabled for
(PutDeliverabilityDashboardOption
operation).
May throw TooManyRequestsException. May throw BadRequestException. May throw NotFoundException.
Parameter campaignId
:
The unique identifier for the campaign. Amazon Pinpoint automatically
generates and assigns this identifier to a campaign. This value is not the
same as the campaign identifier that Amazon Pinpoint assigns to campaigns
that you create and manage by using the Amazon Pinpoint API or the Amazon
Pinpoint console.
Implementation
Future<GetDomainDeliverabilityCampaignResponse>
getDomainDeliverabilityCampaign({
required String campaignId,
}) async {
ArgumentError.checkNotNull(campaignId, 'campaignId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/email/deliverability-dashboard/campaigns/${Uri.encodeComponent(campaignId)}',
exceptionFnMap: _exceptionFns,
);
return GetDomainDeliverabilityCampaignResponse.fromJson(response);
}