getDomainDeliverabilityCampaign method

Future<GetDomainDeliverabilityCampaignResponse> getDomainDeliverabilityCampaign({
  1. 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.

May throw TooManyRequestsException. May throw BadRequestException. May throw NotFoundException.

Parameter campaignId : The unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign.

Implementation

Future<GetDomainDeliverabilityCampaignResponse>
    getDomainDeliverabilityCampaign({
  required String campaignId,
}) async {
  ArgumentError.checkNotNull(campaignId, 'campaignId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/email/deliverability-dashboard/campaigns/${Uri.encodeComponent(campaignId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDomainDeliverabilityCampaignResponse.fromJson(response);
}