我正在使用此处所示的方法:
http://apidocs.mailchimp.com/api/downloads/serialized_xml_listsubscribe.asps
我正在使用正确的API密钥和ListID - 但是,在运行脚本时,我收到以下响应:
“您必须为listSubscribe方法指定email_address值-90”
我已经搜索并邮寄了他们的支持但尚未回复。有没有人有类似的问题 - 对它的任何想法都缺少一个参数?
干杯。
来自Mailchimp示例的代码:
Dim email
Dim apikey
Dim listId
Dim resp
email = Trim(Request.Form("Email"))
list_id = "xxxxxx"
apikey = "zzzzzzzzzzzzzzzzzzzzzz"
Dim xmlhttp
Set xmlhttp = Server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "GET","http://<my-dc>.api.mailchimp.com/1.3/?method=listSubscribe&output=xml&apikey=" & apikey & "&id=" & list_id & "&email=" & Server.URLEncode(email) & "&merge_vars=",false
xmlhttp.send
resp = xmlhttp.responsetext
Set xmlhttp = Nothing
答案 0 :(得分:0)
尝试email_address
而不是email
xmlhttp.Open "GET","http://<my-dc>.api.mailchimp.com/1.3/?method=listSubscribe&output=xml&apikey=" & apikey & "&id=" & list_id & "&email_address=" & Server.URLEncode(email) & "&merge_vars=",false