视频开放平台
获取用户全部视频列表
webapi方式 webservice方式
请求地址
HTTP请求方式
GET
请求参数
名称 格式 是否可空 说明
AppId String 该系统在开放平台中的ID
Timestamp String 时间参数。时间验证与服务器时间误差不得超过10分钟(600秒),以北京时间为准。 获取方法:C#: long nowTime = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000 ; Javascript:Math.round(new Date().getTime()/1000); 结果例如:1369898793
Token String Timestamp +AppSecret在进行MD5加密后的字符串(转换后字母都为小写),AppSecret为该系统在开放平台中的密钥) 例如: Timestamp为1370585811,AppSecret为0123456789,加密前的字符串:13705858110123456789,加密后的字符串:c0c5ad4975c735e1c856d6a6b5d4310b
createUser string 视频上传用户名(如果已对接UIA,请使用UIA用户名,否则,使用本系统内用户名)
PageIndex int 取第几页视频
PageSize int 每页取多少条视频信息(默认选择10条视频信息)
返回结果
JSON示例
{
    "AuthMsg":{
	    "ResultCode":"1",
	    "ResultMessage":"OK"
    },
    "Total":2,
    "VideoList":
	    [
            {"Id":"1647e65c-26da-4fbc-b307-f5fb03cd803f",
             "VideoTitle":"用户上传视频一",
	     "Description":"测试描述",
	     "Tags":"标签1,标签2",
	     "Actors":"周润发",
             "Status":2,
	     "CreateDate":"2014-11-18T08:50:44.427",
             "CreateUser":"lisi",
             "PicSavePath":"http://192.168.1.56:8087/Picture/testPic.jpg"
            },
            {"Id":"3774aecd-9e35-457c-8626-9534791a8182",
             "VideoTitle":"用户上传视频二",
	     "Description":"香港演员",
	     "Tags":"标签1,标签2,标签3",
	     "Actors":"刘德华",
	     "Status":2,
             "CreateDate":"2014-11-17T08:20:44.433",
             "CreateUser":"lisi",
	     "PicSavePath":"http://192.168.1.56:8087/Picture/testPic2.jpg"}
        ]
}
其他说明
参数PicSavePath为视频图片完整地址,可以在路径后面加"?t=4",来请求不同大小的图片,例如:"http://192.168.1.56:8087/Picture/testPic2.jpg?t=4"
具体参数值如下图:
参数值 图片大小(长*宽)
2 200*200
3 262*175
4 200*110
5 180*136
6 680*530
7 420*240
返回结果参数说明
名称 格式 说明
AuthMsg AuthAppMsgModel 接口调用结果
Total int 视频数量
VideoList List<videomodel> 视频列表
名称 格式 说明
ResultCode string 接口调用结果编码(详细
ResultMessage string 接口调用结果信息(详细
名称 格式 说明
Id string 视频ID
VideoTitle string 视频标题
Description string 视频描述
Tags string 视频标签(不同标签之间用","隔开)
Actors string 视频主演
Status int 视频状态
CreateUser string 视频上传用户名
CreateDate DateTime 视频创建时间
PicSavePath string 视频图片地址
http请求
GET http://open.ksedu.cn/Api/Video/GetUserAllVideoList?AppId=jctv&Timestamp=1425469019&
    Token=e090519a2c93bf2e0c8c541e3042977c&createUser=zhangsan HTTP/1.1
Host: open.ksedu.cn
Connection: Keep-Alive
                    
http应答
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 04 Mar 2015 11:29:21 GMT
Content-Length: 11152
{"AuthMsg":{"ResultCode":"1","ResultMessage":"OK"},
"Total":2,
"VideoList":
	    [
            {"Id":"1647e65c-26da-4fbc-b307-f5fb03cd803f",
             "VideoTitle":"测试视频2",
	     "Description":"测试描述",
	     "Tags":"标签1,标签2",
	     "Actors":"周润发",
             "Status":2,
	     "CreateDate":"2014-11-18T08:50:44.427",
             "CreateUser":"zhangsan",
             "PicSavePath":"http://192.168.1.56:8087/Picture/testPic.jpg"
            },
            {"Id":"3774aecd-9e35-457c-8626-9534791a8182",
             "VideoTitle":"测试视频16",
	     "Description":"香港演员",
	     "Tags":"标签1,标签2,标签3",
	     "Actors":"刘德华",
	     "Status":2,
             "CreateDate":"2014-11-17T08:20:44.433",
             "CreateUser":"zhangsan",
	     "PicSavePath":"http://192.168.1.56:8087/Picture/testPic2.jpg"}
        ]}                   
建议采用IE8.0以上浏览器、1280×800分辨率及更高分辨率访问
技术与服务支持:南京金锟科技有限公司