简要描述:
- 历史记录
请求域名:
- http://xx.com
请求URL:
POST/plugin.yun-chat.frontend.chat.get-history-chat-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
history_queue_id | 是 | int | 历史会话id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"date_str": "2023-05-11 ~ 2023-05-11",
"title": "客服【测试微信客服1】和客户【测试小米】的聊天",
"chats_list": [
{
"created_at": "2023-05-11 15:38:16",
"content_type": 0,
"content": "<p>扣尼吉瓦!</p>",
"uid": 164817,
"employee_id": 32,
"is_system_send": 1,
"is_system_opt": 0,
"direction_type": 0,
"has_one_employee": {
"id": 32,
"nickname": "测试微信客服1",
"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F13837285104%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669864780&t=ffda34c190c2a3c108465026428c87b8"
},
"has_one_user": {
"uid": 164817,
"nickname": "测试小米",
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/da23447829d3d959bd713df8e82294e7.jpg",
"avatar_image": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/da23447829d3d959bd713df8e82294e7.jpg",
"username": "测试小米"
}
},
{
"created_at": "2023-05-11 15:41:04",
"content_type": 0,
"content": "你好啊扣你吉瓦",
"uid": 164817,
"employee_id": 32,
"is_system_send": 0,
"is_system_opt": 0,
"direction_type": 1,
"has_one_employee": {
"id": 32,
"nickname": "测试微信客服1",
"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F13837285104%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669864780&t=ffda34c190c2a3c108465026428c87b8"
},
"has_one_user": {
"uid": 164817,
"nickname": "测试小米",
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/da23447829d3d959bd713df8e82294e7.jpg",
"avatar_image": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/da23447829d3d959bd713df8e82294e7.jpg",
"username": "测试小米"
}
},
{
"created_at": "2023-05-11 15:41:14",
"content_type": 0,
"content": "好你个头",
"uid": 164817,
"employee_id": 32,
"is_system_send": 0,
"is_system_opt": 0,
"direction_type": 0,
"has_one_employee": {
"id": 32,
"nickname": "测试微信客服1",
"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F13837285104%2F641&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1669864780&t=ffda34c190c2a3c108465026428c87b8"
},
"has_one_user": {
"uid": 164817,
"nickname": "测试小米",
"avatar": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/da23447829d3d959bd713df8e82294e7.jpg",
"avatar_image": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/da23447829d3d959bd713df8e82294e7.jpg",
"username": "测试小米"
}
}
]
}
}
错误时返回:
{
"errcode": 500,
"errmsg": "invalid appid"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
created_at | string | 头部时间 |
title | string | 头部标题 |
chats_list.created_at | string | 发送消息时间 |
chats_list.content | string | 内容 |
chats_list.has_one_employee.nickname | string | 客服昵称 |
chats_list.has_one_employee.avatar | string | 客服头像 |
has_one_user.has_one_employee.nickname | string | 用户昵称 |
has_one_user.has_one_employee.avatar_image | string | 用户头像 |
direction_type | int | 0=客服发送的;1=用户发送的 |
备注:
- 更多返回错误代码请看首页的错误代码描述