Exemple #1
0
        public static WeCardInfo CardQuery(string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cardId, "cardId", null);

            string   url     = WeUtil.GetUrl(WeCardConst.GET_CARD);
            WeCardId request = new WeCardId(cardId);
            var      result  = WeUtil.PostToUri(url, request.WriteJson(), new WeCard());

            return(result.Card);
        }
Exemple #2
0
        public static WeixinResult CardDelete(string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cardId, "cardId", null);

            string   url     = WeUtil.GetUrl(WeCardConst.CARD_DELETE);
            WeCardId request = new WeCardId(cardId);
            var      result  = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
        public static WeCardInfo CardQuery(string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cardId, "cardId", null);

            string url = WeUtil.GetUrl(WeCardConst.GET_CARD);
            WeCardId request = new WeCardId(cardId);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeCard());
            return result.Card;
        }
        public static WeixinResult CardDelete(string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(cardId, "cardId", null);

            string url = WeUtil.GetUrl(WeCardConst.CARD_DELETE);
            WeCardId request = new WeCardId(cardId);
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
            return result;
        }