PUT /api/v2/activity/:id/doc/:docId
Authorization: Bearer <accessToken>
Content-Type: application/json
PUT /api/v2/activity/:id/doc/:docId
{
"id":2276, // 文档 Id
"activityId":"12345678", // 活动 Id
"index":3, // 当前文档页面索引
"status":"finished", // 转码状态
"taskId":"8a783a29-0a63-4b11-aa47-7bb906692a50", // 转码任务 Id
"name":"raft.pdf", // 文档名称
"url":"https://office.shangzhibo.tv/105131/12345678/1561700366504/176afec0-9967-11e9-901e-b90909ae0323.pdf", // 文档原始地址
"pages":[ // 文档转码后的输出文件,即文档单页
"https://office.shangzhibo.tv/105131/12345678/1561700366504/176afec0-9967-11e9-901e-b90909ae0323-1.jpg",
...,
"https://office.shangzhibo.tv/105131/12345678/1561700366504/176afec0-9967-11e9-901e-b90909ae0323-18.jpg"
],
"pageCount":18 // 文档总页数
}
// 文档未转码完成时
{
"name":"BadRequest",
"message":"当前文档正在转码或转码失败,暂时无法操作",
"status":400
}
// 当前页数不能超过总页数
{
"name":"BadRequest",
"message":"当前页数不能超过总页数",
"status":400
}
{
"name":"NotFound",
"message":"Doc Not Found",
"status":404
}
{
"name":"TooManyRequests",
"message":"请求速度太频繁了, 请于xxx后重试",
"status":429
}