Appearance
用户消息推送
1 接口名称
用户消息推送
2 接口描述
- 无
3 请求地址
plain
{apiAddress}/openapi/v2/push_notice?connectNo=e000b5743a866438&signature=85e19680a63873fa7e30f5d570e0bf98¬iceType=2&targetType=2&appkey=cblzs&title=推送测试测试测试测试&personType=userId¬iceTime=2022-12-01&userId=5e10374767da3d7498a0a9a7&content=我一直认为&noncestr=1673318820144×tamp=1673318820144
4 请求方式
POST
5 请求参数
5.1 form-data 参数
字段 | 类型 | 参数含义 | 是否必须 |
---|---|---|---|
noticeType | Integer | 1活动消息 2系统消息 | 是 |
personType | String | nickName或者useId | 否,targetType = 2时,必传一个 |
userId | String | 具体人群,用户id,用分号隔开 | 否,personType=userId,必传 |
nickName | String | 具体人群,用户昵称,用分号隔开 | 否,personType=nickName,必传 |
title | String | 标题 | 是 |
content | String | 站内信内容 | 是 |
groups | Integer | 站内信通知用户组 -1代表全部用户 其他为用户组id | 否。targetType = 1时必传 |
targetType | Integer | 站内信通知目标 1:推送用户组 2:推送确定用户 | 是 |
noticeTime | String | 通知时间 | 否 |
connectNo | String | 是 |
6 返回参数
6.1参数描述
字段 | 类型 | 必有 | 说明 |
---|---|---|---|
code | int | 是 | 返回编码 0 成功 |
message | string | 否 | 错误信息(code非0时返回) |
6.2参数示例
json
{
"code": 0
}
7 备注
成功返回code是0,非0时均为失败。