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; // VIN查询POST Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "http://gwgp-h8mnmdi6hqr.n.bdcloudapi.com/vin/query"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); request.addQueryParameter("vin", ""); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }
点击复制代码
{
"status": 0,
"msg": "ok",
"result": {
"name": "大众 途锐 2017款 3.0 TSI 拓野版",
"brand": "大众",
"typename": "途锐",
"logo": "http://pic1.jisuapi.cn/car/static/images/logo/300/34889.jpg",
"manufacturer": "进口大众",
"yeartype": "2017",
"environmentalstandards": "国五",
"comfuelconsumption": "10.2",
"engine": null,
"fueltype": "汽油",
"gearbox": "8挡 手自一体",
"drivemode": "全时四驱",
"fronttiresize": "255/55 R18",
"reartiresize": "255/55 R18",
"displacement": "3.0T",
"fuelgrade": "95号",
"price": "71.88万",
"chassis": null,
"frontbraketype": "通风盘",
"rearbraketype": "通风盘",
"parkingbraketype": "电子驻车",
"maxpower": "235",
"sizetype": "中大型SUV",
"gearnum": "8",
"geartype": "手自一体",
"seatnum": "5",
"bodystructure": "承载式",
"maxhorsepower": "320",
"vin": "WVGAP97P2HD030000",
"iscorrect": 1,
"listdate": "2017-08-01",
"len": "4801",
"width": "1940",
"height": "1709",
"wheelbase": "2893",
"weight": "2244",
"bodytype": "SUV",
"machineoil":{
"volume":"4.5L",
"viscosity":"5W-30",
"grade":"全合成",
"level":"SN PLUS"
},
"carlist": [
{
"carid": 40411,
"name": "大众 途锐 2017款 3.0 TSI 拓界版",
"typeid": 767,
"typename": "途锐"
},
{
"carid": 34889,
"name": "大众 途锐 2017款 3.0 TSI 拓野版",
"typeid": 767,
"typename": "途锐"
},
{
"carid": 38071,
"name": "大众 途锐 2017款 3.0 TSI 远征版",
"typeid": 767,
"typename": "途锐"
},
{
"carid": 34890,
"name": "大众 途锐 2017款 3.0 TSI 驭岳版",
"typeid": 767,
"typename": "途锐"
},
{
"carid": 34888,
"name": "大众 途锐 2017款 3.0 TSI 启程版",
"typeid": 767,
"typename": "途锐"
},
{
"carid": 10910,
"name": "大众 途锐 2016款 3.0TSI R-Line",
"typeid": 767,
"typename": "途锐"
}
]
}
}
退款规则:
退款时仅退还实付金额,已使用的代金券不退还。
已经开具完发票的,退款时需要您退回发票。
订单支付完成后7天内为交易担保期,可免费申请退款。
超过7天的订单需退款的请先联系客服退款。需收取资源包余量的15%作为财务成本支出,退余量的85%。
如对退款有疑问,请先联系客服进行咨询。详情参考云市场退款规则:
https://cloud.baidu.com/doc/Market/s/zjwvytb6s
输入17位VIN车辆识别代码,查询车辆的品牌、公司、车型、年款、排量等基本信息,同时返回机油用量、机油型号、等级信息。此为一对多返回,按照可靠度输出在carlist里面。返回的车型ID有本站、yiche、autohome等供选择。