push-对外接口文档.md
1.08 KB
push 对外接口文档
1、生成推送任务接口
对接方式:
- 直接往rabbitMQ写一条消息进MQ, 所有
push
节点会监听MQ, 接收到推送任务之后,进行推送。- topic类型 :
yoho_task_push
- topic类型 :
消息格式体
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
androidTitle | String | 否 | 安卓推送标题 | null | 无 |
androidContent | String | 否 | 安卓推送内容 | null | 安卓的推送分为title和content两部分 |
iosAlert | String | 否 | ios推送内容 | null | ios的推送只有alert |
appendParams | String | 否 | APP跳转链接 | null | 必须为JSON格式 的字符串,给APP跳转使用 |
sendTime | long | 否 | 发送时间 | null | 可做定时用 |
sceneType | String | 否 | 此次推送的场景 | null | 如品牌上新 为ADDED_BRANDS |
sceneKey | String | 否 | 此次推送的场景key | null | 如品牌上新 时此值为brand_id |
androidTitle | String | 否 | 安卓推送标题 | null | 无 |
androidTitle | String | 否 | 安卓推送标题 | null | 无 |
androidTitle | String | 否 | 安卓推送标题 | null | 无 |