Introduction to the method of deleting the menu through the interface in WeChat public account development

高洛峰
Release: 2017-03-14 14:57:47
Original
2461 people have browsed it

This article mainly introduces the method of deleting the menu of the WeChat public account through the interface , which has a very good reference value. Let’s take a look at it with the editor

Not much to say, please look at the code:

<?php
 /**
 * 发送get请求
 * @param string $url
 * @return bool|mixed
 */
 function request_get($url = &#39;&#39;)
 {
 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);
?>
Copy after login

The above is the detailed content of Introduction to the method of deleting the menu through the interface in WeChat public account development. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template