批量发送聊天室消息
开发中POST
/im/v2/chatrooms/messages请求参数
Body 参数application/json
object {0}
示例
{
"room_id": 1605537145,
"sender_id": "yx5",
"messages": [
{
"message_client_id": "sdsadasdas",
"location_z": 83,
"location_y": 34,
"sub_type": 78,
"message_type": 0,
"location_x": 3,
"text": "dolor anim elit"
},
{
"location_y": 65,
"message_type": 1,
"attachment": {
"name": "器年众际根开以",
"md5": "esse Excepteur do",
"url": "http://zpcuedkr.nc/yjy",
"ext": "Excepteur consequat",
"width": 83,
"height": 56,
"size": 18
},
"location_z": 87,
"sub_type": 21,
"location_x": 98,
"message_client_id": "sdfdsfsfsd"
}
],
"route_config": {
"route_enabled": true,
"route_environment": "nostrud elit"
},
"extension": "officia nulla fugiat eu ad",
"receiver_ids": [
"yx1",
"yx2"
],
"message_config": {
"ignore_chat_banned": true,
"notify_target_tags": "ut eu",
"chat_msg_priority": 1,
"history_enabled": false,
"forbidden_if_high_priority_msg_freq": 1,
"high_priority": true,
"abandon_ratio": 8,
"need_high_priority_msg_resend": true
},
"antispam_config": {
"antispam_enabled": false,
"antispam_business_id": "44",
"antispam_extension": null,
"antispam_custom_message_enabled": true,
"antispam_custom_message": "laborum non irure et",
"antispam_cheating": "{\"email\":\"123@126.com\"}"
},
"resend_flag": 0
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
success_list
array [object {11}]
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"success_list": [
{
"text": "dolor anim elit",
"message_client_id": "sdsadasdas",
"create_time": 1709175752304,
"message_type": 0,
"sender_id": "yx5",
"sender_nick": "yx5",
"sender_avatar": "",
"room_id": 1605537145,
"high_priority": false,
"sub_type": 78
},
{
"attachment": {
"ext": "Excepteur consequat",
"size": 18,
"name": "器年众际根开以",
"width": 83,
"url": "http://zpcuedkr.nc/yjy",
"md5": "esse Excepteur do",
"height": 56
},
"message_client_id": "sdfdsfsfsd",
"create_time": 1709175752304,
"message_type": 1,
"sender_id": "yx5",
"sender_nick": "yx5",
"sender_avatar": "",
"room_id": 1605537145,
"high_priority": false,
"sub_type": 21
}
]
}
}
最后修改时间: 8 个月前