?

2、查询菜单

?

<?php//查询当前菜单$access_token = "";$url = 'https://api.weixin.qq.com/cgi-bin/menu/get?access_token='.$access_token;$ch = curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_HEADER,0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);$res = curl_exec($ch);echo ($res);curl_close($ch);?>

?

?

3、删除菜单

<?php//删除自定义菜单$access_token = "";$url = 'https://api.weixin.qq.com/cgi-bin/menu/delete?access_token='.$access_token;$ch = curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_HEADER,0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);$res = curl_exec($ch);echo ($res);curl_close($ch);?>

?

查看全文
  相关解决方案