자동 생성된 번역입니다.

숙박 견적

Lodging Quotes API를 사용하여 Vrbo 숙박 시설의 가격 및 예약 가능 여부를 조회합니다.

숙박 시설 ID를 조회하는 방법에 대한 자세한 내용은 의 “숙박 시설 정적 데이터 조회”를 참조하십시오. Quotes API에 대한 자세한 내용은 의 Quotes API 문서를 참조하십시오.

1. SDK에 정의된 클래스를 사용하여 요청 객체를 생성합니다.

GetLodgingQuotesOperationParams quotesOperationParams =
        GetLodgingQuotesOperationParams.builder()
            .partnerTransactionId("PARTNER TRANSACTION ID")
            // Check-in 5 days from now
            .checkIn(LocalDate.now().plusDays(5))
            // Check-out 10 days from now
            .checkOut(LocalDate.now().plusDays(10))
            // Vrbo Property IDs to search for
            .propertyIds(new HashSet<>(Arrays.asList("87704892","12410858")))
            // The links to return, WEB includes WS (Web Search Result Page) and WD (Web Details Page)
            .links(Collections.singletonList(GetLodgingQuotesOperationParams.Links.WEB))
            .build();

GetLodgingQuotesOperation quotesOperation = 
        new GetLodgingQuotesOperation(quotesOperationParams);

2. 서비스 클라이언트를 사용하여 API 호출을 수행합니다.

Response<LodgingQuotesResponse> hotelQuotesResponse =
        client.execute(quotesOperation);
이 페이지가 도움이 되었나요?
이 콘텐츠를 어떻게 개선하면 좋을까요?
더 나은 Developer Hub를 만드는 데 도움을 주셔서 감사합니다!