C#查询当前微信自定义菜单结构
查询 string access_token = "你的token"; string posturl = "https://api.weixin.qq.com/cgi-bin/menu/get?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);