자동 생성된 번역입니다.

목록 번호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);
이 페이지가 도움이 되었나요?
이 콘텐츠를 어떻게 개선하면 좋을까요?
더 나은 Developer Hub를 만드는 데 도움을 주셔서 감사합니다!