微信开发早在一年前就进行了,但是由于当时未做记录,现在有些淡忘,现在重新回忆起来
1. 开启微信自定义菜单插件
2. 获取access_token
获取access_token 需要 https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
在微信公众号里查看grant_type 初定传client_credential, appid 和 secret 从微信公众号的基本配置查看
这里已经记不清appsecret ,因此需要重置,重置后可看到
再次调用 https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET 可看到token 返回
3.先查询自定义菜单
4.创建菜单
组织好菜单json 在调试工具中调用即可