Skip to main content

功能说明

添加会话指定用户插入一个会话,例如在搜索好友时选中好友但没有发送消息,此时会话列表要将搜索过的会话显示到最新的位置,添加会话多端自动同步。

请求说明

请求鉴权:接口需要增加验证 Header,请查看 鉴权说明

请求类型POST

请求限频100次/秒

请求地址:https://请求域名/apigateway/convers/add

Content-Typeapplication/json

请求参数

参数数据类型是否必填参数说明
user_idstring添加会话的用户id
target_idstring添加会话的对方id
channel_typeint会话的类型

请求示例

POST /apigateway/convers/add HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

{
"user_id":"userid1",
"target_id":"userid2",
"channel_type":1
}

响应示例

{
"code":0,
"msg":"sucess"
}