最近消息列表
POST
/get_recent_contact
请求参数
Body 参数application/json
count
number
会话数量
示例
{
"count": 10
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/get_recent_contact' \
--header 'Content-Type: application/json' \
--data-raw '{
"count": 10
}'
返回响应
🟢200成功
application/json
Body
status
enum<string>
必需
枚举值:
ok
retcode
number
必需
data
array [object {9}]
必需
lastestMsg
object
最新消息内容
peerUin
string
对方账号
remark
string
必需
msgTime
string
消息时间
chatType
number
必需
msgId
string
必需
sendNickName
string
发送人昵称
sendMemberName
string
必需
peerName
string
对方昵称
message
string
必需
wording
string
必需
echo
string | null
必需
示例
{
"status": "ok",
"retcode": 0,
"data": [
{
"lastestMsg": {
"self_id": 0,
"user_id": 0,
"time": 0,
"message_type": "string",
"sender": {
"user_id": 0,
"nickname": "string",
"sex": "male",
"age": 0,
"card": "string",
"role": "owner"
},
"raw_message": "string",
"font": 0,
"sub_type": "string",
"message": [
{
"type": "text",
"data": {
"text": "string"
}
}
],
"message_format": "string",
"post_type": "string",
"group_id": 0
},
"peerUin": "string",
"remark": "string",
"msgTime": "string",
"chatType": 0,
"msgId": "string",
"sendNickName": "string",
"sendMemberName": "string",
"peerName": "string"
}
],
"message": "string",
"wording": "string",
"echo": "string"
}
修改于 2024-10-28 13:44:38