微信公众号测试号设置自定义的菜单

1.申请一个测试号:

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

微信公众号测试号设置自定义的菜单

 

 

 

2. 在微信公众平台接口调试工具上获取access_token

  微信公众号测试号设置自定义的菜单

 

 

 

3.自定义菜单信息

微信公众号测试号设置自定义的菜单

 

 

 

4.boby的数据格式如下:

{
    "button": [
        {
            "type": "click", 
            "name": "瓜皮1号", 
            "key": "V1001_TODAY_MUSIC"
        }, 
        {
            "type": "click", 
            "name": "我是瓜皮", 
            "key": "V1001_TODAY_SINGER"
        }, 
        {
            "name": "瓜皮集合", 
            "sub_button": [
                {
                    "type": "view", 
                    "name": "搜1", 
                    "url": "http://www.soso.com/"
                }, 
                {
                    "type": "view", 
                    "name": "视2", 
                    "url": "http://v.qq.com/"
                }, 
                {
                    "type": "click", 
                    "name": "赞3", 
                    "key": "V1001_GOOD"
                }
            ]
        }
    ]
}

 微信公众号测试号设置自定义的菜单

 

上一篇:selenium 常用方法


下一篇:c – Quickfix:同一应用程序中的acceptor和initator?