Example #1
0
        public static WeCodeResponse CodeQuery(string code, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string        url     = WeUtil.GetUrl(WeCardConst.CODE_GET);
            WeCodeConsume request = new WeCodeConsume(code)
            {
                CardId = cardId
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeCodeResponse());

            return(result);
        }
Example #2
0
        public static WeCodeResponse CodeQuery(string code, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string url = WeUtil.GetUrl(WeCardConst.CODE_GET);
            WeCodeConsume request = new WeCodeConsume(code) { CardId = cardId };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeCodeResponse());
            return result;
        }