小程序
小游戏
企业微信
微信支付
扫描小程序码分享
我们需要拿图文消息的article_id,以便在客服消息、自定义菜单中使用。但现在给的这个新接口无法识别素材类型。https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html
老接口又无法在客服消息和自定义菜单中使用,请问怎么办?
我们又需要article_id又得实现识别素材类型,怎么办?
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,我们通过这个接口拿到了全部消息,图文、图片、视频等,而且无法分类。
{"item":[{"article_id":"lCyqN90vZvpNYhvbiVjod7jYKC0afjoGb0QnKWN5nQM","content":{"news_item":[{"title":"pic_test_1129","author":"","digest":"pic_test_1129","content":"","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483748&idx=1&sn=8e902e88058ea06bf58b0d9658695010&chksm=fd9e97a2cae91eb4828cc52dfe185e861a29acb049de8307c0694505fa6bc97c32ca5b1bb518#rd","thumb_url":"https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/Lict2Qchib8CUSIazf0xA48lIia1JZ3FMKPyCUyX7qfSKiaFNAL5H5Sffh6zOO3MhyVSepHkia6preLpNGFe38MdDMA\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176849,"update_time":1638176853}},{"article_id":"lCyqN90vZvpNYhvbiVjod7ZpJAN-3VL8xh8MY-ra7P0","content":{"news_item":[{"title":"voice","author":"","digest":"voice_test_1129","content":"","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483746&idx=1&sn=318e026b11a163512f9a0e6dee89a8f5&chksm=fd9e97a4cae91eb2a32a77b40b60d70f8cb5d62089b48df3f39aca3a6997e6575806e560eeb2#rd","thumb_url":"","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176779,"update_time":1638176782}},{"article_id":"lCyqN90vZvpNYhvbiVjod7CrDxsdH_p1RhfIQ-VyRrE","content":{"news_item":[{"title":"水族_video_test_1129","author":"","digest":"水族视频","content":"","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483743&idx=1&sn=4418edbc9a46d00b7cb3575b250cb13a&chksm=fd9e9799cae91e8fd95ced8061d5a2a746af4981ea80698d7c32cb0de439d4641dac8f7226fc#rd","thumb_url":"http:\/\/vpic.video.qq.com\/14560248\/x1350b8fejh.png","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176711,"update_time":1638176715}},{"article_id":"lCyqN90vZvpNYhvbiVjod6pQNXm9bkP2_LQn50PSq8s","content":{"news_item":[{"title":"Vin_test_1129","author":"","digest":"","content":"Vin_test_1129","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483741&idx=1&sn=3bbd9b756bac744a9b99f3feb564f864&chksm=fd9e979bcae91e8d0db727e1961efd10ea7b4b24218be916c5a10810c8b4a0e94bc3c47c01d9#rd","thumb_url":"","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176564,"update_time":1638176566}},{"article_id":"lCyqN90vZvpNYhvbiVjodw1KR03vWLb60rYof_74GQU","content":{"news_item":[{"title":"Vin——1129","author":"vin","digest":"vin","content":"<p>vin<br \/><\/p>","content_source_url":"","thumb_media_id":"uK7ybYOwM5iM3mDqRAfqiA03ndl1iTVILx0Uh5sWXxw","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483739&idx=1&sn=6d9f9233c0e35ae2735d74bcb58f9a38&chksm=fd9e979dcae91e8b26fbbdafcb1dcf04b7c1e2089e808b3b1aac9e8035a3ed83b0b43a409c2a#rd","thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/Lict2Qchib8CUaIR6LcYL7MicX9sQcuia5KYlL146ACFZcy5vtibJ7pFt253ZRiaLuWwI3RkY9tmibrNqHJYKV042eXtA\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false},{"title":"Vin--2","author":"vin","digest":"vin 11","content":"<p>vin 11<br \/><\/p>","content_source_url":"","thumb_media_id":"uK7ybYOwM5iM3mDqRAfqiKTkmUbJEoj9ojGFzba-LSs","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483739&idx=2&sn=69941376023eb542657025f53acf84fc&chksm=fd9e979dcae91e8b1295f23d1e19ea02a7fe16429790d3529f8f8471d667a4a692a98928f962#rd","thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/Lict2Qchib8CUaIR6LcYL7MicX9sQcuia5KYMwWSaCADwfIVnUHh5bEttfweNBrYgD9NgHaic6drAGf6KPK0BlicTmRw\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638175590,"update_time":1638175594}}],"total_count":5,"item_count":5}
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
你好,你具体指的是识别什么类型呢?这个是图文类型的消息,其他类型的消息是没有改变的。
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,我们通过这个接口拿到了全部消息,图文、图片、视频等,而且无法分类。
{"item":[{"article_id":"lCyqN90vZvpNYhvbiVjod7jYKC0afjoGb0QnKWN5nQM","content":{"news_item":[{"title":"pic_test_1129","author":"","digest":"pic_test_1129","content":"","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483748&idx=1&sn=8e902e88058ea06bf58b0d9658695010&chksm=fd9e97a2cae91eb4828cc52dfe185e861a29acb049de8307c0694505fa6bc97c32ca5b1bb518#rd","thumb_url":"https:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/Lict2Qchib8CUSIazf0xA48lIia1JZ3FMKPyCUyX7qfSKiaFNAL5H5Sffh6zOO3MhyVSepHkia6preLpNGFe38MdDMA\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176849,"update_time":1638176853}},{"article_id":"lCyqN90vZvpNYhvbiVjod7ZpJAN-3VL8xh8MY-ra7P0","content":{"news_item":[{"title":"voice","author":"","digest":"voice_test_1129","content":"","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483746&idx=1&sn=318e026b11a163512f9a0e6dee89a8f5&chksm=fd9e97a4cae91eb2a32a77b40b60d70f8cb5d62089b48df3f39aca3a6997e6575806e560eeb2#rd","thumb_url":"","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176779,"update_time":1638176782}},{"article_id":"lCyqN90vZvpNYhvbiVjod7CrDxsdH_p1RhfIQ-VyRrE","content":{"news_item":[{"title":"水族_video_test_1129","author":"","digest":"水族视频","content":"","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483743&idx=1&sn=4418edbc9a46d00b7cb3575b250cb13a&chksm=fd9e9799cae91e8fd95ced8061d5a2a746af4981ea80698d7c32cb0de439d4641dac8f7226fc#rd","thumb_url":"http:\/\/vpic.video.qq.com\/14560248\/x1350b8fejh.png","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176711,"update_time":1638176715}},{"article_id":"lCyqN90vZvpNYhvbiVjod6pQNXm9bkP2_LQn50PSq8s","content":{"news_item":[{"title":"Vin_test_1129","author":"","digest":"","content":"Vin_test_1129","content_source_url":"","thumb_media_id":"","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483741&idx=1&sn=3bbd9b756bac744a9b99f3feb564f864&chksm=fd9e979bcae91e8d0db727e1961efd10ea7b4b24218be916c5a10810c8b4a0e94bc3c47c01d9#rd","thumb_url":"","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638176564,"update_time":1638176566}},{"article_id":"lCyqN90vZvpNYhvbiVjodw1KR03vWLb60rYof_74GQU","content":{"news_item":[{"title":"Vin——1129","author":"vin","digest":"vin","content":"<p>vin<br \/><\/p>","content_source_url":"","thumb_media_id":"uK7ybYOwM5iM3mDqRAfqiA03ndl1iTVILx0Uh5sWXxw","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483739&idx=1&sn=6d9f9233c0e35ae2735d74bcb58f9a38&chksm=fd9e979dcae91e8b26fbbdafcb1dcf04b7c1e2089e808b3b1aac9e8035a3ed83b0b43a409c2a#rd","thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/Lict2Qchib8CUaIR6LcYL7MicX9sQcuia5KYlL146ACFZcy5vtibJ7pFt253ZRiaLuWwI3RkY9tmibrNqHJYKV042eXtA\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false},{"title":"Vin--2","author":"vin","digest":"vin 11","content":"<p>vin 11<br \/><\/p>","content_source_url":"","thumb_media_id":"uK7ybYOwM5iM3mDqRAfqiKTkmUbJEoj9ojGFzba-LSs","show_cover_pic":0,"url":"http:\/\/mp.weixin.qq.com\/s?__biz=MzU4NDA0MTM4NQ==&mid=2247483739&idx=2&sn=69941376023eb542657025f53acf84fc&chksm=fd9e979dcae91e8b1295f23d1e19ea02a7fe16429790d3529f8f8471d667a4a692a98928f962#rd","thumb_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/Lict2Qchib8CUaIR6LcYL7MicX9sQcuia5KYMwWSaCADwfIVnUHh5bEttfweNBrYgD9NgHaic6drAGf6KPK0BlicTmRw\/0?wx_fmt=jpeg","need_open_comment":1,"only_fans_can_comment":0,"is_deleted":false}],"create_time":1638175590,"update_time":1638175594}}],"total_count":5,"item_count":5}
你好,你具体指的是识别什么类型呢?这个是图文类型的消息,其他类型的消息是没有改变的。