开发者社区> 问答> 正文

如何找到查询推送列表?



描述


查询用户app的推送记录。

请求参数

名称类型是否必须描述
ActionString操作接口名称,取值:ListPushRecords
AppKeyLong查询应用的appKey
StartTimeString查询的起始时间, ISO-8601格式, 格式为 YYYY-MM-DDThh:mm:ssZ
EndTimeString查询的结束时间, ISO-8601格式, 格式为 YYYY-MM-DDThh:mm:ssZ
PushTypeString查询消息的类型,MESSAGE:表示消息,NOTICE:表示通知
PageInteger推送记录的当前页数, 默认为1
PageSizeInteger每页的条目,默认值为20, 最大为100


响应参数

名称类型描述
MessageInfos复杂对象包含消息信息MessageInfo组成的列表
TotalInteger查询到消息的总数
PageSizeInteger每页的条目
PageInteger当前页


错误码



示例



请求示例

  1. [backcolor=transparent]http[backcolor=transparent]:[backcolor=transparent]//cloudpush.aliyuncs.com/?Action=ListPushRecords
  2. [backcolor=transparent]&[backcolor=transparent]AppKey[backcolor=transparent]=[backcolor=transparent]23267207
  3. [backcolor=transparent]&[backcolor=transparent]StartTime[backcolor=transparent]=[backcolor=transparent]2016[backcolor=transparent]-[backcolor=transparent]07[backcolor=transparent]-[backcolor=transparent]25T00[backcolor=transparent]:[backcolor=transparent]00[backcolor=transparent]:[backcolor=transparent]00Z
  4. [backcolor=transparent]&[backcolor=transparent]EndTime[backcolor=transparent]=[backcolor=transparent]2016[backcolor=transparent]-[backcolor=transparent]07[backcolor=transparent]-[backcolor=transparent]29T00[backcolor=transparent]:[backcolor=transparent]00[backcolor=transparent]:[backcolor=transparent]00Z
  5. [backcolor=transparent]&[backcolor=transparent]PushType[backcolor=transparent]=[backcolor=transparent]MESSAGE
  6. [backcolor=transparent]&[backcolor=transparent]Page[backcolor=transparent]=[backcolor=transparent]1
  7. [backcolor=transparent]&[backcolor=transparent]PageSize[backcolor=transparent]=[backcolor=transparent]20
  8. [backcolor=transparent]&<公共请求参数>


返回示例



XML格式

  1. [backcolor=transparent]<?[backcolor=transparent]xml version[backcolor=transparent]=[backcolor=transparent]'1.0'[backcolor=transparent] encoding[backcolor=transparent]=[backcolor=transparent]'UTF-8'[backcolor=transparent]?>
  2. [backcolor=transparent]<ListPushRecordsResponse>
  3. [backcolor=transparent]    [backcolor=transparent]<RequestId>[backcolor=transparent]9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC[backcolor=transparent]</RequestId>
  4. [backcolor=transparent]    [backcolor=transparent]<Total>[backcolor=transparent]120[backcolor=transparent]</Total>
  5. [backcolor=transparent]    [backcolor=transparent]<Page>[backcolor=transparent]1[backcolor=transparent]</Page>
  6. [backcolor=transparent]    [backcolor=transparent]<PageSize>[backcolor=transparent]20[backcolor=transparent]</PageSize>
  7. [backcolor=transparent]    [backcolor=transparent]<MessageInfos>
  8. [backcolor=transparent]        [backcolor=transparent]<MessageInfo>
  9. [backcolor=transparent]            [backcolor=transparent]<MessageId>[backcolor=transparent]510431[backcolor=transparent]</MessageId>
  10. [backcolor=transparent]            [backcolor=transparent]<Type>[backcolor=transparent]0[backcolor=transparent]</Type>
  11. [backcolor=transparent]            [backcolor=transparent]<Status>[backcolor=transparent]0[backcolor=transparent]</Status>
  12. [backcolor=transparent]            [backcolor=transparent]<Title>[backcolor=transparent]test[backcolor=transparent]</Title>
  13. [backcolor=transparent]            [backcolor=transparent]<Body>[backcolor=transparent]test_body[backcolor=transparent]</Body>
  14. [backcolor=transparent]            [backcolor=transparent]<Summary>[backcolor=transparent]request_summary[backcolor=transparent]</Summary>
  15. [backcolor=transparent]            [backcolor=transparent]<AppName>[backcolor=transparent]test_app[backcolor=transparent]</AppName>
  16. [backcolor=transparent]            [backcolor=transparent]<AppKey>[backcolor=transparent]23310806[backcolor=transparent]</AppKey>
  17. [backcolor=transparent]            [backcolor=transparent]<DeviceType>[backcolor=transparent]0[backcolor=transparent]</DeviceType>
  18. [backcolor=transparent]            [backcolor=transparent]<PushTime>[backcolor=transparent]1468857600000[backcolor=transparent]</PushTime>
  19. [backcolor=transparent]        [backcolor=transparent]</MessageInfo>
  20. [backcolor=transparent]        [backcolor=transparent]<MessageInfo>
  21. [backcolor=transparent]            [backcolor=transparent]<MessageId>[backcolor=transparent]510431[backcolor=transparent]</MessageId>
  22. [backcolor=transparent]            [backcolor=transparent]<Type>[backcolor=transparent]0[backcolor=transparent]</Type>
  23. [backcolor=transparent]            [backcolor=transparent]<Status>[backcolor=transparent]0[backcolor=transparent]</Status>
  24. [backcolor=transparent]            [backcolor=transparent]<Title>[backcolor=transparent]test[backcolor=transparent]</Title>
  25. [backcolor=transparent]            [backcolor=transparent]<Body>[backcolor=transparent]test_body[backcolor=transparent]</Body>
  26. [backcolor=transparent]            [backcolor=transparent]<Summary>[backcolor=transparent]request_summary[backcolor=transparent]</Summary>
  27. [backcolor=transparent]            [backcolor=transparent]<AppName>[backcolor=transparent]test_app[backcolor=transparent]</AppName>
  28. [backcolor=transparent]            [backcolor=transparent]<AppKey>[backcolor=transparent]23310806[backcolor=transparent]</AppKey>
  29. [backcolor=transparent]            [backcolor=transparent]<DeviceType>[backcolor=transparent]0[backcolor=transparent]</DeviceType>
  30. [backcolor=transparent]            [backcolor=transparent]<PushTime>[backcolor=transparent]1468857600000[backcolor=transparent]</PushTime>
  31. [backcolor=transparent]        [backcolor=transparent]</MessageInfo>
  32. [backcolor=transparent]    [backcolor=transparent]</MessageInfos>
  33. [backcolor=transparent]</ListPushRecordsResponse>


JSON格式

  1. [backcolor=transparent]{
  2. [backcolor=transparent]  [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC"[backcolor=transparent],
  3. [backcolor=transparent]  [backcolor=transparent]"Total"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]120[backcolor=transparent],
  4. [backcolor=transparent]  [backcolor=transparent]"Page"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1[backcolor=transparent],
  5. [backcolor=transparent]  [backcolor=transparent]"PageSize"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]20[backcolor=transparent],
  6. [backcolor=transparent]  [backcolor=transparent]"MessageInfos"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  7. [backcolor=transparent]    [backcolor=transparent]{
  8. [backcolor=transparent]      [backcolor=transparent]"MessageId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"510431"[backcolor=transparent],
  9. [backcolor=transparent]      [backcolor=transparent]"Type"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  10. [backcolor=transparent]      [backcolor=transparent]"Status"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  11. [backcolor=transparent]      [backcolor=transparent]"Title"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test"[backcolor=transparent],
  12. [backcolor=transparent]      [backcolor=transparent]"Body"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_body"[backcolor=transparent],
  13. [backcolor=transparent]      [backcolor=transparent]"Summary"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"request_summary"[backcolor=transparent],
  14. [backcolor=transparent]      [backcolor=transparent]"AppName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_app"[backcolor=transparent],
  15. [backcolor=transparent]      [backcolor=transparent]"AppKey"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]23310806[backcolor=transparent],
  16. [backcolor=transparent]      [backcolor=transparent]"DeviceType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  17. [backcolor=transparent]      [backcolor=transparent]"PushTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1468857600000"
  18. [backcolor=transparent]    [backcolor=transparent]},
  19. [backcolor=transparent]    [backcolor=transparent]{
  20. [backcolor=transparent]      [backcolor=transparent]"MessageId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"510431"[backcolor=transparent],
  21. [backcolor=transparent]      [backcolor=transparent]"Type"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  22. [backcolor=transparent]      [backcolor=transparent]"Status"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  23. [backcolor=transparent]      [backcolor=transparent]"Title"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test"[backcolor=transparent],
  24. [backcolor=transparent]      [backcolor=transparent]"Body"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_body"[backcolor=transparent],
  25. [backcolor=transparent]      [backcolor=transparent]"Summary"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"request_summary"[backcolor=transparent],
  26. [backcolor=transparent]      [backcolor=transparent]"AppName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"test_app"[backcolor=transparent],
  27. [backcolor=transparent]      [backcolor=transparent]"AppKey"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]23310806[backcolor=transparent],
  28. [backcolor=transparent]      [backcolor=transparent]"DeviceType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]0[backcolor=transparent],
  29. [backcolor=transparent]      [backcolor=transparent]"PushTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1468857600000"
  30. [backcolor=transparent]    [backcolor=transparent]}
  31. [backcolor=transparent]  [backcolor=transparent]]
  32. [backcolor=transparent]}

展开
收起
猫饭先生 2017-10-23 10:32:22 1387 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《开放搜索查询分析服务架构分享》 立即下载
阿里云搜索产品年度升级发布 立即下载
低代码开发师(初级)实战教程 立即下载