查询快捷评论
POST
/im/v2/messages/actions/quick_comment
请求参数
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
Body 参数application/json
messages
array [object {6}]
必需
conversation_type
integer
必需
sender_id
string
必需
receiver_id
string
必需
message_server_id
number
必需
message_client_id
string
必需
create_time
number
消息的发送时间。
示例
{
"messages": [
{
"conversation_type": 0,
"sender_id": "string",
"receiver_id": "string",
"message_server_id": 0,
"message_client_id": "string",
"create_time": 0
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.yunxinapi.com/im/v2/messages/actions/quick_comment' \
--header 'AppKey;' \
--header 'X-custom-traceid: {% mock '\''uuid'\'' %}' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
success_list
array [object {7}]
可选
failed_list
array [object {8}]
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"success_list": [
{
"conversation_type": 0,
"sender_id": "string",
"receiver_id": "string",
"message_server_id": 0,
"message_client_id\t": "string",
"create_time": 0,
"comments": [
{
"operator_id": "string",
"index": 0,
"extension": "string",
"time": 0
}
]
}
],
"failed_list": [
{
"conversation_type": 0,
"sender_id": "string",
"receiver_id": "string",
"message_server_id": 0,
"message_client_id": "string",
"create_time": 0,
"error_code": 0,
"error_msg": "string"
}
]
}
}
🟢200成功
🟢200请求参数错误
🟢200服务器错误
修改于 2024-12-26 07:19:07