Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据这篇文章,Mailchimp 会自动阻止重新订阅。
但事实并非如此,如果您gb.lists.subscribe(...)在Gibbon实例上运行 a,即使用户已取消订阅,它也会重新订阅该用户。
gb.lists.subscribe(...)
所以我的问题是:这是一个长臂猿错误吗?Mailchimp 错误?这篇博文有错吗?还是我错了?
您引用的知识库文章谈论的是 Web 应用程序的功能,而不是 API。在 API 中,您完全有能力重新订阅未订阅的用户,这就是 Gibbon 告诉 MailChimp 要做的事情。
完成此操作的最简单方法是在尝试添加用户之前检查用户是否已订阅。如果用户已经存在于列表中,您可以将update_existing参数设置为“false”以使其返回错误。
update_existing