文档中心

查询APP识别配置(GetRecogCfg)

描述

查询APP下识别配置

请求参数

公共参数

名称 类型 是否必须 描述
Action String Y 操作接口名,取值:ListRecogs
Version String Y 版本号,示例:2016-10-18

请求参数

名称 类型 是否必须 描述
UniqueName String Y 域名标识
App String Y 频道

返回内容

名称 类型 描述
RecogType String 识别类型配置(色情和性感:PORN,暴恐:TERRORISM,群体:GROUP),返回每种识别类型的开启状态和阈值
Enable Boolean 是否开启该项识别(开启:true,关闭:false)
Threshold Array 阈值;色情,性感,暴恐和群体可分别设置,取值范围[0.01--0.99],默认值为0.95,色情和性感设置两个阈值,eg:0.95,0.90,前者是色情阈值,后者是性感阈值

请求示例

GET http://vcs[.cn-beijing-6].api.ksyun.com?UniqueName=xxx&App=xxx
[Action, Version, Authentication, etc.]

返回示例

http 200
[
    {
        "RecogType": "PORN",
        "Enable": true,
        "Threshold": [
            0.45,
            0.45
        ]
    },
    {
        "RecogType": "GROUP",
        "Enable": true,
        "Threshold": [
            0.45
        ]
    },
    {
        "RecogType": "TERRORISM",
        "Enable": true,
        "Threshold": [
            0.45
        ]
    }
]