# 内容安全识别
# 文本内容安全识别
# 接口说明
用于文本内容安全识别。
sdkInstance.checkMsgSecurity(options);
注意事项
该接口暂只支持上架至冰柠乐渠道的游戏接入!
# 参数说明
参数说明如下表所示:
选项 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
msg | string | 是 | -- | 待检测的文本内容 |
success | function | 否 | -- | 接口调用成功的回调函数 |
fail | function | 否 | -- | 接口调用失败的回调函数 |
complete | function | 否 | -- | 接口调用完成的回调函数,成功或失败均会调用 |
# 示例代码
注:示例代码中的参数或选项均为演示数据,仅供参考,谢谢!
sdkInstance.checkMsgSecurity({
msg: "特3456书yuuo莞6543李zxcz蒜7782法fgnv级",
success: function(response) {
console.log(response);
},
fail: function(error) {
console.log(error);
},
complete: function(result) {
// do something here...
}
});
# 图片内容安全识别
# 接口说明
用于图片内容安全识别。
sdkInstance.checkImgSecurity(options);
注意事项
该接口暂只支持上架至冰柠乐渠道的游戏接入!
# 参数说明
参数说明如下表所示:
选项 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
imgPath | string | 是 | -- | 待检测的图片路径(本地路径) |
success | function | 否 | -- | 接口调用成功的回调函数 |
fail | function | 否 | -- | 接口调用失败的回调函数 |
complete | function | 否 | -- | 接口调用完成的回调函数,成功或失败均会调用 |
# 示例代码
注:示例代码中的参数或选项均为演示数据,仅供参考,谢谢!
sdkInstance.checkImgSecurity({
imgPath: "xxxxxxxxxx",
success: function(response) {
console.log(response);
},
fail: function(error) {
console.log(error);
},
complete: function(result) {
// do something here...
}
});
# 音频内容安全识别
# 接口说明
用于音频内容安全识别。
sdkInstance.checkMediaSecurity(options);
注意事项
该接口暂只支持上架至冰柠乐渠道的游戏接入!
# 参数说明
参数说明如下表所示:
选项 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
mediaUrl | string | 是 | -- | 待检测的音频地址(网络 URL 地址) |
success | function | 否 | -- | 接口调用成功的回调函数 |
fail | function | 否 | -- | 接口调用失败的回调函数 |
complete | function | 否 | -- | 接口调用完成的回调函数,成功或失败均会调用 |
# 示例代码
注:示例代码中的参数或选项均为演示数据,仅供参考,谢谢!
sdkInstance.checkMediaSecurity({
mediaUrl: "https://aaa.bbb.ccc",
success: function(response) {
console.log(response);
},
fail: function(error) {
console.log(error);
},
complete: function(result) {
// do something here...
}
});