请求地址:/v2/Url.json
请求方式:POST
接口版本: v2
接口描述:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/python # encoding:utf-8 import urllib2, json, urllib dict = {} url = "https://api-v2.1dq.com/v2/Url.json + " ?" + urllib.urlencode( dict ) result = urllib2.urlopen(urllib2.Request(url)) jsonarr = json.loads(result.read()) # 输出错误码 print jsonarr[ "code" ] |