コード例 #1
0
        /// <summary>
        /// 发送消息。
        /// </summary>
        /// <param name="message">客服消息。</param>
        public void Send(CustomServiceMessage message)
        {
            var url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=" + _accountModel.GetAccessToken();

            WeiXinHttpHelper.Post(url, message.GetJson());
        }
コード例 #2
0
        /// <summary>
        /// 发送消息。
        /// </summary>
        /// <param name="message">客服消息。</param>
        public void Send(CustomServiceMessage message)
        {
            var url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=" + _accountModel.GetAccessToken();

            WeiXinHttpHelper.Post(url, message.GetJson());
        }