各位老师,
我想在ft中实现快递单号查询,购买了阿里云中的单号查询服务。
https://market.aliyun.com/products/57126001/cmapi010996.html#sku=yuncode499600008
我想请教各位老师,如何将以下代码转换成foxtable中可以使用的代码
谢谢!
import urllib, urllib2, sys
host = 'http,https://ali-deliver.showapi.com'
path = '/showapi_expInfo'
method = 'GET'
appcode = '你自己的AppCode'
querys = 'com=shunfeng&nu=883420070249072469'
bodys = {}
url = host + path + '?' + querys
request = urllib2.Request(url)
request.add_header('Authorization', 'APPCODE ' + appcode)
response = urllib2.urlopen(request)
content = response.read()
if (content):
print(content)