任务上报

任务上报接口

简要描述

-用于接收任务服务上报新任务

请求URL
  • http://ip:port/cetkern/api/v1/task
请求方式
  • POST
请求示例
  {
    "throughtype": 0,  
    "taskname": "2020D0022F077",
    "warningLevel": null, 
    "nasUsed": 0, 
    "isWarningRead": null, 
    "audiolanguageversionCode": "ZH", 
    "taskguid": "2", 
    "receivetime": "2021-09-24 16:07:15", 
    "taskid": "NTRM2021050800250",
    "taskCancelTime": "", 
    "draftMaxCapability": null,
    "tasktype": 1,
    "taskinfo": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PPMTaskInfo></PPMTaskInfo>", 
    "linearEditMaxCapability": null, 
    "nasMaxCapability": null, 
    "draftUsed": 0, 
    "taskProceedStatus": 1,                                               ?
    "mcProjectInfo": "", 
    "laststatustime": "2021-09-24 16:07:15",                              ?
    "linearEditUsed": 0, 
    "minLevel": null, 
    "userComment": "", 
    "breakPointSum": 2, 
    "subtitlelanguageversionCode": "ZH", 
    "progRammadeStatus": "", 
    "programversion": "6", 
    "directSendType": "0", 
    "programname": "精彩一刻-2021-101美丽中国(4K)", 
    "taskChangeTime": "2021-09-24 16:07:15", 
    "audiolanguageversion": "中文", 
    "duration": 240,
    "taskstatus": 2, 
    "taskProceedStatusModifyTime": "2021-09-24 16:07:15", 
    "isfromppm": 1, 
    "orgCode": "UE5",
    "orgName":"", 
    "segmentinfos": "", 
    "projectID": "6E2886B2-1D0E-11EC-A885-B71FC9D938D3", 
    "afd": "2", 
    "programid": "2021A03930101",
    "strTenantID": "UE5",
    "subtitlelanguageversion": "中文", 
    "strTenantName": "超高清5制作岛",
    "progSegmentSum": 1,
    "channelname": "0001",
    "columnname": "A0393",
    "userList": [
        {
            "id":"00104483",
            "name":""
        }
    ], 
    "isread": 0, 
    "playDate": "",
    "triggerLevel": null, 
    "completionDate": "2021-06-06 00:00:00"
}
返回参数说明
参数名 类型 说明
orgCode string 边缘云机构代码
orgName string 边缘云机构名称
strTenantID string 租户ID
strTenantName string 租户名称
throughtype string 备播方式
taskname string 任务名称
taskid string 任务ID
receivetime date 任务接收时间
taskCancelTime date 任务取消时间
taskChangeTime date 任务更改时间
programid string 节目代码
programname string 节目名称
programversion int 节目版本
duration long 节目时长
taskstatus int 任务状态
channelname string 频道名称
columnname string 栏目名称
playDate date 播出时间
completionDate date 直接读取央视的字段,含义未知
userList string 业务人员列表
-id string id
-name string 名称
DirectSendType int 1 —直播;2—录播
audiolanguageversionCode string 音频语种
subtitlelanguageversionCode string 字幕语种
audiolanguageversion string 音频语种
subtitlelanguageversion string 字幕语种
返回示例
  {
    "error_code": 200,
    "msg": 错误说明
  }
返回参数说明
参数名 类型 说明
error_code int 错误码, 200正常
msg string 错误说明
备注
  • 更多返回错误代码请看首页的错误代码描述

任务信息更新接口

简要描述

-用于接收任务服务更新任务信息、状态等。需要维护任务结束时间。

请求URL
  • http://ip:port/cetkern/api/v1/task
请求方式
  • PUT
请求示例
  {
      "condition": {
        "orgCode":"UE5",//机构代码 (必传字段,用不用要看你们)
        "taskid": "21313", 
        "programId": "sfas",
        "audiolanguageversionCode":"",
        "subtitlelanguageversionCode":""
        }, 
    "modify": {
        "throughtype": 0,  
        "taskname": "2020D0022F077",
        "warningLevel": null, 
        "nasUsed": 0, 
        "isWarningRead": null, 
        "audiolanguageversionCode": "ZH", 
        "taskguid": "2", 
        "receivetime": "2021-09-24 16:07:15", 
        "taskid": "NTRM2021050800250",
        "taskCancelTime": "", 
        "draftMaxCapability": null,
        "tasktype": 1,
        "taskinfo": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><PPMTaskInfo></PPMTaskInfo>", 
        "linearEditMaxCapability": null, 
        "nasMaxCapability": null, 
        "draftUsed": 0, 
        "taskProceedStatus": 1,                                               ?
        "mcProjectInfo": "", 
        "laststatustime": "2021-09-24 16:07:15",                              ?
        "linearEditUsed": 0, 
        "minLevel": null, 
        "userComment": "", 
        "breakPointSum": 2, 
        "subtitlelanguageversionCode": "ZH", 
        "progRammadeStatus": "", 
        "programversion": "6", 
        "directSendType": "0", 
        "programname": "精彩一刻-2021-101美丽中国(4K)", 
        "taskChangeTime": "2021-09-24 16:07:15", 
        "audiolanguageversion": "中文", 
        "duration": 240,
        "taskstatus": 2, 
        "taskProceedStatusModifyTime": "2021-09-24 16:07:15", 
        "isfromppm": 1, 
        "orgCode": "UE5",
        "orgName":"", 
        "segmentinfos": "", 
        "projectID": "6E2886B2-1D0E-11EC-A885-B71FC9D938D3", 
        "afd": "2", 
        "programid": "2021A03930101",
        "strTenantID": "UE5",
        "subtitlelanguageversion": "中文", 
        "strTenantName": "超高清5制作岛",
        "progSegmentSum": 1,
        "channelname": "0001",
        "columnname": "A0393",
        "userList": [
            {
                "id":"00104483",
                "name":""
            }
        ], 
        "isread": 0, 
        "playDate": "",
        "triggerLevel": null, 
        "completionDate": "2021-06-06 00:00:00"
    }
}
返回参数说明
参数名 类型 说明
condition object 条件参数
- orgCode string 机构代码
- taskid string 任务ID
- programId string 节目代码
- audiolanguageversionCode string 音频语言
- subtitlelanguageversionCode string 字幕语言
modify object 修改参数体
- orgCode string 边缘云机构代码
- orgName string 边缘云机构名称
- strTenantID string 租户ID
- strTenantName string 租户名称
- throughtype string 备播方式
- taskname string 任务名称
- taskid string 任务ID
- receivetime date 任务接收时间
- taskCancelTime date 任务取消时间
- taskChangeTime date 任务更改时间
- programid string 节目代码
- programname string 节目名称
- programversion int 节目版本
- duration long 节目时长
- taskstatus int 任务状态
- channelname string 频道名称
- columnname string 栏目名称
- playDate date 播出时间
- completionDate date 任务完成时间
- userList string 业务人员列表
— id string id
— name string 名称
- DirectSendType int 1 —直播;2—录播
- audiolanguageversionCode string 音频语种
- subtitlelanguageversionCode string 字幕语种
- audiolanguageversion string 音频语种
- subtitlelanguageversion string 字幕语种
返回示例
  {
    "error_code": 200,
    "msg": 错误说明
  }
返回参数说明
参数名 类型 说明
error_code int 错误码, 200正常
msg string 错误说明
备注
  • 更多返回错误代码请看首页的错误代码描述