0.1. 多人 对话举报举报接口
接入需要沟通联调,请沟通好后继续接入
注意事项:
举报内容不允许超过50条
接入监控API
请求url:https://eco.immomo.com/api/report/multiDialogue
请求方式:POST
1)请求参数:
字段 | 类型 | 是否必填 | 名称 | 备注 |
---|---|---|---|---|
appid | string | 是 | 企业服务分配appid | |
sign | string | 是 | sha1(appid.content) | appid和content做完字符串拼接,然后对新字符串做sha1 |
content | string | 是 | 加密内容 | 按指定规则生成的加密串 参数数组先json_encode,过aes加密,再base64_encode |
2)content 解密出来字段:
字段 | 类型 | 是否必填 | 备注 |
---|---|---|---|
uniqid | string | 否 | 业务方的唯一id |
report_id | string | 是 | 举报对话的id |
category | string | 是 | 场景key |
redirect | string | 是 | 审核结果回调地址 |
report_evidence | array | 否 | 举报证据 |
report_evidence.reason | string | 否 | 举报理由,字符串 |
report_evidence.images | array | 否 | 举报截图,数组 |
users | array | 是 | 多人对话的举报用户id列表 |
users.id_1 | string | 是 | 用户的id,是唯一标识,这个是key,用户的key |
users.name | string | 否 | 用户名 |
users.avatar | string | 否 | 用户头像 |
users.sex | string | 否 | 用户性别 |
infos | array | 是 | 举报的对话信息 |
infos.id | string | 是 | 对应上边的接口中的用户的id,必传 |
infos.type | string | 是 | 4个类型[text,image,audio,video] |
infos.content | string | 是 | 内容,必填(支持富文本) |
infos.time | string | 是 | 发言时间 |
infos.tag | string | 否 | 仅video类型支持,目前仅支持 del 标识,非必传 |
timestamp | int | 是 | 13位时间戳 |
speech格式
{
"uniqid": 123,
"category": "场景1",
"report_id": "123212",
"timestamp":1231231231312,
"report_evidence":{
"reason":"理由",
"images":[
"http://xxx1.jpg",
"http://xxx2.jpg"
]
},
"report_info": {
"users": {
"id_1": {
"name": "张三",
"sex":1,
"avatar": 1
},
"id_2": {
"name": "李四",
"sex":1,
"avatar": 2
},
"id_3": {
"name": "王五",
"sex":1,
"avatar": 2
}
},
"infos": [
{
"id": "1",
"type": "text",
"content": "测试文本",
"time": 1451312321
},
{
"id": "2",
"type": "image",
"content": "测试图片",
"time": 1451312321
},
{
"id": "1",
"type": "audio",
"content": "测试音频地址",
"time": 1451312321
},
{
"id": "2",
"type": "video",
"tag": "del",
"content": "测试视频地址",
"time": 1451312321
}
]
}
}
- responseBody:
{ "ec": 200, "em": "success", "wt": 0.101, "data": {} }
3)成功返回参数
参数 | 类型 | 备注 | |
---|---|---|---|
ticket_id | string | true | 举报成功后中台的工单id,唯一标识 |
成功返回示例
{
"ec": 0,
"em": "success",
"timesec": 1574767721,
"data": {"ticket_id":"35474574"}
}
0.1.1. 异步回调,返回审核结果
请求地址:请求时的redirect
请求方式:POST
请求参数:
字段 | 类似 | 是否必填 | 备注 |
---|---|---|---|
appid | string | 是 | 业务分配送检时的appid |
content | string | 是 | 加密后检测内容 |
content解密后内容:
字段 | 类型 | 备注 |
---|---|---|
ticket_id | string | 工单id 分配的工单唯一id |
uniqid | string | 业务方自定义唯一id |
category | string | 场景key |
appid | string | 企业服务分配appid |
result | array | 审核结果 |
user_result 有判罚返回参数示例:
{
"ticket_id": 123,
"category": "场景1",
"appid":1231231231312,
"uniqid": "1231221",
"result": {
"dialogue_result": "ad",
"user_result": {
"id_1": "pron",
"id_2": "ad"
}
},
"auditor": "xxxxxxx"
}
user_result 无判罚返回参数示例:
{
"ticket_id": 123,
"category": "场景1",
"appid":1231231231312,
"uniqid": "1231221",
"result": {
"dialogue_result": "normal",
"user_result": [
"id_1": "normal",
"id_2": "normal"
]
},
"auditor": "xxxxxxx"
}