极光推送-服务器推送接口(推送方, 发送方)参数设置

官网 https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push

https://api.jpush.cn/v3/push
Post 方式 设置请求头 Authorization: Basic *** ***是Base64(appkey:Master Secret), 如:Base64(1111:222)

{
"platform": ["ios", "android"],
"audience": {
"alias": ["100006"]
},
"notification": {
// "alert": "消息内容",
"android": {
"alert": "消息内容",
"title": "消息标题",
"alert_type": 7,
"badge_add_num": 1,
"builder_id": 0,
"category": "",
"extras": {
"url": "自定义参数",
"order_id": "自定义参数"
},
"intent": {
"url": ""
},
"large_icon": "",
"priority": 0,
"sound": "",
"style": 0
},
"ios": {
"alert": {
"title": "消息标题",
"body": "消息内容"
},
"badge": "+1",
"content-available": 1,
"extras": {
"url": "自定义参数",
"order_id": "自定义参数"
},
"filter-criteria": "",
"interruption-level": "active",
"mutable-content": 1,
"sound": "default",
"thread-id": ""
}
},
"options": {
"apns_production": true,
"classification": 1,
"target_event": ["jg_app_show"],
"third_party_channel": {},
"time_to_live": 86400
},
"inapp_message": {
"inapp_message": true
}
}

posted on 2024-09-02 16:58  完美前端  阅读(112)  评论(0编辑  收藏  举报

导航