| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| licensenumber | string | 是 | 驾驶证号 |
| licenseid | string | 是 | 档案编号 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| licensenumber | string | 驾驶证号 |
| licenseid | string | 档案编号 |
| score | int | 扣分 |
| realname | string | 姓名 |
| type | string | 准驾车型 |
| startdate | string | 领证日期 |
| enddate | string | 有效期 |
| licensestatus | string | 证件状态 |
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$licensenumber = '412336111111111111';
$licenseid = '330000000000';
$url = "https://api.binstd.com/driverlicense/query?licensenumber=$licensenumber&licenseid=$licenseid&appkey=$appkey";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
//exit(var_dump($jsonarr));
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['licensenumber'].' '.$result['licenseid'].' '.$result['score'].'
';
{
"status": "0",
"msg": "ok",
"result": {
"licensenumber": "412336111111111111",
"licenseid": "330000000000",
"score": "0"
}
}
| 代号 | 说明 |
|---|---|
| 201 | 驾驶证号为空 |
| 202 | 档案编号为空 |
| 203 | 驾驶证号不正确 |
| 204 | 档案编号不正确 |
| 205 | 交管局服务器错误 |
| 206 | 驾驶证号和档案编号不一致(扣次数) |
| 207 | 真实姓名为空 |
| 208 | 真实姓名包含特殊字符 |
| 209 | 驾驶证信息不存在(扣次数) |
| 210 | 没有信息 |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 名称 | 权限 | 价格 | 原价 |
|---|---|---|---|
| Level1 | 10000次 | 1000.00元9.8折 | 1024.00元 |
| Level2 | 20000次 | 1960.00元9.9折 | 1980.00元 |
| Level3 | 50000次 | 4750.00元9.5折 | 5000.00元 |
开通账号: