编辑视频分类
通过该接口可以编辑已有的视频分类,地址为:
http://spark.bokecc.com/api/category/update
需要传递以下参数:
| 参数 | 说明 | 
|---|---|
| categoryid | 视频分类id,不可为空 | 
| userid | 用户id,不可为空 | 
| name | 分类名称,不可为空 | 
| format | 返回格式,xml 或json | 
返回数据category包含如下字段:
| 参数 | 说明 | 
|---|---|
| id | 分类ID | 
| name | 分类名称 | 
| super-category-id | 父分类ID | 
XML格式的返回信息如下:
<?xmlversion="1.0"encoding="UTF-8"?>
<category>
<id>01234567</id>
<name><!\[CDATA\[分类1\]\]></name>
<super-category-id>123</super-category-id>
</category>
JSON格式的返回信息如下:
{
"category":{
"id":"01234567",
"name":"分类1",
"super-category-id":"123"
}
}
 
           
              
              
              
