getPlayListById
作用:获取单条用户播放视频列表信息
URL
http://v.polyv.net/uc/services/rest?method=getPlayListById
支持格式
XML/JSON
HTTP请求方式
POST,GET
请求数限制
TRUE
请求参数
必选 类型及范围 说明
readtoken ture string 用户读取的钥匙
id ture string 播放列表ID
format false string 默认返回json格式,如果format=xml返回xml格式
jsonp false string 例如,正常情况{error:0,data:""},加 jsonp=a后返回a({error:0,data:""})
注意事项
返回错误列表
返回error状态:0无错误,1找不到writetoken关联的user,2文件为空或者writetoken为空,3提交的json名字JSONRPC为null,4提交文件格式不正确,5readtoken为空,6分页输入出错,7vid不能为空,8找不到方法名
返回结果
<xml>
<error>0</error>
<data>
<video>
<title>"水浒"</title>
<thumbnail>"http://v.polyv.net/uimage/3/3BGEYCaPIV/8/5023c201b9cb4e88d5b9e9c55ab21cc8_0.jpg" </thumbnail>
<tag>"水浒水浒,新水浒"</tag>
<lmodify>"2011-08-30 22:28:33"</lmodify>
<describ>"水浒,新水浒"</describ>
<ptime>"2011-08-09 10:43:22"</ptime>
<videoid>"1312857802546"</videoid>
<video_count>"3"</video_count>
<videolist>
<video>
<title>"pet"</title>
<thumbnail>"http://v.polyv.net/uimage/3/3BGEYCaPIV/f/062270d93b4d6d8fcdbed33bbf111f1f_0.jpg"</thumbnail>
<tag>""</tag>
<lmodify>"2011-08-31 10:00:00"</lmodify>
<describ>""</describ>
</video>
<video>
<title>"人人网 - 话题 1"</title>
<thumbnail>"http://v.polyv.net/uimage/3/3BGEYCaPIV/a/44ca2c730649f2249f1834f76c656cca_0.jpg"</thumbnail>
<tag>""</tag>
<lmodify>"2011-08-31 10:00:00"</lmodify>
<describ>""</describ>
</video>
<video>
<title>"人人网 - 分享 2"</title>
<thumbnail>"http://v.polyv.net/uimage/3/3BGEYCaPIV/7/4a0cde1a7664f87346b2b525e6627227_0.jpg"</thumbnail>
<tag>""</tag>
<lmodify>"2011-08-31 10:00:00"</lmodify>
<describ>""</describ>
</video>
</videolist>
</video>
</data>
</xml>
JSON示例
{"error":"0", "data":
[{
"title":"水浒",
"thumbnail":"http://v.polyv.net/uimage/3/3BGEYCaPIV/8/5023c201b9cb4e88d5b9e9c55ab21cc8_0.jpg",
"tag":"水浒水浒,新水浒",
"lmodify":"2011-08-30 22:28:33",
"describ":"水浒,新水浒",
"ptime":"2011-08-09 10:43:22",
"videoid":"1312857802546",
"video_count":"3",
"videolist":
[{
"title":"pet",
"thumbnail":"http://v.polyv.net/uimage/3/3BGEYCaPIV/f/062270d93b4d6d8fcdbed33bbf111f1f_0.jpg",
"tag":"",
"lmodify":"2011-08-31 10:00:00",
"describ":""
},{
"title":"人人网 - 话题 1",
"thumbnail":"http://v.polyv.net/uimage/3/3BGEYCaPIV/a/44ca2c730649f2249f1834f76c656cca_0.jpg",
"tag":"",
"lmodify":"2011-08-31 10:00:00",
"describ":""
},{
"title":"人人网 - 分享 2",
"thumbnail":"http://v.polyv.net/uimage/3/3BGEYCaPIV/7/4a0cde1a7664f87346b2b525e6627227_0.jpg",
"tag":"",
"lmodify":"2011-08-31 10:00:00",
"describ":""
}]
}]
}
字段说明
#error:错误提示
#title: 播放列表标题
#thumbnail:播放列表图片
#tag:标签
#lmodify:最后修改时间
#describ:详细介绍
#ptime:创建时间
#videoid:视频列表ID
#video_count:视频数量
#videolist:视频集合