推特 阿里云技术文档正文

ListEvents_活动接口_API手册_智能云相册

admin 阿里云技术文档 2020-02-11 216 0
阿里云服务器优惠

ListEvents

描述

活动列表

请求参数

参数名 类型 是否必须 说明
Action String ListEvents
StoreName String PhotoStore的名称
State String 状态, active, deleted, all
Size Integer 数量, 默认 50, 最大不能超过 500
Direction String 方向, forward 向前取, backward 向后取
Cursor String 游标, 默认 0

请求示例

  1. https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=ListEvents
  2. &StoreName=cloudphoto-demo
  3. &State=active
  4. &<公共请求参数>

返回参数

参数名 类型 说明
RequestId String RequestId
Code String 状态码,正常状态为”Success”,其他为错误状态
Message Integer 状态描述
Action String ListEvents
Events Event[] 活动对象数组
NextCursor String 下一次游标
TotalCount Integer 符合条件的记录数

Event

参数名 类型 说明
Id Long 活动 id
IdStr String 活动 id
Title String 标题
Identity String H5地址标识
StartAt String 开始时间
EndAt String 结束时间
Remark String 备注
WeixinTitle String 微信传播标题
SplashPhotoId String splash 图片id
BannerPhotoId String banner 图片id
Ctime Long 创建时间
Mtime Long 修改时间
State String 状态
LibraryId String 照片库标识

返回示例

JSON格式

  1. {
  2. "NextCursor": "EOF",
  3. "TotalCount": 11,
  4. "Action": "ListEvents",
  5. "RequestId": "90b45a85-c4e5-4286-a813-1f3b176272e2",
  6. "Message": "success",
  7. "Events": [
  8. {
  9. "BannerPhotoId": "",
  10. "Ctime": 1515750859338,
  11. "EndAt": 1515750859,
  12. "Id": 888585111988891648,
  13. "IdStr": "888585111988891648",
  14. "Identity": "yunqi2017",
  15. "Mtime": 1515750859338,
  16. "SplashPhotoId": "",
  17. "StartAt": 1515750859,
  18. "State": "active",
  19. "Title": "test-event-1515750859317",
  20. "ViewsCount": 0,
  21. "WeixinTitle": "",
  22. "LibraryId": "yunqi2017"
  23. }
  24. ],
  25. "Code": "Success"
  26. }

XML格式

  1. <ListEventsResponse>
  2. <Action>ListEvents</Action>
  3. <TotalCount>3</TotalCount>
  4. <Message>success</Message>
  5. <RequestId>17A28065-6CBA-444A-B837-C9D26A598FBA</RequestId>
  6. <Events>
  7. <Event>
  8. <IdStr>908146069978804224</IdStr>
  9. <WeixinTitle />
  10. <LibraryId>yunqi2017</LibraryId>
  11. <ViewsCount>0</ViewsCount>
  12. <EndAt>1520438400</EndAt>
  13. <StartAt>1520265600</StartAt>
  14. <Title>云栖大会</Title>
  15. <BannerPhotoId>908146431771078656</BannerPhotoId>
  16. <Mtime>1520414642605</Mtime>
  17. <State>active</State>
  18. <Identity>yunqi2017</Identity>
  19. <SplashPhotoId>908146401404317696</SplashPhotoId>
  20. <Id>908146069978804224</Id>
  21. <Ctime>1520414556115</Ctime>
  22. </Event>
  23. </Events>
  24. <NextCursor>EOF</NextCursor>
  25. <Code>Success</Code>
  26. </ListEventsResponse>
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论

-----