# 功能描述
获取素材所有子类型
# 请求
# 请求示例
GET /materialNew/categories HTTPS
Host: <host>
Content-Type: application/json
# 请求参数_ _
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
type | 素材类型 |
- 主题
- 滤镜
- 字幕
- 贴纸
- 转场
- 字体
- 音乐
9.粒子 15.复合字幕(组合字幕) | int | 是 |
# 请求头请求体
无
# 响应
# 响应头
此接口无特殊响应头。
# 响应体
请求成功的响应体为
{
"code": 0,
"message": "success",
"data": {
"materialCategories": [
{
"id": 21,
"parentType": 1,
"level": 2,
"displayName": "Clip",
"displayNamezhCN": "段落",
"materialLastUpdateTime": "21-8-4 下午2:22",
"orderScore": 1
},
{
"id": 20,
"parentType": 1,
"level": 2,
"displayName": "Track",
"displayNamezhCN": "全轨",
"materialLastUpdateTime": "21-8-4 上午11:56",
"orderScore": 2
},
{
"id": 54,
"parentType": 1,
"level": 2,
"displayName": "test二级",
"displayNamezhCN": "test二级",
"materialLastUpdateTime": "21-8-4 下午6:01",
"orderScore": 3
},
{
"id": 56,
"parentType": 54,
"level": 3,
"displayName": "test三级2",
"displayNamezhCN": "test三级2",
"materialLastUpdateTime": "21-8-4 下午2:17",
"orderScore": 1
},
{
"id": 55,
"parentType": 54,
"level": 3,
"displayName": "test三级1",
"displayNamezhCN": "test三级1",
"materialLastUpdateTime": "21-8-4 下午2:17",
"orderScore": 2
}
]
}
}
请求失败的响应体为
{
"code": <errorCode>,
"message": <errorMessage>,
"data": null
}