微信公众号 ============================ 获取配置的菜单数据 ------------------------------- .. code-block:: bash # 避免在终端历史中出现明文的APP_ID和APP_SECRET。 read -s -p "Enter your WX_APP_ID:" WX_APP_ID read -s -p "Enter your WX_APP_SECRET:" WX_APP_SECRET curl "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$WX_APP_ID&secret=$WX_APP_SECRET" # 获取到的access_token传入下面的请求中。 curl "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=xxx"