push-对外接口文档.md 1.15 KB

push 对外接口文档

1、生成推送任务接口

对接方式:

  • 直接往rabbitMQ写一条消息进MQ, 所有push节点会监听MQ, 接收到推送任务之后,进行推送。
    • topic类型 : yoho_task_push

消息格式体

参数名称 参数类型 可否为空 参数解释 默认值 备注
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
uids List 推送给哪些用户 null 大小不要超过10000,数据量大时业务方自己做分片
iosVersions List ios版本号 null
androidVersions List 安卓的版本号 null