全部产品
存储与CDN 数据库 安全 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网 钉钉智能硬件
智能云相册

GetDownloadUrl

更新时间:2017-10-27 14:05:43

描述

注:该接口已不推荐使用,建议使用 GetPrivateAccessUrlsGetPublicAccessUrls

获取照片的原图下载地址。下载地址的有效期为1小时。

请求参数

参数名 类型 是否必须 说明
Action String GetDownloadUrl
PhotoId Long 照片的唯一标识
StoreName String PhotoStore的名称
LibraryId String 照片库标识。采用AK认证时必选,采用STS认证时可选。了解不同认证方式的区别。

请求示例

  1. https://cloudphoto.cn-shanghai.aliyuncs.com/?Action=GetDownloadUrl
  2. &PhotoId=822879673959591936
  3. &StoreName=cloudphoto-demo
  4. &LibraryId=alice-001
  5. &<公共请求参数>

返回参数

参数名 类型 说明
RequestId String 唯一标识本次请求的ID
Code String 响应状态码,Success表示成功的响应
Message String 响应状态详细描述
Action String GetDownloadUrl
DownloadUrl String 照片的原图下载地址

返回示例

JSON格式

  1. {
  2. "Action":"GetDownloadUrl",
  3. "Message":"success",
  4. "RequestId":"52616503-B64F-4328-A99A-5C44FB37C06B",
  5. "DownloadUrl":"http://cloudphoto-demo.oss-cn-shanghai.aliyuncs.com/stores/cloudphoto-demo/data/ZUBaS964T3OYtqaal9MaZwAAAApwZDIE?Expires=1500090823&OSSAccessKeyId=STS.JSyQ7KKBQpztxczY8z7TdvDE8&Signature=so6XmgZrgz%2FrzOAJJHjH%2BjYVRdA%3D&security-token=CAISkAJ1q6Ft5B2yfSjIq5DMGo3%2Fpp1wx7ifekXLvTgvO9tImYHu2jz2IH9PdXRuCe4esv00mmlW7PYelr94T5hYSVTEatd3q5pW9Q66bpDfuse4tTaOBz0ZWjr9MQXy%2BeOPScebJYqvV5XAQlTAkTAJstmeXD6%2BXlujHISUgJp8FLo%2BVRW5ajw0b7U%2FZHEVyqkgOGDWKOymPzPzn2PUFzAIgAdnjn5l4qnNqa%2F1qDim1QekkL5F%2F9%2Brf8b9M5YwYa0SCYnlgLZEEYPayzNV5hRw86N7sbdJ4z%2BvvKvGXAIAvkvWbbKIq4YxdVEjNvQgaKdArenhk%2FZ8vfHfj4Tw1xFBMO9cTiDDXoekzdsTol0B%2F26DHxqAAbHkJHUVm9NGdF9oJ5cMp11ARy4avPX5wModwFQYX2kLrJpDIv%2BsvrSkGYd%2BGADtAOLnTsv%2Fs3Z7dtb88GcXbi7%2Fxfizd5kIIjZxbyGveAi%2BC994qQ2CrspPFM9s0wpT9%2BCN9jAmdKWRB3Y7WEaMp7I1VHEWbM3xVk9zhsePTcF%2F",
  6. "Code":"Success"
  7. }

XML格式

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <GetDownloadUrlResponse>
  3. <Action>GetDownloadUrl</Action>
  4. <Message>success</Message>
  5. <RequestId>454544E2-3524-484D-A66F-AEA5C47A8BFF</RequestId>
  6. <DownloadUrl><![CDATA[http://cloudphoto-demo.oss-cn-shanghai.aliyuncs.com/stores/cloudphoto-demo/data/ZUBaS964T3OYtqaal9MaZwAAAApwZDIE?Expires=1500090825&OSSAccessKeyId=STS.Df3DMrYveWAS9KiZUQYwmiRtY&Signature=R1ly%2FIHlE3EUlcErNZ0O6i%2BhhDk%3D&security-token=CAISkAJ1q6Ft5B2yfSjIpaWGD%2FfGtKlE4IO4O23YvlUEVfhBhpffuzz2IH9PdXRuCe4esv00mmlW7PYelr94T5hYSVTEatd3q5pW9Q66bpDfuse4tROeBz0ZWjr9MQXy%2BeOPScebJYqvV5XAQlTAkTAJstmeXD6%2BXlujHISUgJp8FLo%2BVRW5ajw0b7U%2FZHEVyqkgOGDWKOymPzPzn2PUFzAIgAdnjn5l4qnNqa%2F1qDim1QekkL5F%2F9%2Brf8b9M5YwYa0SCYnlgLZEEYPayzNV5hRw86N7sbdJ4z%2BvvKvGXAIAvkvWbbKIq4YxdVEjNvQgaKdArenhk%2FZ8vfHfj4Tw1xFBMO9cTiDDXoekzdsTol0B%2F26DHxqAAYQA%2FtawbSuvfuM8aH4eU0xs6OEI5TdTWUzTLzo4HzfPvShnVoA886XH7BKs3LN%2B2DTyCIn%2B2DoF5zVLZX1lxuxVFJhBsin1oMAcJ13KLTqPLl%2F9PDSyFKzTxfOdy8dQ1Q5tikBf9DyNArtaSxqgw4tydIN6JBdi%2Fn6ojdRnyDv%2F]]></DownloadUrl>
  7. <Code>Success</Code>
  8. </GetDownloadUrlResponse>
本文导读目录