|
def reqtopurl(dict_user_params=None,method=None,url=None): timestamp = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
session ="24235ade922e146bf6074dc080e76fcb70e23";
dict_all_params={'v':'2.0','method':method,'format':'xml','app_key':'488888','timestamp':timestamp,'session':session,'sign_method':'md5'}
for i in range(len(dict_user_params)):
dict_all_params[dict_user_params.keys()] = dict_user_params[dict_user_params.keys()]
sign = topmd5sign(dict_all_params,"0ebbcccfee18d7ad1aebc5b135ffa906")
dict_all_params['sign'] = sign
print dict_all_params
url = "http://10.232.12.26:8080/top/router/rest?"
rspresult = httpreq.requrl_stand(url,dict_all_params)
print rspresult
if __name__ =='__main__':
adict = {'start_date':'2010-08-29 00:00:00','end_date':'2010-09-02 00:00:00','service_staff_id':'cntaobao美丽人生:)'}
method = 'taobao.wangwang.eservice.chatrecord.get'
reqtopurl(adict,method) |
|
|