getVideoByTaskNumber
根據任務號碼查詢相關影片文件
Request:
{
"task_num":"202408310000001",
"guaranty_code":1,
"file_type":"webm"
}
Parameter | Meaning | Type | Required | Default value | Description |
---|---|---|---|---|---|
HEADERS | |||||
Content-Type | string | Y | application/json | ||
Authorization | string | Y | Bearer | ||
BODY | |||||
task_num | task number | string | Y | 您要執行或檢視文件的任務號 | |
guaranty_code | task times | interger | N | 視訊通話次數 | |
file_type | file extension | string | N | 有四種類型可供選擇: | |
mp4/webm/json/image |
Response:
{
"status": 1,
"message": "success",
"data": [
{
"file_name": "str_CAM_Zi7w_con_CVl2sV8ZHr.webm",
"recording_duration": 130,
"type": "video/webm",
"size": "24807413",
"path": "..../upload/zip/202408310000001_1",
"view_url": ".....202408310000001_1/str_CAM_Zi7w_con_CVl2sV8ZHr.webm",
"remark": "MODERATOR"
}
]
}
Parameter | Meaning | Type | Existed | Default value | Description |
---|---|---|---|---|---|
BODY | |||||
status | response status | string | Y | 0: fail | |
1: success | |||||
2: warning | |||||
message | message | string | Y | “” | 出現錯誤時應顯示錯誤訊息 |
data | files information | array | Y | ||
data.file_name | file name | string | Y | ||
data.recording_duration | Video Duration | integer | Y | 影片長度以秒為單位 | |
data.type | file extension | string | Y | 檔案類型符合 MIME 類型. | |
data.size | file size | string | Y | 檔案大小以位元組為單位 | |
data.path | file path | string | Y | ||
data.view_url | video url | string | Y | 可以在視窗中開啟觀看影片的影片 URL | |
data.remark | remark | string | N | 有些事情需要注意 |
Error code:
以下是API傳回的錯誤訊息表格。
Code | Status | Error | Message |
---|---|---|---|
200 | 1 | success | |
0 | 未經授權的存取 | ||
404 | 資源未找到 | ||
403 | 不允許存取請求的資源 |