Mailchimp经典ASP端点错误 [英] Mailchimp Classic ASP endpoint error
问题描述
我使用这里描述的方法:
http://apidocs.mailchimp.com/api/downloads/serialized_xml_listsubscribe.asps
我使用的是正确的API密钥和ListID - 但是,运行脚本时,我收到以下响应:
你必须指定listSubscribe方法EMAIL_ADDRESS值-90
我已经搜索并邮寄他们的支持,但没有任何答复回到尚未。有没有人有类似的问题 - 有什么想法就可以有一个参数丢失
干杯。
继承人从Mailchimp例如code:
电子邮件暗淡
昏暗apikey
昏暗listId
昏暗的RESP电子邮件=修剪(的Request.Form(电子邮件))
LIST_ID =XXXXXX
apikey =zzzzzzzzzzzzzzzzzzzzzz昏暗的XMLHTTP
设置XMLHTTP =的Server.CreateObject(MSXML2.ServerXMLHTTP)
xmlhttp.OpenGET,HTTP://<我-DC> .api.mailchimp.com / 1.3 /法= listSubscribe&放大器;输出= XML和放大器; apikey =?&放大器; apikey&安培;与& ID =与& LIST_ID&安培; &放大器;电子邮件=&放大器; Server.URLEn code(电子邮件)及&放大器; merge_vars =假
xmlhttp.send
RESP = xmlhttp.responsetext
设置XMLHTTP =什么
尝试 EMAIL_ADDRESS
而不是电子邮件
xmlhttp.OpenGET,HTTP://<我-DC> .api.mailchimp.com / 1.3 /法= listSubscribe&放大器;输出= XML和放大器; apikey =与& apikey&安培;与& ID =与& LIST_ID&安培;与& EMAIL_ADDRESS =与& Server.URLEn code(电子邮件)及&放大器; merge_vars =假
I'm using a method illustrated here:
http://apidocs.mailchimp.com/api/downloads/serialized_xml_listsubscribe.asps
I am using a correct API Key and ListID - However, when running the script I am getting the following response:
"You must specify a email_address value for the listSubscribe method -90"
I've searched and mailed their support but had no reply back as yet. Has anyone had a similar issue - any thoughts on it there's a parameter missing?
Cheers.
Heres the code from the Mailchimp example:
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
try email_address
instead of 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
这篇关于Mailchimp经典ASP端点错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!