产品详情
API参数 云鉴_驾驶证验证及计分查询_驾驶证扣分_驾驶证真伪校验 调用地址: http,https://jszjf.api.bdymkt.com/jszjf 请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- jszh
- string
- true
- 4403041990123456
- 驾驶证号码
- dabh
- string
- true
- 1234567890
- 档案编号
- sf
- string
- false
- 广东
- 省份/城市支持范围: 北京,天津,上海,重庆,辽宁,吉林,黑龙江,河北,山西,陕西,山东,安徽,河南,湖北,湖南,江西,福建,云南,海南,四川,贵州,广东,甘肃,青海,西藏,新疆,广西,内蒙古,宁夏,湖州,嘉兴,杭州,绍兴,宁波,舟山,金华,衢州,丽水,台州,温州,徐州,连云港,宿迁,盐城,淮安,扬州,泰州,南通,镇江,南京,常州,无锡,苏州
<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-gappqbrgacz.n.bdcloudapi.com/jszjf";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {
"jobid": "ZT20210112155351921649258",//系统流水号
"responsetime": "20210112155356717",//响应时间
"errcode": "C0000",//返回码
"errmsg": "查询成功",//返回码描述信息
"result": {
"score": "0" //扣分总数
},
"encresult": "" //保留字段,暂未使用
}
//响应码描述
C0000: 查询成功
C0025: 无此驾驶证信息
C0026: 无此驾驶证信息
00029: 请求参数不标准
00030: 驾驶证号码或档案编号或省份格式错误
C0031: 地区暂未开通或维护
C0096: 查询失败
00061: 查询次数超限
C0064: 驾驶证号码或档案编号不匹配
21005: 该产品暂时无法使用
910RE: 系统交易超时
91096: 系统其他错误
失败返回示例 {
"jobid": "ZT20201230164545238130741",
"responsetime": "20201230164545557",
"errcode": "00029",
"errmsg": "请求参数不标准",
"result": {},
"encresult": ""
}
错误码定义
