友情链接:VIdeosApi
接口地址:
http://api.videosapi.com/finder/v2/api/finder/uploadFinderVideo
首先调用时上传视频:
{
"appId": "{{appid}}",
"videoUrl": "https://............6fa030-18a45a6e917.mp4",
"coverImgUrl": "http://........com/400x400"
}
返回参数
{
"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"
}
}
进行分发视频
export interface Request {
/**
* 设备ID
*/
appId: string;
/**
* 视频号描述
*/
description: string;
/**
* 视频高度
*/
height?: number;
/**
* 自己的roletype
*/
myRoleType: number;
/**
* 自己的username
*/
myUserName: string;
/**
* 视频播放时长,单位秒
*/
playLen?: number;
/**
* 封面链接地址
*/
thumbUrl: string;
/**
* 视频号话题
*/
topic?: string[];
/**
* 视频链接地址
*/
videoUrl: string;
/**
* 视频宽度
*/
width?: number;
[property: string]: any;
}
{
"ret": 200,
"msg": "操作成功",
"data": {
"finderList": [
{
"finderUsername": "v2_060000231003b20faec8c7e28811c4d5cc0ded37b0779c48c759a7446a87688c2774e5300c32@finder",
"nickname": "未来可期啊哈",
"headImgUrl": "https://wx.qlogo.cn/finderhead/AbruuZ3ILCkWiallQicn8kbXiafrvbTc6uMOYyC7WiaOzmle9GcMavFI3nSdMsAc916JoG9DRWAEHew/0",
"coverImgUrl": "",
"spamFlag": 0,
"acctType": 1,
"authIconType": 0,
"ownerWxUin": 4077276085,
"adminNickname": "G",
"categoryFlag": "0",
"uniqId": "sphCDn31wJCgtzi",
"isMasterFinder": true
}
],
"sessionId": "BgAAS3uHm+iGloBRhbJ8+tn7PEGx/DcCOXiC4hSt1OsQBeUWNPoZkN4RMA/EdY3se+v6ZQLdjxJimUko/Y1rjgmm/chqg36qojh2",
"acctStatus": 1
}
}