跳到主要内容

模板列表

服务地址

http://api-az-cn.danghongyun.com/rest

请求方法

GET

请求参数

参数说明类型是否必须
accessKey访问API用的accessKeyString必选
actionAPI名称,此接口为 "templateGroupList"String必选
versionAPI版本,目前必须为2.0 String必选
timestampAPI调用时间戳,1970年1月1日以来的毫秒数,如1466488681033String必选
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

响应错误码

错误码说明
0success
10000Exception
10201api_not_exists