ドキュメントに応じて、/ lists/{list_id}へのPOSTは、リストメンバーを一括購読または購読解除する必要があります。Mailchimp API 3.0バッチ購読
2人のメンバーを送信すると、一つの新たなメンバーと一つ解除部材:
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.
:
{
"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の配列とエラーのあるメンバーとの配列を含むであろうと述べています。
は、しかし、その代わりに、私は次のエラーでHTTPステータス400を取得:Batch subscribe
については
{
"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