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-brj6odqv8vq.n.bdcloudapi.com/vin2/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":"奔驰E级 2020款 E 260 L 运动型",
"yeartype":"2020",
"ratedloadweight":"",
"seatnum":"5",
"price":"42.98",
"axlenum":"2",
"reartrack":"1580",
"bodytype":"4门5座三厢车",
"brand":"北京奔驰",
"displacement":"1.5T",
"drivemode":"前置后驱",
"environmentalstandards":"GB18352.6-2016国Ⅵ",
"enginemodel":"8AR",
"fronttrack":"1596",
"fueltype":"汽油",
"height":"1484",
"len":"5065",
"comfuelconsumption":"6.8",
"maxpower":"135",
"tirenum":"4",
"tiresize":"245/45R18",
"weight":"1800",
"wheelbase":"3079",
"width":"1860",
"vin":"LE4ZG7HB8LL437622",
"engineno":"4227213",
"color":"墨晶黑",
"productiondate":"2019-12-31"
}
}
退款规则:
退款时仅退还实付金额,已使用的代金券不退还。
已经开具完发票的,退款时需要您退回发票。
订单支付完成后7天内为交易担保期,可免费申请退款。
超过7天的订单需退款的请先联系客服退款。需收取资源包余量的15%作为财务成本支出,退余量的85%。
如对退款有疑问,请先联系客服进行咨询。详情参考云市场退款规则:
https://cloud.baidu.com/doc/Market/s/zjwvytb6s
返回车辆销售名称、长宽高、指导价、年款、排量、发动机型号等信息。此为精准版一对一车型返回。