/// <summary> /// http://apidocs.mailchimp.com/api/2.0/campaigns/content.php /// </summary> /// <returns></returns> public Task<MailChimpServiceResponse> ContentAsync(string campaignID, ContentOption option) { var url = Urls.Campaign + "content.json"; var request = new { cid = campaignID, options = option }; return Execute(url, request); }
/// <summary> /// http://apidocs.mailchimp.com/api/2.0/campaigns/create.php /// </summary> /// <returns></returns> public Task<MailChimpServiceResponse> CreateAsync(CampaignType type, ContentOption contentOption) { var url = Urls.Campaign + "create.json"; var request = new { type = type, // options = option, content = contentOption, // segment_opts = segmentOptions, // type_opts = typeOptions, // auto = autoReponders }; return Execute(url, request); }
public MailChimpServiceResponse Create(CampaignType type, ContentOption contentOption) { return WaitForServiceResponse(CreateAsync(type, contentOption)); }