


https://www.example.com 。
示例:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json
参数 | 说明 |
https | 请求协议为 HTTPS,请求方式为 POST。 |
www.example.com | 回调 URL。 |
SdkAppId | 创建应用时在 控制台分配的 SDKAppID。 |
CallbackCommand | 固定为:ContentCallback.ResultNotify。 |
contenttype | 请求包体固定为 JSON。 |
{"Scene":"C2C","SdkAppId":1400187352,"From_Account":"jared","ContactItem":{"ContactType":1,"To_Account":"Jonh"},"ContentType":"Text","TextContent":["aaabbbccc","1234567"],"MsgID":"1434460578_4137340972_1661154487","CtxcbResult":1,"CtxcbRequestId":"241ed925-4c56-4357-95dd-1e6e7798f214"}
字段 | 类型 | 说明 |
Scene | String | 识别场景: 单聊 = C2C。 单聊自定义消息 = C2CCustom。 群聊 = Group。 群聊自定义消息 = GroupCustom。 群资料 = GroupInfo。 群成员资料 = GroupMemberInfo。 关系链 = RelationChain。 用户资料 = UserInfo。 |
From_Account | String | 识别内容的发起者 UserID。 |
ContactItem | Object | 消息识别时,表示消息接收对象。 |
ContactType | Integer | 消息识别时,区分接收对象为群组或单聊。 ContactType = 1表示单聊。 ContactType = 2表示群聊。 |
To_Account | String | ContactType = 1时,表示消息接收方 UserID。 |
ToGroupId | String | ContactType = 2时,表示消息接收方 GroupID。 |
ContentType | String | 表示识别的内容类型: 文本 = Text。 图片 = Image。 音频 = Audio。 视频 = Video |
TextContent | Array | 当 ContentType 为 Text 时,表示识别的文本内容。 |
FileURL | String | 当 ContentType 为 Image/Audio/Video 时,表示识别的文件 URL。 |
MsgID | String | 单聊识别,MsgID 为单聊消息 MsgKey;群聊识别,MsgID 为群聊消息 MsgSeq。 |
CtxcbResult | Integer | 云端审核服务识别结果: 1:表示拦截。 0:表示放过。 |
CtxcbRequestId | String | 云端审核服务识别标识。 |
CtxcbKeywords | Array | 文本命中的敏感词。 |
CtxcbSuggestion | String | 第三方内容安全服务识别建议:Block/Review/Pass。 |
CtxcbLabel | String | 识别命中的违规分类的一级标签: Illegal(违法) / Abuse(谩骂) / Polity(涉政) / Ad(广告) / Porn(色情) / Sexy(性感) / Terror(暴恐) / Composite(综合)。 |
IsRestAPI | Bool | 是否为主动识别触发的回调:false=IM 内部识别触发;true=主动识别接口触发,一般为主动识别音视频结果回调。 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0}
字段 | 类型 | 属性 | 说明 |
ActionStatus | String | 必填 | 请求处理的结果: OK:表示处理成功。 FAIL:表示失败。 |
ErrorCode | Integer | 必填 | 错误码: 0:表示 App 后台处理成功。 1:表示 App 后台处理失败。 |
ErrorInfo | String | 必填 | 错误码。 |



文档反馈