云相册的API相簿接口ListAlbums怎么使用
描述
分批获取当前用户的相簿
请求参数
请求示例https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=ListAlbums
&Cursor=0
&Direction=forward
&Size=10
&State=all
&StoreName=cloudphoto-demo
&LibraryId=alice-001
&<公共请求参数>
返回参数
Albums
Cover
返回示例
JSON格式
{
"TotalCount":5,
"Action":"ListAlbums",
"Message":"success",
"RequestId":"84CFE5E4-1781-4444-B20B-1BDF67EC6B28",
"NextCursor":"1500088237000000:822891310280093696",
"Code":"Success",
"Albums":[
{
"Name":"demo-album-1",
"Mtime":1499998501000000,
"State":"active",
"Id":822504789718867968,
"Ctime":1499996084000000,
"Cover":{
"Md5":"6b680a5ec98537d18c87e9bb40fc0683",
"Mtime":1499946529440,
"State":"active",
"Height":1200,
"Id":822296943836270592,
"Ctime":1499946529440,
"Width":800,
"Title":"demo-1.jpg",
"FileId":"MkM1N9sjSLe_LWWyxcA80wAAAApwZDIE",
"Remark":""
},
"PhotosCount":2
}
]
}
XML格式
<?xml version="1.0" encoding="UTF-8"?>
<ListAlbumsResponse>
<Action>ListAlbums</Action>
<TotalCount>5</TotalCount>
<Message>success</Message>
<RequestId>626C5900-FF98-4F14-9FEB-FBB5D707B81F</RequestId>
<NextCursor>1500088237000000:822891310280093696</NextCursor>
<Code>Success</Code>
<Albums>
<Album>
<Name>demo-album-1</Name>
<Mtime>1499998501000000</Mtime>
<State>active</State>
<Cover>
<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>
</Cover>
<Ctime>1499996084000000</Ctime>
<Id>822504789718867968</Id>
<PhotosCount>2</PhotosCount>
</Album>
</Albums>
</ListAlbumsResponse>
收起
云栖大讲堂
2017-10-27 10:34:37
1772
0
0
条回答
写回答
取消
提交回答