Request method: POST.
Calling frequency limit: 200 times/hour.
request address/v3/statistics/get_push_record
The API request address is corresponding to the service access point. Select the request address corresponding to the service access point of your application.
Feature: this API is used to query the basic information and settings of a task by using its pushid.
Parameter Name | Required | Type | Description |
---|---|---|---|
pushId | Yes | String | Push task ID. Only the push task for the last one month can be queried. |
Parameter Name | Type | Description |
---|---|---|
retCode | Integer | Returned status code |
errMsg | String | Error message |
pushRecordData | Array | Returned result, with pushRecordData structure variables shown in following table |
Parameter Name | Type | Description | Value Description |
---|---|---|---|
date | String | Push time | Format: YYYY-MM-DD hh:mm:ss |
pushId | String | Message ID | - |
title | String | Push title | - |
content | String | Push content | - |
status | String | Push status | |
pushType | String | Push target | |
messageType | String | Push type | |
environment | String | Push environment | |
expireTime | Integer | Expiration time | Unit: second |
xgMediaResources | String | Rich media information | - |
multiPkg | Boolean | Whether it is multi-package name push | |
targetList | Array(String) | Push account or push device list | Valid if pushType is token_list or account_list |
collapseID | Integer | Message overwriting ID | Valid if pushType is all , tag , or package_account_push |
tagSet | Object | Tag settings | Valid if pushType is tag Data structure: { |
uploadId | Integer | Number package ID | Valid if pushType is package_account_push |
pushConfig | Object | Push configuration information | "Android": for specific push configuration information related to Android, please see the following code "iOS": for specific push configuration related to iOS, please see the following code |
"android": {
"ring": 1, // Ring
"vibrate": 1,// Vibrate
"lights": 1,// LED indicator
"clearable": 1, // Whether dismissible or not
"action": {
"action_type": 3,// Action type; 1. open activity or application; 2. open browser; 3. open Intent
"intent": "" // The SDK version must be 1.0.9 or higher. Configure the data tag in the client's intent and set the scheme attribute
},
"custom_content":"{}"
}
```
#### iOS push configuration information
```json
"ios":{
"aps": {
"alert": {
"subtitle": "my subtitle"
},
"badge_type": 5, // Badge number displayed by application (optional). -2: auto-increment, -1: unchanged,
"category": "INVITE_CATEGORY",
"sound":"default",// If this parameter is left empty, the default sound effect will be used
"mutable-content":1
},
}
{
"pushId": "133703"
}
{
"retCode": 0,
"errMsg": "NO_ERROR",
"pushRecordData": [
{
"date": "2019-07-25 20:06:28",
"pushId": 133703,
"title": "1",
"content": "2",
"status": "PUSH_FINISHED",
"pushType": "tag",
"targetList": null,
"tagSet": {
"op": "OR",
"tagWithType": [
{
"tagTypeName": "xg_user_define",
"tagValue": "test68"
}
]
},
"uploadId": 0,
"expireTime": 86400,
"messageType": "notify",
"xgMediaResources": "",
"environment": "product",
"collapseID": 0,
"pushConfig": {
"android": {
"ring": 1,
"vibrate": 0,
"lights": 1,
"clearable": 1,
"action": {
"action_type": 1
},
"custom_content": "{}"
},
"ios": null
},
"multiPkg": false
}
]
}
Was this page helpful?