参看百度文档链接:http://ai.baidu.com/docs#/TextCensoring-API/top 按步骤做了操作。
获取到的access_token 是24.b53bdf3b0be4af3cd61e3659aed9d56b.2592000.1523270661.282335-10907141
第二个URL做字段检测时候返回值是6,文档并没有详细解释。
请求URL:https://aip.baidubce.com/rest/2.0/antispam/v1/spam
参数
command_no=500071
content=QQ213456876
access_token=24.b53bdf3b0be4af3cd61e3659aed9d56b.2592000.1523270661.282335-10907141
返回结果:
{
"error_msg": "No permission to access data",
"error_code": 6
}
"error_msg": "No permission to access data",
"error_code": 6
}
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
授权问题和内容有啥关系
哥们access_token当作url的一部分,拼接在 https://aip.baidubce.com/rest/2.0/antispam/v1/spam 之后呢,像这样:
https://aip.baidubce.com/rest/2.0/antispam/v1/spam?access_token=24.b53bdf3b0be4af3cd61e3659aed9d56b.2592000.1523270661.282335-10907141