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); }
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; }