Example #1
0
 @Override
 public Card batchCard(ReqBatchCatch reqBatchCatch) {
   Utils.validate(reqBatchCatch);
   String jsonString = JSON.toJSONString(reqBatchCatch);
   String token = this.weixinProxy.httpToken().getAccessToken();
   String url = String.format(BATCH_CARD_URL, token);
   byte[] bytes = HttpClientUtil.httpPost(url, jsonString);
   return JSON.parseObject(bytes, Card.class);
 }
Example #2
0
 @Override
 public UserCard getUserCardList(ReqUserCard userCard) {
   Utils.validate(userCard);
   String jsonString = JSON.toJSONString(userCard);
   String token = this.weixinProxy.httpToken().getAccessToken();
   String url = String.format(USER_CARD_LIST_URL, token);
   byte[] bytes = HttpClientUtil.httpPost(url, jsonString);
   return JSON.parseObject(bytes, UserCard.class);
 }