Exemple #1
0
                    "name": "微信相册发图",
                    "key": "pic_weixin",
                    "sub_button": [ ]
                }
            ]
        },
        {
            "name": "快捷操作",
            "sub_button" : [
            \t{
            \t\t"name": "地理位置",
            \t\t"type": "location_select",
            \t\t"key": "location_select"
        \t\t},
        \t\t{
            \t\t"name": "普通点击",
            \t\t"type": "click",
            \t\t"key": "click"
        \t\t},
        \t\t{
            \t\t"name": "查看URL",
            \t\t"type": "view",
            \t\t"url" : "http://www.soso.com/"
        \t\t},
            ]
        },
    ]
}
JSON;
$result = $wechat->menuSet($menu);
var_dump($result);