Query Templates
Service Address
http://api-az-cn.danghongyun.com/rest
Request Method
GET
Request Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| accessKey | The user access key | String | Required |
| action | API name, this api is "templateGroupList" | String | Required |
| version | API version, currently must be 2.0 | String | Required |
| timestamp | Invoke time in milliseconds since january 1 1970, eg: 1466488681033 | String | Required |
| signature | Signature generated by signature rule. | String | Required |
| type | The type of transcoding group, 0 normal, 1 VR, If this parameter is not passed, all template groups will be returned. | Integer | Optional |
Response Example
{
"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
}
Response Fields
| Field | Description |
|---|---|
| userId | user id |
| id | The template group id |
| name | The name of the template group |
| type | The type of transcoding group, 0 normal, 1 VR |
| defaultGroup | Is default group or not |
| trailor | Add trial or not |
| trailorDuration | The duration of trail, in seconds |
| logoGroupId | The logo group id |
Error Codes
| Code | Message |
|---|---|
| 0 | success |
| 10000 | Exception |
| 10201 | api_not_exists |