上传图片
POST
/cgi-bin/media/uploadimg
服务端API企业内部开发第三方应用开发智慧硬件开发
上传图片得到图片URL,该URL永久有效
返回的图片URL,仅能用于图文消息正文中的图片展示,或者给客户发送欢迎语等;若用于非企业微信环境下的页面,图片将被屏蔽。
每个企业每天最多可上传100张图片
---------------------------acebdf13572468Content-Disposition: form-data; name="fieldNameHere"; filename="20180103195745.png"Content-Type: image/pngContent-Length: 220<@INCLUDE *C:\Users\abelzhu\Pictures\企业微信截图_20180103195745.png*@>---------------------------acebdf13572468--
文档ID: 13219
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90256
https://open.work.weixin.qq.com/api/doc/90001/90392
https://open.work.weixin.qq.com/api/doc/90002/90874
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/media/uploadimg?access_token='
响应示例响应示例
{
"errcode": 0,
"errmsg": "",
"url": "http://p.qpic.cn/pic_wework/3474110808/7a7c8471673ff0f178f63447935d35a5c1247a7f31d9c060/0"
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{accesstoken}}
Body 参数multipart/form-data
name
可选
filename
可选
返回响应
修改于 2022-09-27 13:23:12