利用微信接口调试工具设置公众号个性化菜单
微信接口调试工具
在线接口调试工具链接:https://mp.weixin.qq.com/debug。
公众号菜单的json格式示例
https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html
默认菜单的post接口
https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN
个性化菜单的post接口
https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token=ACCESS_TOKEN
如何用接口调试工具添加个性化菜单
接口调试工具里并没有添加个性化菜单的选项。添加的菜单全部是默认菜单。会把历史菜单覆盖掉。
为了实现个性化菜单的添加,需要微调这个接口调试工具。微调方法如下:
1,在工具页面里,右键选择inspect。
2,在工具页面选择“自定义菜单”–>“自定义菜单创建接口”–>填入access_token和JSON格式的菜单。