这是自动生成的译文

列表 AirPort 搜索

汽车列表 API 允许用户在多个全球分销系统 (GDS) 中搜索租赁汽车。

以及向供应商预订车辆,并提供折扣和/或优惠券代码。

有关 Listings API 的更多信息,请参阅Listings API 文档

1. 使用 SDK 中定义的类构建请求对象

GetCarsListingsOperationParams getCarsListingsOperationParams =
        GetCarsListingsOperationParams.builder().partnerTransactionId("EWSCar_Automation")
                //Three letter code for the airport at which the customer would like to pick up the car.
                //Supported values: standard 3 letter IATA Airport Code.
                //Cannot coexist with other pickup parameters, only one pickup parameter is allowed per
                //request.
                .pickupAirport("MCO")
                //Three letter code for the airport at which the customer would like to drop off the
                //car.
                //Supported values: standard 3 letter IATA Airport Code.
                //Cannot coexist with other drop off parameters, only one drop off parameter is allowed
                //per request.
                //If no drop off location is specified, it is assumed that the customer will be dropping
                //the car off at the same location at which they picked it up.
                .dropOffAirport("MCO")
                //Requested car pickup date and time.
                //Date should be ISO8601 Date format.The supported search window is today to 330 days in
                //the future.
                //(Note that each rental counter has different hours of operation. If you select a time
                //in the middle of the night there may be no inventory available as all locations may be
                //closed.)
                .pickupTime(LocalDateTime.now().plusDays(5))
                //Requested car drop off date and time.
                //Date should be ISO8601 Date format.The supported search window is today to 330 days in
                //the future.
                //The drop-off datetime should occur at least 2 hours after the pickup datetime.
                .dropOffTime(LocalDateTime.now().plusDays(8))
                //The maximum number of search results that will be returned by the query.
                .limit(5).links(linksList).build();

GetCarsListingsOperation getCarsListingsOperation =
        new GetCarsListingsOperation(getCarsListingsOperationParams);

2. 使用服务客户端进行 API 调用。

Response<CarListingsResponse> carListingsResponse = 
        xapClient.execute(getCarsListingsOperation);
该页面有帮助吗?
我们该如何改进这些内容?
感谢您帮助我们改进!