Mailchimp API(.Net Wrapper) - 自动订阅用户

Lia*_*amB 7 c# mailchimp perceptivemcapi mcapi

我正在使用MailChimp API将用户订阅到我的列表中(注册表单上有一个选择退出)我正在使用PerceptiveMCAPI包装器来处理这个问题.

一旦用户注册,

    var ListId = "{LISTID}";

    var a = new listSubscribe(new listSubscribeInput(ListId, model.Email, new Dictionary<string, object>()));

    if(a.Execute().result)
    {
       //Do Stuff
    }
Run Code Online (Sandbox Code Playgroud)

我需要一种方法来自动确认订阅(因为该网站有自己的验证方法).目前MailChimp向用户发送电子邮件,要求他们确认订阅,网站也是如此,我需要一种方法来自动接受用户的订阅.

这可能吗?我们该怎么做呢?

bre*_*dan 5

看起来您应该能够将MailChimp double opt in param设置为false以停止这些确认.

使用listSubscribe重载公开它:

  public listSubscribeParms( string id, string email_address,
         Dictionary<string, object> merge_vars, EnumValues.emailType email_type,
         bool double_optin, bool update_existing, bool replace_interests, bool send_welcome )
Run Code Online (Sandbox Code Playgroud)