敏感词列表
企业可通过此接口 查询敏感词列表
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/sensitive/word/list
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"keyword": "搜索关键词",
"current_index": 1,
"page_size": 10
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
keyword | string | 是 | 搜索关键词 |
current_index | int | 否 | 页码。默认值为1 |
page_size | int | 否 | 列表返回长度。默认值为20,最大值为100 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 100,
"records": [
{
"id": 5012,
"group_name": "敏感词组001",
"word_list": ["词1", "词2", "词3"],
"create_time": 1634541215
}
]
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
success | string | 对返回码的文本描述内容 |
data | Page | 分页对象 |
total | int | 总条数 |
records | SensitiveWordInfo[] | 敏感词信息 |
id | long | 敏感词组id |
group_name | string | 敏感词组名称 |
word_list | list | 敏感词 |
create_time | long | 创建时间 |