客服二维码
Python

import urllib, urllib2, sys
import ssl
  
host = 'https://data.06api.com'
path = '/api.php'
method = 'GET'
key = '密钥'
type = '接口标识'
querys = 'key=' + key + '&type='+ type + '&sn=串号'
bodys = {}

url = host + path + '?' + querys
request = urllib2.Request(url)

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

response = urllib2.urlopen(request, context=ctx)
content = response.read()
if (content):
    print(content)