Skip to content

用户消息推送

1 接口名称

用户消息推送

2 接口描述

3 请求地址

plain
{apiAddress}/openapi/v2/push_notice?connectNo=e000b5743a866438&signature=85e19680a63873fa7e30f5d570e0bf98&noticeType=2&targetType=2&appkey=cblzs&title=推送测试测试测试测试&personType=userId&noticeTime=2022-12-01&userId=5e10374767da3d7498a0a9a7&content=我一直认为&noncestr=1673318820144&timestamp=1673318820144

4 请求方式

POST

5 请求参数

5.1 form-data 参数

字段类型参数含义是否必须
noticeTypeInteger1活动消息 2系统消息
personTypeStringnickName或者useId否,targetType = 2时,必传一个
userIdString具体人群,用户id,用分号隔开否,personType=userId,必传
nickNameString具体人群,用户昵称,用分号隔开否,personType=nickName,必传
titleString标题
contentString站内信内容
groupsInteger站内信通知用户组 -1代表全部用户 其他为用户组id否。targetType = 1时必传
targetTypeInteger站内信通知目标 1:推送用户组 2:推送确定用户
noticeTimeString通知时间
connectNoString

6 返回参数

6.1参数描述

字段类型必有说明
codeint返回编码 0 成功
messagestring错误信息(code非0时返回)

6.2参数示例

json
{
  "code": 0
}

7 备注

成功返回code是0,非0时均为失败。