C#删除微信自定义菜单

 1 删除
 2         string access_token = "你的token";
 3         string posturl = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=" + access_token;
 4         HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(posturl);
 5         request.ContentType = "application/x-www-form-urlencoded";
 6         request.Method = "GET";
 7 
 8         HttpWebResponse myResponse = (HttpWebResponse)request.GetResponse();
 9         StreamReader reader = new StreamReader(myResponse.GetResponseStream(), Encoding.UTF8);
10         string content = reader.ReadToEnd();
11 
12         Response.Write(content);
View Code

 

posted @ 2013-08-09 09:11  想飞的咸鱼  阅读(282)  评论(0编辑  收藏  举报