- 开发指南
- 基础API
- 登录模块
- 联系人模块
- 群模块
- 消息模块
- 朋友圈模块
- 标签模块
- 个人模块
- 收藏夹模块
- 视频号模块
- 账号管理
- 更多信息
上传朋友圈视频
POST
/gewe/v2/api/sns/uploadSnsVideo
请求参数
Header 参数
X-GEWE-TOKEN
string
必需
示例值:
{{gewe-token}}
Body 参数application/json
appId
string | null
设备ID
thumbUrl
string | null
视频封面图片链接
videoUrl
string | null
视频文件链接
示例
{
"appId": "{{appid}}",
"thumbUrl": "http://dummyimage.com/400x400",
"videoUrl": "https://scrm-1308498490.cos.ap-shanghai.myqcloud.com/pkg/436fa030-18a45a6e917.mp4?q-sign-algorithm=sha1&q-ak=AKIDmOkqfDUUDfqjMincBSSAbleGaeQv96mB&q-sign-time=1703834932;1703842132&q-key-time=1703834932;1703842132&q-header-list=&q-url-param-list=&q-signature=985cb175fc372408498498294f5c8ddf13a13cfb"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/sns/uploadSnsVideo' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "",
"thumbUrl": "http://dummyimage.com/400x400",
"videoUrl": "https://scrm-1308498490.cos.ap-shanghai.myqcloud.com/pkg/436fa030-18a45a6e917.mp4?q-sign-algorithm=sha1&q-ak=AKIDmOkqfDUUDfqjMincBSSAbleGaeQv96mB&q-sign-time=1703834932;1703842132&q-key-time=1703834932;1703842132&q-header-list=&q-url-param-list=&q-signature=985cb175fc372408498498294f5c8ddf13a13cfb"
}'
返回响应
🟢200成功
application/json
Body
ret
integer
必需
msg
string
必需
data
object
必需
fileUrl
string
上传视频的文件链接
thumbUrl
string
必需
fileMd5
string
视频的md5
length
integer
视频文件的大小
示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"fileUrl": "http://szzjwxsns.video.qq.com/102/20202/snsvideodownload?filekey=30340201010420301e0201660402535a04106e95f9d79588843ac259b780f0cbf20f020314148b040d00000004627466730000000132&hy=SZ&storeid=5658e7541000080a98399cc840000006600004eea535a236b0181565ff0c9a&dotrans=9&ef=30_0&ut=6xykWLEnztInqJIccsNnmJnFIIMYTDicqsNxakAGmcmW1hOicyiayN6Cw&ui=1&bizid=1023&ilogo=2&dur=7&upid=500030",
"thumbUrl": "http://vweixinthumb.tc.qq.com/150/20250/snsvideodownload?filekey=30340201010420301e020200960402535a0410704de7ebbc107a51a4f0986253a6d3b602020448040d00000004627466730000000132&hy=SZ&storeid=5658e7541000065838399cc840000009600004f1a535a236cc15156605b59d&bizid=1023",
"fileMd5": "6e95f9d79588843ac259b780f0cbf20f",
"length": 1315979
}
}
修改于 2024-04-17 08:06:16