コード例 #1
0
    public void campaign_update()
    {
        string cid = "YOUR_CAMPAIGN_ID";

            MCCampaignContent content = new MCCampaignContent();
            content.html_header = "header stuffs 2";
            content.html_footer = "footer sutffs 2 *|UNSUB|*";
            content.html_main = "main main main main main main 2";
            content.text = "text content rules! 2*|UNSUB|*";
            this.api.campaignUpdate(cid, "content", content);

            this.api.campaignUpdate(cid, "title", "My New Title");

            this.api.campaignUpdate(cid, "template_id", 1);
    }
コード例 #2
0
 public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content, MCSegmentOpts segment_opts, MCCampaignTypeOpts type_opts)
 {
     return this.api.campaignCreate(this.apikey, type, options, content, segment_opts, type_opts);
 }
コード例 #3
0
    public void campaign_create()
    {
        MCCampaignOpts opts = new MCCampaignOpts();
            opts.list_id = "YOUR_LIST_ID";
            opts.subject = "Subject A!";
            opts.from_email = "*****@*****.**";
            opts.from_name = "MailChimp!";

            opts.template_id = 3;

            MCCampaignContent content = new MCCampaignContent();
            content.text = "text content rules! *|UNSUB|*";
        /**
            content.html_header = "header stuffs";
            content.html_footer = "footer sutffs *|UNSUB|*";
            content.html_main = "main main main main main main";
            content.text = "text content rules! *|UNSUB|*";
        **/

            opts.tracking = new MCCampaignTracking();
            opts.tracking.opens = true;
            opts.tracking.html_clicks = false;
            opts.tracking.text_clicks = false;

            opts.authenticate = false;

            opts.analytics = new XmlRpcStruct();
            opts.analytics.Add("google", "XXXXX");

            opts.title = "Title B!";

            MCCampaignTypeOpts type_opts = new MCCampaignTypeOpts();
            type_opts.url = "http://mailchimp.com/blog/rss/";

            string new_id = this.api.campaignCreate("rss",opts,content, new MCSegmentOpts(), type_opts);
            Console.WriteLine("New Campaign ID: " + new_id);
    }
コード例 #4
0
 public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content, MCSegmentOpts segment_opts)
 {
     MCCampaignTypeOpts type_opts = new MCCampaignTypeOpts();
     return this.campaignCreate(type, options, content, segment_opts, type_opts);
 }
コード例 #5
0
 public bool campaignUpdate(string cid, string name, MCCampaignContent val)
 {
     return this.api.campaignUpdateMCCC(this.apikey, cid, name, val);
 }
コード例 #6
0
 public bool campaignUpdate(string cid, string name, MCCampaignContent val)
 {
     return(this.api.campaignUpdateMCCC(this.apikey, cid, name, val));
 }
コード例 #7
0
 public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content, MCSegmentOpts segment_opts, MCCampaignTypeOpts type_opts)
 {
     return(this.api.campaignCreate(this.apikey, type, options, content, segment_opts, type_opts));
 }
コード例 #8
0
        /**
        ** campaignCreate() method definitions
        **/
        public string campaignCreate(string type, MCCampaignOpts options, MCCampaignContent content)
        {
            MCSegmentOpts segment_opts = new MCSegmentOpts();

            return(this.campaignCreate(type, options, content, segment_opts));
        }