2010-11-10 102 views
1
Dim CCoptions As campaignCreateOptions = New campaignCreateOptions() 
    CCoptions.from_email = "[email protected]" 
    CCoptions.from_name = "dummy" 
    CCoptions.to_email = "[email protected]" 
    CCoptions.subject = "HelloWorld" 
    CCoptions.list_id = "0fd2345g" 
    CCoptions.title = "who am i?" 

    Dim CCcontent As Dictionary(Of String, String) = New Dictionary(Of String, String) 
    CCcontent.Add("html", "some pretty html content message") 
    CCcontent.Add("text", "hdfjhfk000") 

    Dim params As campaignCreateParms = New campaignCreateParms 
    params.content = CCcontent 
    params.options = CCoptions 
    params.type = EnumValues.campaign_type.auto 
    params.apikey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us2" 

    Dim CCinput As campaignCreateInput = New campaignCreateInput(params) 

    Dim CCcmd As campaignCreate = New campaignCreate(CCinput) 
    Dim CCoutput As campaignCreateOutput = CCcmd.Execute() 

    Label1.Text = CCoutput.result  

我沒有得到任何答案,你能指出我的問題嗎?創建MailChimp活動

回答

0

如果你沒有收到任何人的答案,你可能想看看是否有任何電子郵件正在發送,以及它們是否在正確的時間發送給正確的人。

+0

嗨,感謝您的快速回復,我正在使用PerceptiveMCAPI。我應該在標籤框中獲得廣告系列ID。但它沒有返回任何東西。多數民衆贊成我的問題 – vettr 2010-11-10 01:19:18

+0

謝謝,你的幫助我弄明白了。我改變了params.type = EnumValues.campaign_type.auto – vettr 2010-11-10 22:09:00

+0

謝謝,爲你的幫助,我弄明白了。我改變了params.type = EnumValues.campaign_type.auto爲params.type = EnumValues.campaign_type.regular – vettr 2010-11-10 22:09:37