# 功能描述
获取素材列表 云剪辑使用的接口
# 请求
# 请求示例
GET /materialNew/list HTTPS
Host: <host>
Authorization: <AuthString>
# 请求参数_ _
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
type | 素材类型 |
1.主题 2.滤镜 3.字幕 4.贴纸 5.转场 6.字体 7.音乐 9.粒子 15.复合字幕(组合字幕) 19.模板 | int | 是 | | category | 二级或者三级分类的id | int | 否 | | aspectRatio | 支持画幅比
- 16v9
- 1v1
- 9v16
- 4v3
- 3v4
- 18v9
- 9v18 | int | 否 | | page | 页数 | int | 是 | | pageSize | 每页数量 | int | 是 | | keyword | 关键字 | String | 否 |
# 请求头
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
Authorization | 用户token信息 | string | 是 |
# 请求体
无
# 响应
# 响应头
此接口无特殊响应头。
# 响应体
请求成功的响应体为
{
"code": 0,
"message": "success",
"data": {
"materialList": [
{
"id": "0A976108-04DB-4B36-8888-F615DB96ADB7",
"materialType": 7,
"version": 1,
"displayName": "清明雨上.mp3",
"displayNamezhCN": "清明雨上aaaaa.mp3",
"packageUrl": "https://xxx.net/material/music/0A976108-04DB-4B36-8888-F615DB96ADB7/0A976108-04DB-4B36-8888-F615DB96ADB7.mp3",
"coverUrl": "aaaaaaaa",
"supportedAspectRatio": 0,
"demoUrl": "",
"demoDuration": 0,
"stringValue": "",
"lastUpdateTime": "21-6-4 下午5:58",
"ratioFlag": 0,
"status": 1,
"m3u8Url": "https://xxx.net/editor/2021/06/04/audio/dde8adc0-c099-45d1-bd7f-3c9294f7a76c/dde8adc0-c099-45d1-bd7f-3c9294f7a76c.m3u8",
"duration": 219938,
"uploadId": 114181,
"ifCanUse": 1,
"userId": 1,
"jobId": 39730,
"leftChannelUrl": "https://xxx.net/editor/2021/06/04/audio/dde8adc0-c099-45d1-bd7f-3c9294f7a76c/dde8adc0-c099-45d1-bd7f-3c9294f7a76c-0-leftchannel.data",
"rightChannelUrl": "https://xxx.net/editor/2021/06/04/audio/dde8adc0-c099-45d1-bd7f-3c9294f7a76c/dde8adc0-c099-45d1-bd7f-3c9294f7a76c-0-rightchannel.data",
"orderScore": 1,
"categoryCustom": 38
},
...
],
"materialCount": 5
}
}
请求失败的响应体为
{
"code": <errorCode>,
"message": <errorMessage>,
"data": null
}