车辆详情
本示例演示如何使用从列表中获得的 ApiDetails 链接检索汽车详细信息。
车辆详情 API 提供有关所选车辆的详细信息,包括:租金、价格明细、限制条件、政策。
有关如何检索车辆信息的详细信息,请参阅Details API 文档。
1. 使用 SDK 中定义的类构建请求对象
GetCarDetailsOperationParams getCarDetailsOperationParams =
GetCarDetailsOperationParams.builder()
.partnerTransactionId("EWSCar_Automation")
.offerToken("Car Details Deep Link")
.price("price")
.currency("currency")
.build();2. 使用服务客户端进行 API 调用。
CarDetailsResponse carDetailsResponse = xapClient.execute(
new GetCarDetailsOperation(getCarDetailsOperationParams)).getData();