When using the interface, enterprises can obtain and call multimedia files and multimedia messages through media_id. Through this interface, enterprises can upload or download multimedia files. Note that each multimedia file (media_id) will be automatically deleted 3 days after being uploaded to the WeChat server to save server resources. 1. Upload media files Used to upload media resource files such as pictures, audio, video, and common files (such as doc, ppt). The interface returns the media resource ID: media_id. Please note that media_id is reusable, and the same media_id can be used to send messages multiple times .
Https request method: POST https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type=TYPE
Completely public. All administrators can call it, and media_id can be shared.
Image: 1MB, support JPG format Voice: 2MB, playback length no more than 60s, supports AMR format Video: 10MB, supports MP4 format Normal file: 10MB 2. Get media files Get pictures, audio, video and other files through media_id.
Https request method: GET https://qyapi.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID
Completely public. All administrators can call it, and media_id can be shared.
a) Return if correct:
b) Returned in case of error (HTTP header is omitted here):
|
<<: Google engineers teach: Top 10 things new developers must invest in
>>: How to receive messages in WeChat Enterprise Account Development
The advantages of WeChat mini program investment ...
Everyone must have joined some reading groups, in...
In 2021, the local recurrence of the epidemic has...
Who is Andy Rubin? He is a great man who named th...
(1). The mobile version of 360 is basically 0. Cu...
1. Loyal people are not fired The company may fir...
As the Facebook advertising platform matures, Fac...
The launch date of Apple Watch has been delayed a...
2020 was a turbulent year for the film industry. ...
After the concept of private domain traffic emerg...
It's really a coincidence that these days, va...
As an APP operator, you often need to plan activi...
Jack Trading Academy JTA Professional Harmonic Pa...
After Erke became famous because of its donations...
In recent weeks, tech news headlines have been fi...