我打電話的API與此JSON數據ListSubscribe部分:JSON調用API MailChimp不工作
{ 「apikey」: 「XXX-US2」, 「ID」: 「XXXXX」,「EMAIL_ADDRESS 「:」[email protected]「,」double_optin「:false,」merge_vars「:{」GROUPINGS「:{」name「:」Lectures「,」groups「:」Lecture「}}}
and I 「M找回:
{"error":"\"L\" is not a valid Interest Grouping id for the list: members-announ
ce","code":270}
然而,當我使用的ID而不是名字,我得到幾乎相同的響應(文檔說都是可用的)。如果我忽略GROUPINGS呼叫,我可以使事情發揮作用。
以下是分組的枚舉: 結果:
[{"id":11941,"name":"Lectures","form_field":"hidden","display_order":"0","groups
":[{"bit":"1","name":"Transit of Venus Wellington 12 June 2012","display_order":
"1","subscribers":1},{"bit":"2","name":"Transit of Venus Auckland 14 June 2012",
"display_order":"2","subscribers":1},{"bit":"4","name":"Lecture","display_order"
:"3","subscribers":0}]}]