微信测试公众号的创见以及菜单创建

独自空忆成欢 提交于 2019-12-04 13:27:24

 

1.用个人微信注册公众号地址:

http://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index

 

2.根据appid 和secret 获取access_token

https://mp.weixin.qq.com/debug/ 

 

3.根据上面第二步拿到的access_token创建菜单,

https://mp.weixin.qq.com/debug/ 

创建菜单数据的格式:

{
    "button": [
        {
            "name": "生产环境", 
            "sub_button": [
                {
                    "type": "view", 
                    "name": "壹马XXX", 
                    "url": "https://XXXXXXX/home"
                }, 
                {
                    "type": "view", 
                    "name": "江铃XXX", 
                    "url": "https://XXXXX/home"
                }, 
                {
                    "type": "view", 
                    "name": "骏派XXX", 
                    "url": "https://XXXXXX/home"
                }
            ]
        }, 
        {
            "name": "测试环境", 
            "sub_button": [
                {
                    "type": "view", 
                    "name": "车音-XXX", 
                    "url": "https://XXXXX/home"
                }, 
                {
                    "type": "view", 
                    "name": "壹马XXX", 
                    "url": "https://XXXXXXXXX/home"
                }, 
                {
                    "type": "view", 
                    "name": "江铃XXX", 
                    "url": "https://XXXXXXXXX/home"
                }, 
                {
                    "type": "view", 
                    "name": "骏派XXX", 
                    "url": "http://XXXXXXXXXXXXXXX/home"
                }
            ]
        }
    ]
}

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!