接口名称 |
短视频上传鉴权forApp
签名
|
地址 |
https://api.cnlive.com/open/api2/vod_epg/getUploadAuthForApp |
method |
post |
返回数据 |
json
|
短视频上传鉴权接口
接口说明: 短视频上传鉴权接口
请求方式: HTTP POST
返回格式: 200
请求参数说明:
参数名 |
参数类型 |
必选 |
参数说明 |
appId |
string |
true |
APPID |
verb |
string |
true |
GET/POST |
md5 |
string |
true |
MD5加密数据 |
type |
string |
true |
content-type |
res |
string |
true |
文件资源 |
headers |
String |
false |
头文件信息 |
date |
String |
false |
格林威治时间('D, d M Y H:i:s \G\M\T') |
storageType |
int |
false |
存储类型1 金山,2 七牛 |
bucket |
string |
false |
存储bucket名称 |
platform_id |
string |
true |
APP bundleID 或者是包名,平台鉴权使用 |
timestamp |
int |
true |
精确到秒,当前Unix时间戳,请保证请求服务器时间正确 |
sign |
String |
true |
签名规则见 签名详情 |
json
{
"errorMessage":"成功",
"errorCode":"0",
"data":"{
"Authorization":"KSS AKLTrH0TBf1hQT23_BL3n1jvJ:wHPmi5f84s4FXqLL/HjtZgUWDio=",
"Date":"Tue,27 Jun 2017 07:35:32 GMT"
"token":""
}"
}