restful格式的个推
{
"message": {
"appkey": appkey,
"is_offline": True,
"offline_expire_time":10000000, //必须要写,不然离线有时候会收不到推送
"msgtype": "transmission"
},
"transmission": {
"transmission_type": True,
"transmission_content": content,
"notify": {
"title": payload.get('title'), //推送标题
"content": payload.get('content'), //推送内容
"intent": "安卓端生成的",
"type": "1"
}
},
"push_info": { //适用于ios
"aps": {
"alert": {
"title": payload.get('title'),
"body": payload.get('content')
},
"autoBadge": "+1",
"content-available": 1
},
"payload": content
},
"cid": user.client_id,
"requestid": requestid
}