Пример #1
0
        public static WeixinResult CodeUnavailable(string code, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string            url     = WeUtil.GetUrl(WeCardConst.CODE_UNAVAILABLE);
            WeCodeUnavailable request = new WeCodeUnavailable(code)
            {
                CardId = cardId
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
Пример #2
0
        public static WeixinResult CodeUnavailable(string code, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string url = WeUtil.GetUrl(WeCardConst.CODE_UNAVAILABLE);
            WeCodeUnavailable request = new WeCodeUnavailable(code) { CardId = cardId };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
            return result;
        }