Exemple #1
0
        public MailChimpCampaignContent GetContent(string campaignId, CampaignContentOptions options = null)
        {
            const string Action = ContentAction;

            return _connector.Execute<MailChimpCampaignContent>(Action,
                new
                {
                    cid = campaignId,
                    options
                });
        }
Exemple #2
0
        public Task<MailChimpCampaignContent> GetContentAsync(string campaignId, CampaignContentOptions options = null, CancellationToken cancellationToken = new CancellationToken())
        {
            const string Action = ContentAction;

            return _connector.ExecuteAsync<MailChimpCampaignContent>(Action,
                new
                {
                    cid = campaignId,
                    options
                },
                cancellationToken);
        }