On this page
获取某个会话的聊天记录
接口URL
https://sqapi2.dishawang.com/api/v1/im/:conversation_id/message/:page
请求方式
GET
Content-Type
form-data
请求Header参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
token | 36040cbcde65e482739afca7a5465ab750c1c5d5 | String | 是 | 用户token |
路径变量
参数名 | 示例值 | 参数描述 |
---|---|---|
conversation_id | 26 | 会话ID |
page | 1 | 页码 |
成功响应示例
json
{
"code": 1,
"msg": "ok",
"data": {
"total": 10,
"per_page": 10,
"current_page": 1,
"last_page": 1,
"data": [
{
"id": 96,
"user_id": 7,
"target_id": 1630,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "333",
"create_time": "2024-01-24 01:50:40",
"update_time": "2024-01-24 01:50:40",
"client_create_time": "2024-01-24 01:50:40",
"name": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"conversation_id": 26
},
{
"id": 95,
"user_id": 1630,
"target_id": 7,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "1222",
"create_time": "2024-01-24 01:50:34",
"update_time": "2024-01-24 01:50:34",
"client_create_time": "2024-01-24 01:50:33",
"name": "18999617599",
"avatar": null,
"conversation_id": 26
},
{
"id": 83,
"user_id": 1630,
"target_id": 7,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "爱来",
"create_time": "2024-01-24 01:01:24",
"update_time": "2024-01-24 01:01:24",
"client_create_time": "2024-01-24 01:01:24",
"name": "18999617599",
"avatar": null,
"conversation_id": 26
},
{
"id": 82,
"user_id": 1630,
"target_id": 7,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "再试试咯",
"create_time": "2024-01-24 01:00:57",
"update_time": "2024-01-24 01:00:57",
"client_create_time": "2024-01-24 01:00:57",
"name": "18999617599",
"avatar": null,
"conversation_id": 26
},
{
"id": 80,
"user_id": 1630,
"target_id": 7,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "哈哈哈啊",
"create_time": "2024-01-24 00:59:25",
"update_time": "2024-01-24 00:59:25",
"client_create_time": "2024-01-24 00:59:25",
"name": "18999617599",
"avatar": null,
"conversation_id": 26
},
{
"id": 70,
"user_id": 7,
"target_id": 1630,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "444",
"create_time": "2024-01-23 19:15:16",
"update_time": "2024-01-24 00:59:18",
"client_create_time": "2024-01-23 19:15:16",
"name": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"conversation_id": 26
},
{
"id": 69,
"user_id": 7,
"target_id": 1630,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "3333",
"create_time": "2024-01-23 19:15:14",
"update_time": "2024-01-24 00:59:18",
"client_create_time": "2024-01-23 19:15:14",
"name": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"conversation_id": 26
},
{
"id": 62,
"user_id": 7,
"target_id": 1630,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "2222",
"create_time": "2024-01-23 19:13:31",
"update_time": "2024-01-24 00:59:18",
"client_create_time": "2024-01-23 19:13:31",
"name": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"conversation_id": 26
},
{
"id": 55,
"user_id": 7,
"target_id": 1630,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "3333",
"create_time": "2024-01-23 19:05:28",
"update_time": "2024-01-24 00:59:18",
"client_create_time": "2024-01-23 19:05:28",
"name": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"conversation_id": 26
},
{
"id": 46,
"user_id": 7,
"target_id": 1630,
"is_revoke": 0,
"is_push": 1,
"type": "text",
"state": 100,
"body": "nihaoya",
"create_time": "2024-01-23 18:51:32",
"update_time": "2024-01-24 00:59:18",
"client_create_time": "2024-01-23 18:51:31",
"name": "哈哈哈",
"avatar": "http://sqapi2.dishawang.com/storage/uploads/a48a12a09a6654712f2d430d02dbc572.jpeg",
"conversation_id": 26
}
]
}
}