云相册的API照片库接口GetQuota怎么使用
描述
获取照片库的存储配额。
请求参数
请求示例https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=GetQuota
&StoreName=cloudphoto-demo
&LibraryId=alice-001
&<公共请求参数>
返回参数
Quota
返回示例
JSON格式
{
"Quota":{
"UsedQuota":589901,
"FacesCount":2,
"VideosCount":0,
"TotalQuota":10000000,
"PhotosCount":25
},
"Action":"GetQuota",
"Message":"success",
"RequestId":"18E8E829-9844-4C5C-A211-ED902AAB9E26",
"Code":"Success"
}
XML格式
<?xml version="1.0" encoding="UTF-8"?>
<GetQuotaResponse>
<Quota>
<UsedQuota>589901</UsedQuota>
<FacesCount>2</FacesCount>
<VideosCount>0</VideosCount>
<TotalQuota>1000000</TotalQuota>
<PhotosCount>25</PhotosCount>
</Quota>
<Action>GetQuota</Action>
<Message>success</Message>
<RequestId>258E5CC8-BF27-472B-8B23-46B68100A862</RequestId>
<Code>Success</Code>
</GetQuotaResponse>
收起
云栖大讲堂
2017-10-27 11:08:16
1838
0
0
条回答
写回答
取消
提交回答