批量发送单聊消息
POST
/im/v2/conversations/messages请求参数
Body 参数application/json
object {0}
示例
{
"sender_no_sense": false,
"extension": "officia labore ex sit ut",
"message": {
"message_type": 0,
"sub_type": 30164486,
"text": "laborum irure",
"attachment": {
"name": "型用四这却认",
"md5": "amet sit Excepteur officia",
"url": "http://xkjotf.cq/ckp",
"ext": "in qui",
"width": 10,
"height": 95,
"size": 89
}
},
"route_config": {
"route_enabled": false,
"route_environment": "incididunt eiusmod esse magna"
},
"push_config": {
"push_enabled": true,
"push_nick_enabled": false,
"push_content": "proident reprehenderit",
"push_payload": null,
"push_forcepush_all": true,
"push_forcepush_ids": [
"30"
],
"push_forcepush_content": "irure"
},
"antispam_config": {
"antispam_enabled": false,
"antispam_business_id": "31",
"antispam_extension": null,
"antispam_cheating": null
},
"p2p_option": {
"check_friend": true
},
"sender_id": "apifoxtest1",
"receiver_ids": [
"apifoxtest2"
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
提示信息。请求失败时返回错误信息,请求成功时返回 "success"。
msg
string
必需
data
object
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"success_list": [
{
"text": "laborum irure",
"attachment": {
"ext": "in qui",
"size": 89,
"name": "型用四这却认",
"width": 10,
"url": "http://xkjotf.cq/ckp",
"md5": "amet sit Excepteur officia",
"height": 95
},
"message_server_id": 9897543190303,
"sender_id": "apifoxtest1",
"conversation_type": 1,
"receiver_id": "apifoxtest2",
"create_time": 1707017423142,
"message_type": 0,
"sub_type": 30164486
}
]
}
}
最后修改时间: 8 个月前