云相册的API开发接口ListPhotos怎么使用
描述
分批获取用户照片
请求参数
请求示例https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=ListPhotos
&Cursor=0
&Direction=forward
&Size=1
&State=active
&StoreName=cloudphoto-demo
&LibraryId=alice-001
&<公共请求参数>
返回参数
Photos
返回示例
JSON格式
{
"Photos":[
{
"IsVideo":false,
"Md5":"6b680a5ec98537d18c87e9bb40fc0683",
"Mtime":1499946529440,
"State":"active",
"Height":1200,
"Id":822296943836270592,
"Ctime":1499946529440,
"Width":800,
"Title":"demo-1.jpg",
"FileId":"MkM1N9sjSLe_LWWyxcA80wAAAApwZDIE",
"Remark":"备注",
"TakenAt":"1499946529440"
}
],
"TotalCount":26,
"Action":"ListPhotos",
"Message":"success",
"RequestId":"0F86E8D1-DDC1-46E1-B5CA-42C6F54B1E4E",
"NextCursor":"1499946529440:822296943836270592",
"Code":"Success"
}
XML格式
<?xml version="1.0" encoding="UTF-8"?>
<ListPhotosResponse>
<Photos>
<Photo>
<IsVideo>false</IsVideo>
<Mtime>1499946529440</Mtime>
<Md5>6b680a5ec98537d18c87e9bb40fc0683</Md5>
<State>active</State>
<Height>1200</Height>
<Ctime>1499946529440</Ctime>
<Id>822296943836270592</Id>
<Width>800</Width>
<FileId>MkM1N9sjSLe_LWWyxcA80wAAAApwZDIE</FileId>
<Title>demo-1.jpg</Title>
<Remark>备注</Remark>
<TakenAt>1499946529440</TakenAt>
</Photo>
</Photos>
<Action>ListPhotos</Action>
<TotalCount>26</TotalCount>
<Message>success</Message>
<RequestId>42728292-FF79-4931-BD9D-32AF3C265A04</RequestId>
<NextCursor>1499946529440:822296943836270592</NextCursor>
<Code>Success</Code>
</ListPhotosResponse>
收起
云栖大讲堂
2017-10-27 10:22:28
1820
0
0
条回答
写回答
取消
提交回答