模板列表
服务地址
http://api-az-cn.danghongyun.com/rest
请求方法
GET
请求参数
参数 | 说明 | 类型 | 是否必须 |
---|---|---|---|
accessKey | 访问API用的accessKey | String | 必选 |
action | API名称,此接口为 "templateGroupList" | String | 必选 |
version | API版本,目前必须为2.0 | String | 必选 |
timestamp | API调用时间戳,1970年1月1日以来的毫秒数,如1466488681033 | String | 必选 |
signature | 签名,请参考签名规则 | String | 必选 |
type | 转码组类型 0 普通,1 VR,如果不传该参数则返回所有模板组 | Integer | 可选 |
响应示例
{
"code":0,
"message":"success",
"result":
[
{
"userId":"123",
"id":0,
"name":"Upload without transcoding",
"type":0,
"defaultGroup":false,
"trailor":false,
"trailorDuration":0,
"logoGroupId":null
},
{
"userId":"123",
"id":0,
"name":"16:9 transcode templates",
"type":0,
"defaultGroup":true,
"trailor":false,
"trailorDuration":0,
"logoGroupId":null
},
{
"userId":"123",
"id":0,
"name":"VR transcode templates",
"type":1,
"defaultGroup":true,
"trailor":false,
"trailorDuration":0,
"logoGroupId":null
}
],
"success":true
}
响应字段说明
字段 | 说明 |
---|---|
userId | 用户id |
id | 模板组id |
name | 模板组名称 |
type | 转码组类型,0:普通,1:VR |
defaultGroup | 是否默认模板 |
trailor | 是否要转试看片段 |
trailorDuration | 试看片段时长,单位秒 |
logoGroupId | 台标组ID |
响应错误码
错误码 | 说明 |
---|---|
0 | success |
10000 | Exception |
10201 | api_not_exists |