视频开放平台
编辑视频信息
webapi方式 webservice方式
请求地址
HTTP请求方式
POST
请求参数
名称 格式 是否可空 说明
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
VideoInfo PutVideoModel 视频信息
名称 格式 是否可空 说明
Id String 视频Id
VideoTitle String 视频标题(最大长度为50字符,大于50字符只截取前50位)
Description String 视频描述(最大长度为400字符,大于400字符只截取前400位)
Tags String 视频标签(最大支持五个标签,标签之间用","隔开,最大长度为60字符,大于60字符只截取前60位)
Actors String 视频主演(最大长度为50字符,大于50字符只截取前50位)
返回结果
JSON示例
{
    "ResultCode":"1",
    "ResultMessage":"OK"
}
返回结果参数说明
名称 格式 说明
ResultCode String 接口调用结果编号(详细
ResultMessage String 接口调用结果信息(详细
http请求
POST http://open.ksedu.cn/Api/Video/Put HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: open.ksedu.cn
Content-Length: 320
Connection: Keep-Alive
AppId=jctv&Timestamp=1425469528&Token=27eb325be82f4384a9d11063105b8891&VideoTitle=%E6%9B%B4%E6%96%B0%E8%A7%86%E9%A2%91
&Description=%E6%96%B0%E8%A7%86%E9%A2%91%E6%8F%8F%E8%BF%B0&Tags=%E6%96%B0%E8%A7%86%E9%A2%91%E6%A0%87%E7%AD%BE
&Actors=%E6%96%B0%E8%A7%86%E9%A2%91%E6%BC%94%E5%91%98&Id=9deb4b69-bb31-48f5-a303-98370b57b946
                    
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:37:51 GMT
Content-Length: 39
{"ResultCode":"1","ResultMessage":"OK"}
                    
返回结果参数说明
AuthAppMsgModel
名称 格式 说明
ResultCode String 接口调用结果编号(详细
ResultMessage String 接口调用结果信息(详细
建议采用IE8.0以上浏览器、1280×800分辨率及更高分辨率访问
技术与服务支持:南京金锟科技有限公司