48 lines
1.0 KiB
Python
48 lines
1.0 KiB
Python
import os
|
|
|
|
APPId = os.environ.get("APPId")
|
|
APIKey = os.environ.get("APIKey")
|
|
APISecret = os.environ.get("APISecret")
|
|
|
|
# 请求数据
|
|
request_data = {
|
|
"header": {
|
|
"app_id": "123456",
|
|
"uid": "39769795890",
|
|
"did": "SR082321940000200",
|
|
"imei": "8664020318693660",
|
|
"imsi": "4600264952729100",
|
|
"mac": "6c:92:bf:65:c6:14",
|
|
"net_type": "wifi",
|
|
"net_isp": "CMCC",
|
|
"status": 3,
|
|
"res_id": ""
|
|
},
|
|
"parameter": {
|
|
"s6fb9d652": {
|
|
"result": {
|
|
"encoding": "utf8",
|
|
"compress": "raw",
|
|
"format": "plain"
|
|
}
|
|
}
|
|
},
|
|
"payload": {
|
|
"text": {
|
|
"encoding": "utf8",
|
|
"compress": "raw",
|
|
"format": "plain",
|
|
"status": 3,
|
|
"text": "./resource/input/text/queryMsg.txt"
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# 请求地址
|
|
request_url = "https://cbm.cn-huabei-1.xf-yun.com/v1/private/s6fb9d652"
|
|
|
|
# 用于快速定位响应值
|
|
|