Table of Contents

Interface IMarketingStatsResource

Namespace
Mailtrap.Marketing
Assembly
Mailtrap.Abstractions.dll

Represents Email Marketing statistics resource.

public interface IMarketingStatsResource : IRestResource
Inherited Members

Methods

GetStats(MarketingStatsFilter, CancellationToken)

Gets aggregated Email Marketing statistics (campaigns and automations together) for the period and filters specified by filter.

Task<MarketingStats> GetStats(MarketingStatsFilter filter, CancellationToken cancellationToken = default)

Parameters

filter MarketingStatsFilter

Filter parameters for the stats period. StartDate and EndDate are required.

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<MarketingStats>

Aggregated Email Marketing statistics. All counts and rates are 0 when nothing matched the filters.

Exceptions

ArgumentNullException

When filter is null, or its StartDate or EndDate is empty.