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
Before submitting resumes, when analyzing JDs, we...
Seven months after the explosion, Samsung has an ...
With its content quality, community atmosphere, u...
Master the necessary skills to make money online ...
The growth of a person needs the blessing of birt...
I heard that staying up late can easily lead to t...
Some time ago, China Mobile announced that the fi...
Without a brand, your product will be trapped in ...
Have you ever had this experience: you just start...
one. Definition and classification of users 1. De...
[[150664]] It is a difficult process from the bir...
There are many subcategories under the education ...
This complete set of WordPress website building t...
Now it is 2019, let's take a serious look at ...
Source: Department of Critical Care Medicine, Zho...