渲染任务(Video Remix)
下载渲染结果
重定向(302)到渲染任务在 CDN 上的结果视频。尚无输出的渲染任务返回 404 RENDER_NOT_FOUND;结果文件已被删除(完成 24 小时后)的渲染任务返回 404 RESULT_EXPIRED。
GET
/
v1
/
renders
/
{render_id}
/
download
下载渲染结果
curl --request GET \
--url https://apis.viggle.ai/v1/renders/{render_id}/download \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/renders/{render_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/renders/{render_id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}授权
路径参数
响应
重定向到结果视频。
⌘I
下载渲染结果
curl --request GET \
--url https://apis.viggle.ai/v1/renders/{render_id}/download \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/renders/{render_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/renders/{render_id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}