https://work.weixin.qq.com/api/doc/90000/90135/90253
企业微信,API文档写了上传临时素材的示例,但没有具体代码,如下:
POST https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=accesstoken001&type=file HTTP/1.1
Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468
Content-Length: 220
---------------------------acebdf13572468
Content-Disposition: form-data; name="media";filename="wework.txt"; filelength=6
Content-Type: application/octet-stream
mytext
---------------------------acebdf13572468--
门外汉看不明白,请求大佬们,给一段完整的代码,谢谢!