Get the total number of materials
Get the total number of materials
##Developer You can obtain the list of permanent materials according to this interface, and can also save it locally when needed.
Please note: 1. The total number of permanent materials will also be counted in the material management of the official website of the public platform2. Pictures and graphic message materials (including single pictures and texts) The upper limit of the total number of multiple images and texts is 5000, and the upper limit of the total number of other materials is 1000
3. Calling this interface requires https protocol
http request method: GEThttps://api.weixin.qq.com/cgi-bin/material/get_materialcount?access_token=ACCESS_TOKEN
Return description{
"voice_count":COUNT,
"video_count":COUNT,
"image_count":COUNT,
"news_count":COUNT
}
Return parameter description
Parameter | Description |
voice_count | Total number of voices |
video_count | Total number of videos |
image_count | Total number of pictures |
news_count | Total number of pictures and texts |
An example of the returned JSON data packet in error conditions is as follows (the example is an invalid media type error):
{"errcode":-1,"errmsg":"system error"}