ListEvents
描述
活动列表
请求参数
参数名 | 类型 | 是否必须 | 说明 |
---|---|---|---|
Action | String | 是 | ListEvents |
StoreName | String | 是 | PhotoStore的名称 |
State | String | 是 | 状态, active, deleted, all |
Size | Integer | 否 | 数量, 默认 50, 最大不能超过 500 |
Direction | String | 否 | 方向, forward 向前取, backward 向后取 |
Cursor | String | 否 | 游标, 默认 0 |
请求示例
https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=ListEvents
&StoreName=cloudphoto-demo
&State=active
&<公共请求参数>
返回参数
参数名 | 类型 | 说明 |
---|---|---|
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格式
{
"NextCursor": "EOF",
"TotalCount": 11,
"Action": "ListEvents",
"RequestId": "90b45a85-c4e5-4286-a813-1f3b176272e2",
"Message": "success",
"Events": [
{
"BannerPhotoId": "",
"Ctime": 1515750859338,
"EndAt": 1515750859,
"Id": 888585111988891648,
"IdStr": "888585111988891648",
"Identity": "yunqi2017",
"Mtime": 1515750859338,
"SplashPhotoId": "",
"StartAt": 1515750859,
"State": "active",
"Title": "test-event-1515750859317",
"ViewsCount": 0,
"WeixinTitle": "",
"LibraryId": "yunqi2017"
}
],
"Code": "Success"
}
XML格式
<ListEventsResponse>
<Action>ListEvents</Action>
<TotalCount>3</TotalCount>
<Message>success</Message>
<RequestId>17A28065-6CBA-444A-B837-C9D26A598FBA</RequestId>
<Events>
<Event>
<IdStr>908146069978804224</IdStr>
<WeixinTitle />
<LibraryId>yunqi2017</LibraryId>
<ViewsCount>0</ViewsCount>
<EndAt>1520438400</EndAt>
<StartAt>1520265600</StartAt>
<Title>云栖大会</Title>
<BannerPhotoId>908146431771078656</BannerPhotoId>
<Mtime>1520414642605</Mtime>
<State>active</State>
<Identity>yunqi2017</Identity>
<SplashPhotoId>908146401404317696</SplashPhotoId>
<Id>908146069978804224</Id>
<Ctime>1520414556115</Ctime>
</Event>
</Events>
<NextCursor>EOF</NextCursor>
<Code>Success</Code>
</ListEventsResponse>
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论