产品详情
API参数 企业三证识别 调用地址: http,https://template.api.bdymkt.com/template 请求方式: POST 支持格式: application/json;charset=UTF-8 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- baseFile
- string
- false
- base64位图片字符串(必填)
- --
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>api-explorer-sdk</artifactId>
<version>1.0.0</version>
</dependency>
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-wx4hwxnane3.n.bdcloudapi.com/template";
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();
}
}
}
点击复制代码
正常返回示例 {
"status": "OK",
"data": {
"childs": [{
"Type": 0,
"AreaName": "标题",
"NumCol": 1,
"childs": [{
"Key": "",
"Text": "营业执照"
}]
}, {
"Type": 2,
"AreaName": "栏位区",
"NumCol": 9,
"childs": [{
"Key": "注册号",
"Text": "371729228001364"
}, {
"Key": "名称",
"Text": "门泽市岳程建饮I:相有限公司"
}, {
"Key": "公司类型",
"Text": "有限责任公司(自然人控股)"
}, {
"Key": "住所",
"Text": "泽市黄河东路桥相办事灶对过"
}, {
"Key": "法定代表人",
"Text": "至长进"
}, {
"Key": "注册资本",
"Text": "伍仙万元整"
}, {
"Key": "成立日期",
"Text": "1991年03月06日"
}, {
"Key": "营业期限",
"Text": "1991年03月06日至 年 月 日"
}, {
"Key": "经营范围",
"Text": "r)s以建加工口、秘饮林铸模营r:吖、期保。 广的林1: l.. - L L t 。 14tI。 ~AA. Ala I t 。a la L L ll 。 dt J 1l,,,:.lLJ i _ t- - _匚几一一口f r’口一一一尸营,lri . liii lfl J 口一门口亻卫 】 【’一营1J ,L . 上 ,,',1,市政公川工门 C ktk,i,) 可的. 凭许可,,1IP.I 5 ) a r:,\\lA r,.1,i,,,4 ,:J !11 t 经411 /.,,: rl批11 i 。山,1Si经成活动)"
}]
}]
}
}
失败返回示例 {
"status": "-101",
"info": "未找到上传的文件"
}
错误码定义
