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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c29a24-33992.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c29a24-33992.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?