待处理事件通知
请求说明
Https请求方式: POST
https://bee.quanshi.com/ucopenapi/appmsg/new/event/notify
给指定用户发送”待处理事件”通知;每个消息最多5个接收人。
请求参数
{
"username": "administrator@quanshi.com",
"token": "297ba84a-ed1d-4c35-a04f-ca40d6f0946e",
"data":
{
"toUsers":
[
"test100.dev@quanshi.com",
"test100.dev@quanshi.com"
],
"appId": 8,
"eventCount":8,
"extend":””,
}
}
参数名称 | 类型 | 可选 | 说明 |
---|---|---|---|
username | String | 选填 | 第三方应用登录,此字段不填,下面各个API接口同此定义。 |
token | String | 必填 | 登陆成功的凭证 |
data | 数据结构 | 必填 | 要发送消息的数据封装 |
data.toUsers | 字符串数组 | 必填 | 接收人数组,每条消息不能超过5个 |
data.appId | int | 必填 | 应用服务器的ID标识,由"管理中心"提供 |
data.eventCount | int | 必填 | 待处理事件数 |
data.extend | String | 选填 | 扩展字段 |
返回结果
{
"errorCode" : 0,
"data" : [
{
"errorCode" : 0,
"toUser" : "test100.dev@quanshi.com",
"errorMessage" : null
}, {
"errorCode" : 0,
"toUser" : "test101.dev@quanshi.com",
"errorMessage" : null
}
],
"errorMessage" : "Successful!",
"requestId" : "9376c0d5-ae6e-4753-ba6d-3fc916ce1f4c"
}
参数名称 | 类型 | 可选 | 说明 |
---|---|---|---|
errorCode | int | 必填 | 0表示成功 |
data | 数据结构 | 必填 | 消息的每个接收主体(账号/部门)的发送结果 |
errorMessage | String | 必填 | 执行结果,同errorCode匹配 |
requestId | String | 必填 | 本次请求的唯一编号用 |