产品详情
API参数 云鉴_车辆信息校验接口_车牌号校验_车辆发动机号校验_车辆信息验证 调用地址: http,https://clxxcheck.api.bdymkt.com/clxxcheck 请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- platenumber
- string
- true
- 苏A98888
- 车牌号
- enginenumber
- string
- true
- 1234567890
- 发动机号(后6位)
- platetype
- string
- false
- 02
- 车辆类型(默认:02)01: 大型汽车; 02: 小型汽车; 03: 使馆汽车; 04: 领馆汽车; 05: 境外汽车; 06: 外籍汽车; 07: 两、三轮摩托车; 08: 轻便摩托车; 09: 使馆摩托车; 10: 领馆摩托车; 11: 境外摩托车; 12: 外籍摩托车; 13: 农用摩托车; 14: 拖拉机; 15: 挂车; 16: 教练汽车; 17: 教练摩托车; 18: 试验汽车; 19: 试验摩托车; 20: 临时入境汽车; 21: 临时入境摩托车; 22: 临时行驶车; 23: 警用汽车; 24: 警用摩托; 25: 原农机号牌
<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/clxxcheck";
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": "ZT20210112154354667282151",//系统流水号
"responsetime": "20210112154355758",//响应时间
"errcode": "00000",//返回码
"errmsg": "验证通过",//返回码描述信息
"result": {
"viocount": "0"//未处理违章条目总数
},
"encresult": "" //保留字段,暂未使用
}
//响应码描述
00000:验证通过
00029:请求参数不标准
00030:车牌号或发动机号错误
00096:验证失败
00061:验证次数超限
00064:验证不通过
21005:该产品暂时无法使用
910RE:系统交易超时
91096:系统其他错误
失败返回示例 {
"jobid": "ZT20201230164545238130741",
"responsetime": "20201230164545557",
"errcode": "00029",
"errmsg": "请求参数不标准",
"result": {},
"encresult": ""
}
错误码定义
