接收系统消息提醒
POST https://im.yourdomain.com/messages
Body 参数:
| Name | Required | Type | Comment |
|---|---|---|---|
| action | 是 | string | 操作名称,system_notify |
| message | 是 | object | 消息信息 |
| message.type | 是 | string | 消息的类型,notice |
| message.appid | 是 | integer | 自定义 IM 应用 id |
| message.to_user | 是 | string | 接收消息的用户 openid |
| message.content | 否 | string | 消息的文本内容,当 type 为 text 时 |
| message.create_time | 是 | integer | 消息的发送时间,秒级别时间戳 |
请求示例:
{
"action": "system_notify",
"message": {
"type": "notice",
"appid": 1000001,
"to_user": "e4d8c2abfc783e0b8f0d7b4eb93812e5",
"content": "正在为您分配客服,请稍等",
"create_time": 1480433249
}
}用户服务器响应:
状态码 200
