https://xxxxxx/v4/recentcontact/delete?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
参数 | 说明 |
xxxxxx | SDKAppID 所在国家/地区对应的专属域名: 中国: console.tim.qq.com新加坡: adminapisgp.im.qcloud.com首尔: adminapikr.im.qcloud.com东京: adminapijpn.im.qcloud.com法兰克福: adminapiger.im.qcloud.com硅谷: adminapiusa.im.qcloud.com雅加达: adminapiidn.im.qcloud.com |
v4/recentcontact/delete | 请求接口。 |
sdkappid | 创建应用时 Chat 控制台分配的 SDKAppID。 |
identifier | |
usersig | |
random | 请输入随机的32位无符号整数,取值范围0 - 4294967295。 |
contenttype | 请求格式固定值为 json。 |
{"From_Account": "user_0001","Type": 1,"To_Account": "user_0002","ClearRamble": 1}
{"From_Account": "user_0001","Type": 2,"ToGroupid": "@TGS#1B2AUI7RZ","ClearRamble": 1}
字段 | 类型 | 属性 | 说明 |
From_Account | String | 必填 | 请求删除该 UserID 的会话。 |
Type | Integer | 必填 | 会话类型: 1 表示 C2C 会话; 2 表示 G2C 会话。 |
To_Account | String | 选填 | C2C 会话才赋值,C2C 会话方的 UserID。 |
ToGroupid | String | 选填 | G2C 会话才赋值,G2C 会话的群 ID。 |
ClearRamble | Integer | 选填 | 是否清理漫游消息: 1 表示清理漫游消息; 0 表示不清理漫游消息。 |
{"ActionStatus": "OK","ErrorCode": 0,"ErrorInfo": "","ErrorDisplay": ""}
字段 | 类型 | 说明 |
ActionStatus | String | 请求包的处理结果,OK 表示处理成功,FAIL 表示失败。 |
ErrorCode | Integer | |
ErrorInfo | String | 详细错误信息。 |
ErrorDisplay | String | 详细的客户端展示信息。 |
错误码 | 描述 |
50001 | 请求的 UserID 没有导入 Chat,请先将 UserID 导入 Chat。 |
50002 | 请求参数错误,请根据错误描述检查请求参数。 |
50003 | 请求需要 App 管理员权限。 |
50004 | 服务端内部错误,请重试。 |
50005 | 网络超时,请稍后重试。 |
文档反馈