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);

 

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