C#删除微信自定义菜单

 删除
string access_token = "你的token";
string posturl = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=" + access_token;
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(posturl);
request.ContentType = "application/x-www-form-urlencoded";
request.Method = "GET"; HttpWebResponse myResponse = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.UTF8);
string content = reader.ReadToEnd(); Response.Write(content);
上一篇:idhttp.post方式 调用datasnap rest 远程方法


下一篇:重识linux-linux系统服务相关