发送视频

简要描述:

发送视频

请求URL:

请求方式:

  • POST

请求头Headers:

  • Content-Type:form-data

参数:

参数名 必选 类型 说明
sessionId string
wxId string 微信id
file file 视频信息

返回数据:

参数名 类型 说明
code number 200成功,其他失败
msg string 反馈信息
data object 返回对象
data.count number
data.messageId String
data.newMessageId String
data.extension.file_id String
data.extension.wechat_cdn_ld_size String
data.extension.video_size String
data.extension.video_play_time String
data.extension.video_aes_key String
data.extension.video_md5 String
data.extension.width String
data.extension.height String
data.extension.preface_image_url String
data.extension.preface_image_size String

请求参数示例

{
  "sessionId": "***",
  "wxId": "788***2145",
  "file": "视频内容"
}

成功返回示例

{
  "msg": "操作成功",
  "code": 200,
  "data": {
    "count": 1,
    "messageId": "1009301",
    "newMessageId": "1009301",
    "extension": {
      "video_file_id": "3069020***0840042438393462633361392d333661652d343265342d626539662d363034636135633939313839020100020302d07004108d4eb090b918dc897ec6a84ff2f0b10f0201040201000400",
      "video_size": 184425,
      "video_play_time": 1,
      "video_aes_key": "df40ccc7***b8baf57718",
      "video_md5": "8d4eb090b91***0b10f",
      "width": 720,
      "height": 1280,
      "preface_image_url": "https://wework.qpic.cn/wwpic/428373_w2cIMdmxTX2Fyfl_1685784640/79088",
      "preface_image_size": 0
    }
  }
}

错误返回示例

{
  "msg": "session timeout or authentication token not found or invalid credit info",
  "code": 500
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2023-12-16 17:29:44

results matching ""

    No results matching ""