发送单聊已读回执
POST
/im/v2/messages/actions/p2p_read_receipt
请求参数
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
Body 参数application/json
from_account_id
string
必需
to_account_id
string
必需
message_server_id
integer <long>
必需
示例
{
"from_account_id": "apifoxtest1",
"to_account_id": "apifoxtest2",
"message_server_id": 9898831873144
}
示例代码
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/p2p_read_receipt' \
--header 'AppKey;' \
--header 'X-custom-traceid: {% mock '\''uuid'\'' %}' \
--header 'Nonce;' \
--header 'CurTime;' \
--header 'CheckSum;' \
--header 'Content-Type: application/json' \
--data-raw '{
"from_account_id": "apifoxtest1",
"to_account_id": "apifoxtest2",
"message_server_id": 9898831873144
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
timestamp
integer <long>
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"timestamp": 1707028175485
}
}
🟢200成功
🟢200请求参数错误
🟢200服务器错误
修改于 2024-02-26 02:26:03