根据文档POST/lists/{list_id}批量订阅或取消订阅列表成员。Mailchimp API 3.0批量订阅
如果我发送两个成员;一个新部件和一个取消订阅构件:
{
"update_existing":true,
"members":[
{
"email_address":"[email protected]",
"email_type":"html",
"status":"subscribed"
},
{
"email_address":"[email protected]",
"email_type":"html",
"status":"subscribed"
}
]
}
的文档(http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#create-post_lists_list_id),指出该所得JSON将包括与new_members,updated_members阵列和阵列成员错误:
Response body parameters
Errors: An array of objects, each representing an email address that could not be added to the list or updated and an error message providing more details.
。
而是我得到一个HTTP状态400,出现以下错误:
{
"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error- glossary/",
"title":"Member Exists",
"status":400,
"detail":"[email protected] is in a compliance state due to unsubscribe, bounce, or compliance review and cannot be subscribed.",
"instance":""
}
我除了标题相同的反应是:“会员在遵守国家” – nmit026