/**
* 会员卡查询
* @param appauthtoken如isv代替商户调用接口,需将商户授权后获取的app_auth_token带上;如商户自己调用,则传null。
* @param bizcontent 因该接口业务参数复杂,请详见接口文档
* @return
* @throws alipayapiexception 请处理异常
*/
alipayclient alipayclient = new defaultalipayclient("https://openapi.alipay.com/gateway.do", app_id, app_private_key, "json", charset, alipay_public_key, "rsa2");
alipaymarketingcardqueryrequest request = new alipaymarketingcardqueryrequest();
// request.putothertextparam("app_auth_token", appauthtoken);
request.setbizcontent(bizcontent);
alipaymarketingcardqueryresponse response = alipayclient.execute(request);
system.out.println(response.getbody());
"{"
"\"target_card_no\":\"prex0000001781\","
"\"target_card_no_type\":\"biz_card\","
"\"card_user_info\":{"
"\"user_uni_id\":\"20884025********\","
"\"user_uni_id_type\":\"uid\""
"}}"