Пример #1
0
        public ErrJson CreateMenu(string accessToken, MenuJson menuJson)
        {
            var    url      = string.Format("https://api.weixin.qq.com/cgi-bin/menu/create?access_token={0}", accessToken);
            string postData = menuJson.ToJson();

            return(GetWeiXinResultHelper.GetExecuteResult(url, postData));
        }
Пример #2
0
        protected void GetBtn_Click(object sender, EventArgs e)
        {
            IMenuApi menuapi = new MenuApi();
            MenuJson MJ      = menuapi.GetMenu(token);

            lblMsg.Text = MJ.ToJson();
        }
Пример #3
0
        private void btnGetMenuJson_Click(object sender, EventArgs e)
        {
            IMenuApi menuBLL = new MenuApi();
            MenuJson menu    = menuBLL.GetMenu(token);

            if (menu != null)
            {
                Console.WriteLine(menu.ToJson());
            }
        }