1.报文举例-获取token
请求url:
https://openapi.unionpay.com/upapi/wordDetect/token?app_id=[value]&app_secret=[value]
应答json报文结果:
{
"token": "ucG2JI1iLPRUxfGM657YElE_WdvwtaZl1_t1Oj5e70EUes2DtzOGTL1OnMha3OAgi0ukiiYvO_WiAq1W2c6Dx38LshhSKwGJpBxIBK5ar9VKkLPZIJpwyGIXymXVl4vT",
"respMsg": "成功",
"expire_in": 7200,
"respCd": "0000"
}
3.报文举例-敏感词检测主程序
请求url:
https://openapi.unionpay.com/upapi/wordDetect/puretext?sign=[value]&token=[value]&ts=[value]
请求报文参数:
{"appId":"xxxxxx","appPwd":"xxxxxx","text":"测试敏感词"}
应答json报文结果:
{
"data": {
"code":"00",
"msg":"成功",
data:{
"err_msg":"success",
"word":"测试",
"err_no":300
}
},
"respCd": "0000",
"respMsg": "成功"
}