文档

GetTemplateMaterials - 获取模板素材地址

更新时间:

返回高级模板包中的素材地址,供高级模板编辑器使用,素材链接30分钟过期。FileList为所需素材数组,不填则默认返回全部素材地址,最多返回400个。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
TemplateIdstring

模板 Id

****20b48fb04483915d4f2cd8ac****
FileListstring

所需文件列表

["music.mp3","config.json","assets/1.jpg"]

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

Id of the request

******11-DB8D-4A9A-875B-275798******
MaterialUrlsstring

关联素材地址

{"music.mp3":"https://bucket.oss-cn-shanghai.aliyuncs.com/music.mp3?sign=xxx","config.json":"https://bucket.oss-cn-shanghai.aliyuncs.com/config.json?sign=xxx","assets/1.jpg":"https://bucket.oss-cn-shanghai.aliyuncs.com/assets/1.jpg?sign=xxx"}

示例

正常返回示例

JSON格式

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "MaterialUrls": "{\"music.mp3\":\"https://bucket.oss-cn-shanghai.aliyuncs.com/music.mp3?sign=xxx\",\"config.json\":\"https://bucket.oss-cn-shanghai.aliyuncs.com/config.json?sign=xxx\",\"assets/1.jpg\":\"https://bucket.oss-cn-shanghai.aliyuncs.com/assets/1.jpg?sign=xxx\"}"
}

错误码

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈