上传舞蹈视频
OpenAPI Specification
上传舞蹈视频素材(兼容路径 /pro/...):以图片 ID 指定关联的角色图片。
请求方式:POST
接口地址
text
https://api.allyang.cn/pro/viggle/asset/video/{imageID}
请求头
Authorization(可选):鉴权头,使用控制台创建的令牌,格式为 Bearer + 令牌。(示例:Bearer {{YOUR_API_KEY}})
路径参数
imageID(string,必填):上传角色图片接口返回的 id
请求参数(multipart/form-data)
file(string,必填)
返回示例
json
{
"code": 0,
"message": "ok",
"ts": "",
"reason": "",
"data": {
"id": "56b64267-2e5b-43f6-abc8-007ff2da3253",
"name": "7356dd9b-547a-45fe-b88e-cb1613d02e67_raw_video_1_video059e35",
"url": "https://example.com/…",
"coverURL": "https://example.com/…",
"width": 1360,
"height": 752
}
}
使用提示:需先上传对应的角色图片并取得图片 ID。