996
阿裏雲
技術社區[雲棲]
APP維度推送統計__API列表_OpenAPI 1.0_移動推送-阿裏雲
QueryAppPushStat
描述
查詢某個時間段內的推送統計數據
請求參數
名稱 |
類型 |
是否必須 |
描述 |
---|
Action |
String |
是 |
操作接口名稱,取值:QueryAppPushStat |
AppKey |
Long |
是 |
AppKey信息 |
StartTime |
String |
是 |
查詢的起始時間, ISO-8601格式, 格式為 YYYY-MM-DDThh:mm:ssZ |
EndTime |
String |
是 |
查詢的結束時間, ISO-8601格式, 格式為 YYYY-MM-DDThh:mm:ssZ (時間範圍不能超過31天) |
Granularity |
String |
是 |
返回的數據粒度,DAY :是天粒度。目前隻支持天粒度查詢。 |
返回參數
錯誤碼 |
描述 |
HTTP 狀態碼 |
語義 |
---|
StatWaiting |
The requested data is processing. |
400 |
請求的數據正在處理中 |
StatInvalidDate |
The request time can’t exceeds 30 days. |
400 |
查詢時間不能超過30天 |
錯誤碼
錯誤碼
錯誤碼 |
描述 |
HTTP 狀態碼 |
語義 |
---|
StatInvalidParam |
invalid param |
400 |
AppKey參數不正確 |
請求示例
https://cloudpush.aliyuncs.com/?Action=QueryAppPushStat
&AppKey=123456
&StartTime=2016-08-25T00:00:00Z
&EndTime=2016-08-26T00:00:00Z
&Granularity=DAY
&<公共請求參數>
返回示例
XML格式
<?xml version='1.0' encoding='UTF-8'?>
<QueryAppPushStatResponse>
<RequestId>9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC</RequestId>
<AppPushStats>
<AppPushStat>
<Time>2016-08-25T00:00:00Z</Time>
<SentCount>10000000</SentCount>
<ReceivedCount>9999888</ReceivedCount>
<OpenedCount>599888</OpenedCount>
<DeletedCount>199888</DeletedCount>
</AppPushStat>
<AppPushStat>
<time>2016-08-26T00:00:00Z</time>
<SentCount>20000000</SentCount>
<ReceivedCount>19999879</ReceivedCount>
<OpenedCount>599888</OpenedCount>
<DeletedCount>199888</DeletedCount>
</AppPushStat>
</AppPushStats>
</QueryAppPushStatResponse>
JSON格式
{
"RequestId": "9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC",
"AppPushStats": [
{
"Time": "2016-08-25T00:00:00Z",
"SentCount": 10000000,
"ReceivedCount": 9999888,
"OpenedCount": 599888,
"DeletedCount": 199888
},
{
"Time": "2016-08-26T00:00:00Z",
"SentCount": 20000000,
"ReceivedCount": 19999879,
"OpenedCount": 599888,
"DeletedCount": 199888
}
]
}
最後更新:2016-12-13 13:25:38