更新视频
服务地址
http://api-az-cn.danghongyun.com/rest
请求方法
POST
请求参数
参数 | 说明 | 类型 | 是否必须 |
---|---|---|---|
accessKey | 访问API用的accessKey | String | 必选 |
action | API名称,此接口为 "updateVideoInfo" | String | 必选 |
version | API版本,目前必须为2.0 | String | 必选 |
timestamp | API调用时间戳,1970年1月1日以来的毫秒数,如1466488681033 | String | 必选 |
signature | 签名,请参考签名规则 | String | 必选 |
videoId | 视频ID | String | 必选 |
fileName | 视频文件名 | String | 可选 |
thumbnail | 缩略图地址 | String | 可选 |
cover | 封面图地址 | String | 可选 |
title | 标题, 不超过50个字符 | String | 可选 |
playNum | 播放次数 | Integer | 可选 |
categoryId | 分类id | Integer | 可选 |
status | 状态 | Integer | 可选 |
tag | 标签 | String | 可选 |
description | 视频简介 | String | 可选 |
width | 视频宽度 | Integer | 可选 |
height | 视频高度 | Integer | 可选 |
bitrate | 视频比特率 | Integer | 可选 |
audioBitrate | 音频比特率 | Integer | 可选 |
duration | 视频时长 | Integer | 可选 |
响应示例
{
"code":0,
"message":"success",
"result":"",
"success":true
}
响应错误码
错误码 | 说明 |
---|---|
0 | success |
10000 | exception |
10012 | video_not_exists |
10017 | video_not_exists |
10201 | api_not_exists |