Ejemplo n.º 1
0
        public MailChimpCampaignContent GetContent(string campaignId, CampaignContentOptions options = null)
        {
            const string Action = ContentAction;

            return _connector.Execute<MailChimpCampaignContent>(Action,
                new
                {
                    cid = campaignId,
                    options
                });
        }
Ejemplo n.º 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);
        }