获取高清语音素材
GET
/cgi-bin/media/get/jssdk
服务端API企业内部开发第三方应用开发智慧硬件开发
仅企业微信2.4及以上版本支持。
完全公开,media_id在同一企业内所有应用之间可以共享。
正确 时返回(和普通的http下载相同,请根据http头做相应的处理):
HTTP/1.1 200 OK Connection: close Content-Type: voice/speex Content-disposition: attachment; filename="XXX" Date: Sun, 06 Jan 2013 10:20:18 GMT Cache-Control: no-cache, must-revalidate Content-Length: 339721 Xxxx
{ "errcode": 40007, "errmsg": "invalid media_id"}
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90255
https://open.work.weixin.qq.com/api/doc/90001/90391
https://open.work.weixin.qq.com/api/doc/90002/90873
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://qyapi.weixin.qq.com/cgi-bin/media/get/jssdk?media_id=media_id&access_token='
响应示例响应示例
{
"errcode": 40007,
"errmsg": "invalid media_id"
}
请求参数
Query 参数
media_id
必需
示例值:
media_id
access_token
调用接口凭证
示例值:
{{accesstoken}}
返回响应
修改于 2022-01-14 04:25:43