日期:2014-05-17  浏览次数:20867 次

淘宝api生成sign签名的问题
http://gw.api.taobao.com/router/rest?sign=BEA78C932E27FCF9C619D59ED750DD6D&timestamp=2012-01-08+20%3A35%3A31&v=2.0&app_key=12474215&method=taobao.trade.get&partner_id=top-apitools&session=6100a07c58b3a9417edda865f5f5a0b456c63366cbd4bb9616121015&format=xml&tid=116617264266333&fields=buyer_message

如上链接 打开可以得到一个buyer_message的值dajia,但这个地址用asp语言如何构造呢,我生成的签名和BEA78C932E27FCF9C619D59ED750DD6D不一样,希望给出asp代码,谢谢

------解决方案--------------------
<%
fields=request.form("fields")
nick=request.form("nick") + ""
keyword=request.form("keyword") + ""
v="1.0"
appkey=request.form("appkey")
appsecret=request.form("appsecret")
topurl=request.form("topurl")
timestamp=getDate(date,"yyyy-mm-dd")&" "&getTime(time,"hh:mm:ss")
timestamp2=server.URLEncode(timestamp)
method=request.form("method")
format=request.form("format")

sign=appsecret&"app_key"&appkey&"fields"&fields&"format"&format&"keyword"&keyword&"method"&method&"nick"&nick&"timestamp"&timestamp&"v"&v

top_sign=md5(sign)