编辑视频信息
通过该接口可以编辑指定视频的信息,地址为:
http://spark.bokecc.com/api/video/update
需要传递以下参数:
| 参数 | 说明 |
|---|---|
| videoid | 视频id,不可为空 |
| userid | 用户id,不可为空 |
| title | 视频标题 |
| tag | 视频标签 |
| description | 视频描述 |
| categoryid | 视频子分类id |
| playurl | 视频播放页面地址,如果不编辑播放地址,请勿加入此参数 |
| imageindex | 视频封面截图序号,如果不编辑封面截图,请勿加入此参数 注:只可编辑正常可播放状态的视频截图 |
| format | 返回格式,xml 或json |
返回数据video包含如下字段:
| 字段名 | 说明 |
|---|---|
| id | 视频ID |
| title | 视频标题 |
| desp | 视频描述 |
| tags | 视频标签 |
| category | 视频分类ID |
| playurl | 视频播放页面地址 |
| imageindex | 视频截图序号 |
XML格式的返回信息如下:
<?xmlversion="1.0"encoding="UTF-8"?>
<video>
<id>01234567</id>
<title><!\[CDATA\[Video Title\]\]></title>
<desp><!\[CDATA\[Video Description\]\]></desp>
<tags><!\[CDATA\[tag1 tag2 tag3\]\]></tags>
<category>12345</category>
<playurl>http://xxxx/1.html</playurl>
<imageindex>1</imageindex>
</video>
JSON格式的返回信息如下:
{
"video":{
"id":"01234567",
"title":"Video Title",
"desp":"Video Description",
"tags":"tag1 tag2 tag3",
"category":"12345",
"playurl":"http://xxxx/1.html",
"imageindex":1
}
}

