QueryPushRecords
You can query push records with pagination and basic filtering.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpush:QueryPushRecords |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppKey |
integer |
Yes |
The AppKey of the application. |
333526247 |
| StartTime |
string |
Yes |
The start time for the query. Specify the time in UTC, using the ISO-8601 format |
2021-09-15T02:05:24Z |
| EndTime |
string |
Yes |
The end time for the query. Specify the time in UTC, using the ISO-8601 format |
2021-09-29T06:24:58Z |
| PushType |
string |
No |
The push type. Valid values:
|
NOTICE |
| Target |
string |
No |
The push target. Valid values:
|
DEVICE |
| Source |
string |
No |
The push source. Valid values:
|
API |
| Keyword |
string |
No |
The keyword used for the query. The search covers the |
统计数据测试通知805 |
| NextToken |
string |
No |
This parameter is deprecated. |
FFPpkmhCPm*****************xjk= |
| PageSize |
integer |
No |
The number of entries to return on each page. Default: 20. Maximum: 100. |
10 |
| Page |
integer |
No |
The page number to query. Default: 1. Maximum: 10,000. |
8 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
Deprecated. This parameter is no longer used. |
i91D***********kXIh/dVBEQ== |
| PageSize |
integer |
The number of entries per page. |
20 |
| RequestId |
string |
The request ID. |
9B24B396-249D-55E4-8CA1-66C9B50BB734 |
| Total |
integer |
The total number of records. |
193 |
| Page |
integer |
The current page number. |
11 |
| PushInfos |
object |
||
| PushInfo |
array<object> |
The details of a specific notification or message. |
|
|
object |
|||
| Status |
string |
The status of the message. Valid values:
|
SENT |
| MessageId |
string |
The message ID. |
510431 |
| AppKey |
integer |
The AppKey of the application. |
333526247 |
| DeviceType |
string |
The device type. Valid values:
Valid values:
|
ANDROID |
| PushType |
string |
The push type. Valid values:
Valid values:
|
NOTICE |
| Body |
string |
The push body. |
abcd |
| Title |
string |
The push title. |
sssss |
| Source |
string |
The source of the push. Valid values:
Valid values:
|
DEVICE |
| PushTime |
string |
The UTC time when the push was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ. |
2021-09-15T02:05:24Z |
| Target |
string |
The push target. Valid values:
|
DEVICE |
Examples
Success response
JSON format
{
"NextToken": "i91D***********kXIh/dVBEQ==",
"PageSize": 20,
"RequestId": "9B24B396-249D-55E4-8CA1-66C9B50BB734",
"Total": 193,
"Page": 11,
"PushInfos": {
"PushInfo": [
{
"Status": "SENT",
"MessageId": "510431",
"AppKey": 333526247,
"DeviceType": "ANDROID",
"PushType": "NOTICE",
"Body": "abcd",
"Title": "sssss",
"Source": "DEVICE",
"PushTime": "2021-09-15T02:05:24Z",
"Target": "DEVICE"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | AccountDisabled | Your account is not enabled. | |
| 500 | InternalError | The request processing has failed due to some unknown error. Please try again. If the error still exists, submit a ticket. | The request processing has failed due to some unknown error. |
| 500 | Timeout | The request processing is timeout. | Request processing timed out. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.