我正在开发asp.net和mailchimp之间的集成,使用感知我做了所有代码,创建新的广告系列,添加订阅者等。现在我需要一些帮助来在列表之间移动订阅者。我没有在感知文档中找到这个问题,有人可以帮助我吗?谢谢。
答案 0 :(得分:1)
首先,我停止使用Perceptive Mailchimp API,因为如果你能看到2011年3月11日发布的最新更新......那是很久以前的事了,这意味着没有更多的支持而且不再需要Mailchimp现在处于版本2.0 的更新。
我开始使用MailChimp.NET(支持MC API 2.0),其中更新了 4天前 ...非常不同没有?
也就是说,要使用Mailchimp API将订阅者移动/复制到新的/不同的列表,如果要从列表中删除用户,则可以使用List > Subscribe和List > Unsubscribe。 / p>
让我们看看订阅
subscribe(string apikey,
string id, // the list id
struct email, // a struct with one of the following keys (email, euid, leid)
struct merge_vars, // optional merges for the email (FNAME, LNAME, etc.)
string email_type, // optional email type preference for the email (html or text - defaults to html)
bool double_optin, // optional flag to control whether a double opt-in confirmation message is sent, defaults to true
bool update_existing, // optional flag to control whether existing subscribers should be updated instead of throwing an error, defaults to false
bool replace_interests, // optional flag to determine whether we replace the interest groups with the groups provided or we add the provided groups to the member's interest groups (optional, defaults to true)
bool send_welcome) // optional if your double_optin is false and this is true --> this will *not* fire if we end up updating an existing subscriber
现在您已经知道如何在官方Mailchimp中执行此操作,将其转换为您自己的.NET包装器可能很容易。
只要您将update_existing
设置为true
,欢迎电子邮件将永远不会启动,因为您可以从文档中读取,这样您就可以更新订阅者电子邮件并将其移至任何位置现有清单。