이 콘텐츠는 아직 해당 언어로 이용하실 수 없습니다.

Lodging Quotes

Using the Lodging Quotes API to return the price and availability of a Vrbo property.

For details on retrieving property IDs, refer to Retrieve Property Static Data. For more information on the Quotes API, see Quotes API documentation.

1. Build the request object using the classes defined in the 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. Make the API call using service client.

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