Exemplo n.º 1
0
        public async Task <ActionResult> CreateMenu(string jsonMenu)
        {
            await WXApi.RefreshAccessToken(APPID, APPSECRET);

            string content = await WXApi.CreateMenuAsync(WXApi.AccessToken, jsonMenu);

            return(this.Content(content));
        }
Exemplo n.º 2
0
        public async Task <ActionResult> SendTemplateMessage(string jsonTPMessage)
        {
            await WXApi.RefreshAccessToken(APPID, APPSECRET);

            string content = await WXApi.SendTemplateMessageAsync(WXApi.AccessToken, jsonTPMessage);

            return(this.Content(content));
        }