import com.baidubce.http.ApiExplorerClient; import com.baidubce.http.AppSigner; import com.baidubce.http.HttpMethodName; import com.baidubce.model.ApiExplorerRequest; import com.baidubce.model.ApiExplorerResponse; // 营业执照识别 Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "http://gwgp-axv8wftecl5.n.bdcloudapi.com/business_licence"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }
点击复制代码
{
"code":0,
"message":"success",
"data":{
"address":"某某测试地址",
"chengliriqi":"1888-08-08",
"fadingdaibiaoren":"测试法定代表人",
"jingyingfanwei":"测试范围",
"name":"上海测试有限公司",
"type":"测试有限责任公司",
"xinyongdaima":"1231314123232131",
"yingyeqixian_end":"长期",
"yingyeqixian_start":"1888-08-08",
"zhuceziben":"人民币29189.5000万元整",
"zhucehao":"321321321321321"
},
"requestId":"98a39e53-84d4-448e-9081-29f64a6cd984"
}
{
"code":1000,
"message":"body error",
"requestId":"32b9d56c5bd94e47b619ae49cd479bc2"
}
-企业金融服务,可应用于企业银行开户、抵押贷款等金融服务场景,大幅度提升信息录入效率,并有效控制业务风险。 -商户资质审查,可应用于电商、零售、O2O等行业的商户入驻、企业信息在线校验等场景,实现商户信息的自动化审查和录入,大幅度提升服务标准和运营效率。