上传CDN视频
POST
/gewe/v2/api/finder/uploadFinderVideo请求参数
Header 参数
X-GEWE-TOKEN
string
必需
示例值:
{{gewe-token}}
Body 参数application/json
appId
string
设备ID
videoUrl
string
视频链接地址
coverImgUrl
string
封面链接地址
示例
{
"appId": "{{appid}}",
"proxyIp": "",
"videoUrl": "https://cos.ap-shanghai.myqcloud.com/pkg/436fa030-18a45a6e917.mp4",
"coverImgUrl": "http://dummyimage.com/400x400"
}
示例代码
返回响应
成功(200)
服务器错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
ret
integer
必需
msg
string
必需
data
object
必需
可通过如下参数调用cdn发布视频接口
fileUrl
string
视频文件链接
thumbUrl
string
封面图链接
mp4Identify
string
文件ID
fileSize
integer
文件大小
thumbMD5
string
封面图md5
fileKey
string
文件的key
示例
成功示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"fileUrl": "http://wxapp.tc.qq.com/251/20302/stodownload?a=1&bizid=1023&dotrans=0&encfilekey=Cvvj5Ix3eexKX1zo1IZZBrQomawdVfSQH1uu2U31EqFrUA5xctbdDlGGkhM5r9b4e7lDdgzBiaffgFRzukh66M2lXMjLCibKxwU0PWibofftsXd4MHJfNM3VHq2dvmoibcEWE363ibcKI0eTQEIjluPstxRwNxUlPI0iamxHoIKIbaxVM&hy=SH&idx=1&m=6e95f9d79588843ac259b780f0cbf20f&token=cztXnd9GyrEsWrS4eJynZnXPAO12gKrhygeBeB1Zic0orX2aeKcU6ZCsuRHVNiaicw7CQ9M5VgFq8Wut9uMm1QQPA&upid=500210",
"thumbUrl": "http://wxapp.tc.qq.com/251/20350/stodownload?bizid=1023&dotrans=0&encfilekey=okgXGMsUNLEibHKtCw1bRNicxw6C1zsevQuNo2sjfLcsBDAAjgT6M9OY6Z9VcUKoBHpJsck5dZqOdbCEY7gZhWCHqXLHudqbTQQa6KnvfbM2Ria6riace9QG1zPYAcKc12vS4EicdspqvoxNYs8zKX8EfERXEoEcLdwLZ&hy=SH&idx=1&m=704de7ebbc107a51a4f0986253a6d3b6&token=cztXnd9GyrEsWrS4eJynZhicYicwhU5cChkbUOWNwn6llc25ba051o3j5lhJUGZgv4nzSxYfuDf7q3Xiat145wgtQ",
"mp4Identify": "ed39cc64d1dbe68dbc4e43127f2bbd37",
"fileSize": 1315979,
"thumbMD5": "704de7ebbc107a51a4f0986253a6d3b6",
"fileKey": "-finder_upload_7212269489_wxid_0xsqb3o0tsvz22"
}
}
最后修改时间: 2 个月前