editById
作用:编辑用户的某条视频信息
URL
http://v.polyv.net/uc/services/rest?method=editById
支持格式
XML/JSON
HTTP请求方式
POST,GET
请求数限制
TRUE
请求参数
必选 类型及范围 说明
writetoken ture string 用户的上传钥匙
vid ture string 视频id
title false string 视频标题
tag false string 标签
context false string 详细介绍
format false string 默认返回json格式,如果format=xml返回xml格式
jsonp false string 例如,正常情况{error:0,data:""},加 jsonp=a后返回a({error:0,data:""})
注意事项
tag标签如果有多个的话请用,分割开
返回错误列表
返回error状态:0无错误,1找不到writetoken关联的user,2文件为空或者writetoken为空,3提交的json名字JSONRPC为null,4提交文件格式不正确,5readtoken为空,6分页输入出错,7vid不能为空,8找不到方法名
返回结果
<xml>
<error>0</error>
<data>
<video>
<swf_link>http://v.polyv.net/player/Player.swf?vid=3a23e8721a5da8823e53128abca5764c_3</swf_link>
<duration>00:01:46.32</duration>
<title>13993026</title>
<first_image>http://v.polyv.net/uimage/3/3BGEYCaPIV/c/3a23e8721a5da8823e53128abca5764c_0.jpg</first_image>
<times>4</times>
<tag/>
<context/>
<ptime>2011-08-30 13:21:50</ptime>
<vid>3a23e8721a5da8823e53128abca5764c_3</vid>
</video>
</data>
</xml>
JSON示例
{"error":"0","data":
[{"swf_link":"http://v.polyv.net/player/Player.swf?vid=3a23e8721a5da8823e53128abca5764c_3",
"duration":"00:01:46.32",
"title":"13993026",
"first_image":"http://v.polyv.net/uimage/3/3BGEYCaPIV/c/3a23e8721a5da8823e53128abca5764c_0.jpg",
"times":"3",
"tag":"",
"context":"",
"ptime":"2011-08-30 13:21:50",
"vid":"3a23e8721a5da8823e53128abca5764c_3"
}]}
字段说明
#error:错误提示
#swf_link: 返回flash连接
#duration:返回时长
#title:标题
#first_image:视频图片
#times:点击次数
#tag:标签
#context:内容
#ptime:上传时间
#vid:视频id