我正在使用 MailChimp API 的PerceptiveMCAPI C# Wrapper创建活动,但我收到此错误
你调用的对象是空的。在 CookComputing.XmlRpc.XmlRpcStruct.Add(Object key, Object value) 在 PerceptiveMCAPI.Methods.campaignCreate.FormatCampaignOptions(campaignCreateOptions options) 在 PerceptiveMCAPI.Methods.campaignCreate.ExecuteXmlRpc()
这是我的代码
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();
我哪里错了?
谢谢