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-wfrck8vbpfr.n.bdcloudapi.com/car/search"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); request.addQueryParameter("keyword", ""); 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": {
"keyword": "奔驰E级2017款E200运动版",
"list": [
{
"id": "34420",
"name": "2017款 E 200 运动轿车",
"logo": "http://api.jisuapi.com/car/static/images/logo/300/34420.jpg",
"price": "",
"yeartype": "2017",
"productionstate": "在产",
"salestate": "在销",
"sizetype": "中大型车"
},
{
"id": "34422",
"name": "2017款 E 200 运动轿车 4MATIC",
"logo": "http://api.jisuapi.com/car/static/images/logo/300/34422.jpg",
"price": "",
"yeartype": "2017",
"productionstate": "在产",
"salestate": "在销",
"sizetype": "中大型车"
},
{
"id": "34424",
"name": "2017款 E 200 L 运动轿车 4MATIC ",
"logo": "http://api.jisuapi.com/car/static/images/logo/300/34424.jpg",
"price": "",
"yeartype": "2017",
"productionstate": "在产",
"salestate": "在销",
"sizetype": "中大型车"
}
]
}
}
退款规则:
退款时仅退还实付金额,已使用的代金券不退还。
已经开具完发票的,退款时需要您退回发票。
订单支付完成后7天内为交易担保期,可免费申请退款。
超过7天的订单需退款的请先联系客服退款。需收取资源包余量的15%作为财务成本支出,退余量的85%。
如对退款有疑问,请先联系客服进行咨询。详情参考云市场退款规则:
https://cloud.baidu.com/doc/Market/s/zjwvytb6s
最新最全的车型车系大全、汽车标志大全。1级为车品牌,2级为车品牌子公司,3级为车型,4级为具体的车款。车型图片下载地址:http://pan.baidu.com/s/1nvHUdfz