我正在使用 MailChimp 的 API v3.0 并在尝试更新订阅者的邮政地址时遇到问题。
我发送的数据是:
[method] => patch
[path] => lists/123456789/members/membershash
[url] => https://us13.api.mailchimp.com/3.0/lists/123456789/members/membershash
[body] => {"merge_fields":{"FNAME":"firstname","LNAME":"lastname","TITLE":"Mr","BDAY":"10\/11","TSTATUS":"approved","ADDRESS":{"addr1":"10811 International Drive","city":"Rancho Cordova","state":"CA","zipcode":"95670"}}}
[timeout] => 10
[headers] => PATCH /3.0/lists/123456789/members/membershash HTTP/1.0
我得到的错误是:
400: Your merge fields were invalid. Please enter a complete address.
我尝试将其作为字符串发送(字段由双空格分隔,如导入文件架构中所述),即
10811 International Drive Rancho Cordova CA 95670
但我得到了同样的错误。我究竟做错了什么?