Mailchimp API(.网络包装器)-自动订阅用户

本文关键字:用户 API 网络 包装 Mailchimp | 更新日期: 2023-09-27 18:11:39

我使用MailChimp API订阅用户到我的列表(在reg表单上有一个选择退出)我使用PerceptiveMCAPI包装器来处理这个

用户注册后,

    var ListId = "{LISTID}";
    var a = new listSubscribe(new listSubscribeInput(ListId, model.Email, new Dictionary<string, object>()));
    if(a.Execute().result)
    {
       //Do Stuff
    }

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

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

Mailchimp API(.网络包装器)-自动订阅用户

看起来您应该能够将MailChimp的双opt in参数设置为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 )