0.1. 1v1对话举报举报接口

接入需要沟通联调,请沟通好后继续接入

注意事项:

  • 举报内容不允许超过20条
  1. 接入监控API
请求url:https://eco.immomo.com/api/report/singleDialogue

请求方式: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 举报截图,数组
report_info string 举报类型信息,包含users 和 infos
report_user array 举报人信息
report_user.id string 用户的id,是唯一标识,必填
report_user.name string 用户名
report_user.avatar string 用户头像
reported_user array 被举报人信息
reported_user.id string 用户的id,是唯一标识,必填
reported_user.name string 用户名
reported_user.avatar string 用户头像
reported_user.sex string 用户性别(F:女,M:男)
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 标识,非必传

speech格式

{
    "uniqid": 123,
    "category": "场景1",
    "timestamp":1231231231312,
    "report_id": "1231221",
    "report_evidence":{
        "reason":"理由",
        "images":[
            "http://xxx1.jpg",
            "http://xxx2.jpg"
        ]
    },
    "report_info": {
        "report_user": {
            "name": "张三",
            "sex":"F",
            "id": 1,
            "avatar": "头像"
        },
        "reported_user": {
            "name": "李四",
            "sex":"M",
            "id": 2,
            "avatar": "头像"
        },
        "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 审核结果
result.illegal_duplicate bool 是否是违法去重的工单
result.dialogue_result string 对话结果
result.user_result array 用户结果
result.spam array 用户spam 判罚结果 0 命中spam ,1 非命中 spam
result.auditor string 审核员的id

返回参数示例:

{
    "ticket_id": 123,
    "category": "场景1",
    "appid": 1231231231312,
    "uniqid": "1231221",
    "result": {
        "illegal_duplicate": true,
        "dialogue_result": "ad",
        "user_result": {
            "id_1": "pron",
            "id_2": "ad"
        },
        "user_spam": {
            "id_1": 0,
            "id_2": "1"
        }
    },
    "auditor": "xxxxxxx"
}
@Copyright © cosmos 2019 all right reserved,powered by Gitbook修订时间: 2021-11-03 19:07:52

results matching ""

    No results matching ""