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
Market supply From January to August 2020, the im...
In recent days Multiple sporadic cases have occur...
How much does it cost to be an agent for an onlin...
Even with the support of WeChat, a huge traffic p...
[[272159]] Two-bit quantum gate (Image credit: Un...
I have been working in operations for a year, and...
Overall Trends in the Advertising Market Accordin...
© Veselo.info Leviathan Press: I guess many of yo...
Review expert: Wang Guoyi, Postdoctoral Fellow in...
Your browser does not support the video tag What ...
As the leader of the mobile phone industry, iPhon...
This is a Names not recorded in history books 197...
On the morning of January 8, the Wall Street Jour...
The optimization of mobile applications mainly de...
In recent years, there is a "glymphatic clea...