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
We all know that "targeting" is the bas...
Many people want to become a programmer or switch...
During the period of 2011-2017, the scale of Chin...
. Screen: Sound Effects: operate: Plot: Experienc...
This article will talk to you about the video mat...
In the technology circle, too many companies have...
Recently, we learned from GAC New Energy that the...
In a foreign media test earlier, HTC M8 beat Sony&...
A few days after the virtual operator (VCOM) relea...
How to do a live broadcast with over 2 million ex...
Recently, the media interviewed me: I heard that ...
In our product operation practice, the definition...
Among all the mainstream new forces, NIO is a rar...
On June 5, Audi China General Manager Wei Yongxin...
1. If you are nearsighted when you are young, can...