获取sts鉴权信息

1. 接口描述

URL https://openapi.youku.com/router/rest.json
功能描述 获取sts鉴权信息
返回格式 Json,UTF8
HTTP请求方式 POST
当前接口版本 V3
历史接口版本

2. 系统参数

参数名 参数全称 必选 参数类型 参数描述
action action true String youku.video.upload.getsts
client_id client_id true String 应用的client id
access_token access token true String oauth2的token
sign_method sign_method false String 签名的摘要算法,可选值为:HmacSHA256,md5。默认为md5
timestamp timestamp true String 客户端当前时间戳,精确到秒,timestamp与开放平台请求时间误差为6分钟
version version true String 3.0
sign sign true String 对API调用参数(除sign外)的md5加密值。详情见签名方法

3. 业务参数

参数名 参数类型 必选 默认值 参数描述
upload_token string true 上传token,create过程返回值
oss_bucket string true oss bucket
oss_object string true oss 文件key

4. 返回参数

参数名 参数类型 允许为空 参数描述
upload_token String true 上传token,每个上传任务的唯一标识
endpoint string true oss endPoint
security_token string true sts token
temp_access_id string true 临时ak
temp_access_secret string true 临时ak秘钥
expire_time string true 临时ak过期时间
upload_token string true 上传token,创建过程返回的值

5. 调用示例

 https://openapi.youku.com/router/rest.json?ip=42.120.74.111&opensysparams={"client_id":"84292d14de7ac6c6","timestamp":"1493189832","version":"3.0","sign_method":"md5","sign":"51784451f662e6c2d1f87a23c2143f88","action":"youku.video.upload.getsts","access_token":"a35c5e97ab67efcf225b23a2f610228f"}&&oss_bucket=xxx&oss_object=xxx&upload_token=MjQ5MzExOTMxXzAxMDA2NDNBQTI1OEY5QzhDNTlDNjcwMDU1NEQ1Q0M0QkZGMjE0LUIzNUYtNTBEMy0zQTY5LTE0OTEzQTdGMDUyOV8xX2MwMjNiZDAzZGExNmFmMTVmNmY4ZDQyMzczZTYyMjlj
		

6. 响应示例

{
    "data":[{
      "endpoint": "oss-cn-shanghai.aliyuncs.com",
      "security_token": "CAESrAIIARKAAShQquMnLIlbvEcIxO6wCoqJufs8sWwieUxu45hS9AvKNEte8KRUWiJWJ6Y",    
      "temp_access_id": "STS.L4aBSCSJVMuKg5U1vFDw",
      "temp_access_secret": "wyLTSmsyPGP1ohvvw8xYgB29dlGI8KMiH2pKCNZ9",
      "expire_time": "2015-04-09T11:52:19Z",
      "upload_token":"MjEyMjk0NTExXzAxMDA2NDNBQTI1M0IwQkYwQ0UxQzIwMDE5NkZGQUY2MDE0OTk4LUVEQjgtNjAwRS03RTExLTg0NTI1REUwMDRDNF8xXzFlNzViMDVlNmZmODg2M2RhNmZhNzYzY2FjYmY4M2Zh"
    }],
    "cost":0.00049591064453125,    
}


		

7. 异常示例

8. 注意事项