请求方式:POST
调用频率限制:200次/小时。
服务地址/v3/statistics/get_push_record
接口服务地址与服务接入点一一对应,请选择与您的应用服务接入点对应的 服务地址。
接口功能:查询特定时间段内所有任务的基本信息和设置。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
startDate | 是 | String | 查询起始日期, |
endDate | 是 | String | 查询截止日期,格式:YYYY-MM-DD |
msgType | 否 | String | 消息类型: |
pushType | 否 | String | 推送类型: |
offset | 否 | Integer | 分页查询起始偏移 |
limit | 否 | Integer | 分页查询每页消息数 (最大限制为200) |
参数名称 | 类型 | 描述 |
---|---|---|
retCode | Integer | 返回状态码 |
errMsg | String | 错误信息 |
pushRecordData | Array | 返回结果,pushRecordData 结构变量见下表 |
count | Integer | 符合条件记录数 |
参数名称 | 类型 | 说明 | 取值说明 |
---|---|---|---|
date | String | 推送时间 | 格式:YYYY-MM-DD hh:mm:ss |
pushId | String | 消息 ID | - |
title | String | 推送标题 | - |
content | String | 推送内容 | - |
status | String | 推送状态 | |
pushType | String | 推送目标 | |
messageType | String | 推送类型 | |
environment | String | 推送环境 | |
expireTime | uint32 | 过期时间 | 单位 s |
xgMediaResources | String | 富媒体信息 | - |
multiPkg | Boolean | 是否多包名推送 | |
targetList | Array(String) | 推送账号或推送设备列表 | pushType 为 token_list 或 account_list 时有效 |
collapseID | Integer | 消息覆盖id | pushType 为 all、tag、package_account_push 时有效 |
tagSet | Object | 标签设置 | pushType 为 tag 时有效 数据结构:
|
uploadId | Intege | 号码包 ID | pushType 为 package_account_push 时有效 |
pushConfig | Object | 推送配置信息 | "Android": Android 推送相关配置信息,具体参考下述代码 "iOS":iOS 推送相关配置信息, 具体参考下述代码 |
"android": {
"ring": 1, //响铃
"vibrate": 1,//震动
"lights": 1,//呼吸灯
"clearable": 1, //是否可清除
"action": {
"action_type": 3,// 动作类型,1,打开activity或app本身;2,打开浏览器;3,打开Intent
"intent": "" //SDK版本需要大于等于1.0.9,然后在客户端的intent配置data标签,并设置scheme属性
},
"custom_content":"{}"
}
"ios":{
"aps": {
"alert": {
"subtitle": "my subtitle"
},
"badge_type": 5, //App显示的角标数(可选) -2 自增,-1 不变,
"category": "INVITE_CATEGORY",
"sound":"default", //缺省代表默认音效
"mutable-content":1
},
{
"limit": 50,
"startDate": "2019-07-01",
"endDate": "2019-08-01",
"msgType": "notify",
"pushType": "all",
"offset": 0
}
{
"retCode": 0,
"errMsg": "NO_ERROR",
"count": 126,
"pushRecordData": [
{
"date": "2019-11-18 11:26:54",
"pushId": "12",
"title": "测试标题",
"content": "测试日志",
"status": "PUSH_FINISHED",
"pushType": "all",
"targetList": null,
"tagSet": null,
"uploadId": 0,
"groupId": "",
"expireTime": 43200,
"messageType": "notify",
"xgMediaResources": "",
"environment": "product",
"pushConfig": {
"android": {
"n_id": 0,
"builder_id": 0,
"ring": 1,
"ring_raw": "",
"vibrate": 1,
"lights": 1,
"clearable": 1,
"icon_type": 0,
"icon_res": "",
"style_id": 0,
"small_icon": "",
"action": {
"action_type": 3,
"activity": "",
"aty_attr": null,
"browser": null,
"intent": ""
},
"custom_content": ""
},
"ios": null,
"iot": null
},
"multiPkg": true,
"source": "api"
}
]
}
本页内容是否解决了您的问题?