episodes — 集数列表,每集包含:video_file_id — 视频文件 IDsubtitle_file_id — 字幕文件 ID(SRT/VTT/ASS)num — 集数编号max_offset — 最大偏移量(0-60 秒,默认 10 秒)app-key: ********************{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"episodes": [
{
"video_file_id": "string",
"subtitle_file_id": "string",
"num": 0
}
],
"max_offset": 10
}curl --location 'https://api.jieshuo.cn/v1/tasks/subsync' \
--header 'x-code;' \
--header 'app-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"episodes": [
{
"video_file_id": "string",
"subtitle_file_id": "string",
"num": 0
}
],
"max_offset": 10
}'{
"code": 10000,
"message": "Success",
"data": {
"task_id": "string",
"status": 0,
"estimated_points": 0,
"message": "Task created"
}
}