Skip to content
关注公众号,获取新课通知

查看聊天会话

接口URL

https://sqapi2.dishawang.com/api/v1/im/read_conversation/:conversation_id

请求方式

POST

Content-Type

form-data

请求Header参数

参数名示例值参数类型是否必填参数描述
token36040cbcde65e482739afca7a5465ab750c1c5d5String用户token

路径变量

参数名示例值参数描述
conversation_id28聊天会话ID

成功响应示例

json
{
  "code": 1,
  "msg": "ok",
  "data": {
    "name": "15508707475",
    "avatar": null,
    "id": 28,
    "target_id": 1651,
    "unread_count": 0,
    "last_msg_note": "222",
    "update_time": "2024-04-07 01:24:04"
  }
}

错误响应示例

json
{
  "code": 0,
  "msg": "会话不存在",
  "data": null
}