获取永久素材的接口如下。
https:// qyapi.weixin.qq.com/cgi-bin/material/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID
上述接口的参数说明如表20-28所示。
表20-28 获取永久素材接口的参数说明
正确提交时,返回的数据示例如下。
{ "type":"mpnews", "mpnews":{ "articles":[ { "thumb_media_id":"2-G6nrLmr5EC3MMb_-zK1dDdzmd0p7cNliYu9V5w7o8K0Huu cGBZCzw4HmLa5C", "title":"Title01", "author":"zs", "digest":"airticle01", "content_source_url":"", "show_cover_pic":0 }, { "thumb_media_id":"2-G6nrLmr5EC3MMb_-zK1dDdzmd0p7cNliYu9V5w7oovsUPf 3wG4t9N3tE", "title":"Title02", "author":"Author001", "digest":"article02", "content":"Content001", "content_source_url":"", "show_cover_pic":0 } ] }}