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
}
}