숙박 견적
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);