Perceptive MailChimp API - 创建新广告系列时出现问题

时间:2010-09-23 10:27:09

标签: api mailchimp

我使用PerceptiveMCAPI C# Wrapper用于MailChimp API来制作广告系列但我收到此错误

  

对象引用未设置为对象的实例。在PerceptiveMCAPI.Methods.campaignCreate.ExecuteXmlRpc()

的PerceptiveMCAPI.Methods.campaignCreate.FormatCampaignOptions(campaignCreateOptions选项)的CookComputing.XmlRpc.XmlRpcStruct.Add(对象键,对象值)处

这是我的代码

campaignCreateInput input = new campaignCreateInput();
        input.parms.type = PerceptiveMCAPI.EnumValues.campaign_type.auto;
        input.api_Validate = false;
        campaignCreateOptions options = new campaignCreateOptions();
        options.from_email = "info@domain.com";
        options.from_name = "Some Name";
        options.list_id = "xxxxxxxxx";
        options.subject = txtSubject.Text;
        options.authenticate = true;
        options.auto_footer = true;
        options.title = "SomeTitle";
        input.parms.options = options;
        Dictionary<string, string> content = new Dictionary<string, string>();
        content.Add("html", FCKeditor1.Value);
        content.Add("text", "Lorem Ipsum");
        input.parms.content = content;

        campaignCreate cmd = new campaignCreate(input);
        return cmd.Execute();

我哪里错了?

由于

0 个答案:

没有答案