本文主要介紹了微信公眾號透過介面刪除選單的方法,具有很好的參考價值,下面跟著小編一起來看下吧
#話不多說,請看程式碼:
<?php /** * 发送get请求 * @param string $url * @return bool|mixed */ function request_get($url = '') { if (empty($url)) { return false; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); curl_close($ch); return $data; } $url = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=VzR_4bVUteovWOBzxdfgEAQ-qB5bQoMD0ucdU8dYf0snkfP8uqhQVLW4Kj2M-AXYdyQSS7FyzLb8XTwHKRJ1ORHbkwx_t1SkWxiupNRiJuzpbXpxfngF-zMccX4FGb39CBDdACAGFH"; $data2=request_get($url); ?>
以上是微信公眾號開發透過介面刪除選單方法介紹的詳細內容。更多資訊請關注PHP中文網其他相關文章!