Get the list of picture and text material, use thumb_media_id to call permanent material and report an error, and get temporary material is also 40007.

Wechat"s official account obtains the picture and text material and wants to get the cover picture of the picture and text material. Go to thumb_media_id to call the permanent material API
"errcode": 40007, "errmsg": "invalid media_id hint
temporary material is also
" errcode ": 40007," errmsg ":" invalid media_id hint

.

I did one to get the material list first. In the item of the list, there is a field called thumb_url. In the picture and text, the link to the cover image of the picture


has been solved. Get the material list first, and then call thumb_media_id as the media_id parameter to get the permanent material. Wechat will return the whole image in binary and save it as an image to the local server.

Menu