44 lines
854 B
Python
44 lines
854 B
Python
APPId = "00b49edc"
|
|
APIKey = "6092a002d53b61aa843a4938f24a7edd"
|
|
APISecret = "NGM1N2M3MTU0Mzg3NjZiNTFjZWZhZDE5"
|
|
|
|
# 请求数据
|
|
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":{
|
|
"sede7bced":{
|
|
"res_data":{
|
|
"encoding":"utf8",
|
|
"compress":"raw",
|
|
"format":"json"
|
|
}
|
|
}
|
|
},
|
|
"payload":{
|
|
"input_text":{
|
|
"encoding":"utf8",
|
|
"compress":"raw",
|
|
"format":"plain",
|
|
"status":3,
|
|
"text":"./resource/input/text/阳光总在风雨后.txt"
|
|
}
|
|
}
|
|
}
|
|
|
|
# 请求地址
|
|
request_url = "https://cn-huadong-1.xf-yun.com/v1/private/sede7bced"
|
|
|
|
# 用于快速定位响应值
|
|
|
|
response_path_list = ['$..payload.res_data', ] |