alipayclient alipayclient = new defaultalipayclient("https://openapi.alipay.com/gateway.do","app_id","your private_key","json","gbk","alipay_public_key","rsa2");
alipayuserinfosharerequest request = new alipayuserinfosharerequest();
alipayuserinfoshareresponse response = alipayclient.execute(request,accesstoken);
if(response.issuccess()){
system.out.println("调用成功");
} else {
system.out.println("调用失败");
}






