객실 유형에 따라 구성된 특정 hotelId에 대한 객실 이미지 목록을 검색합니다. 이러한 URL은 예약 가능 객실 요청 내의 요인을 통해서도 사용 가능합니다.
요청 형식
XML/REST URL: GET http://api.ean.com/ean-services/rs/hotel/v3/roomImages?
XML 상위 요소: <roomImages>

요청 요인
이름 필수 설명
apiExperience 문자열 필수

이 속성을 사용하여 요청의 원본을 식별할 수 있습니다. 제출한 각 요청의 아래에 제시된 집합에서 해당 값을 선택합니다.

값:
PARTNER_CALL_CENTER - 콜센터 상담원 요청
PARTNER_WEBSITE - 고객용 웹사이트 요청
PARTNER_MOBILE_WEB - 모바일 형식 웹사이트 요청
PARTNER_MOBILE_APP - 모바일 앱 요청
PARTNER_BOT_CACHE - 캐시 봇 요청
PARTNER_BOT_REPORTING - 보고 봇 요청
PARTNER_AFFILIATE - 고유 제휴사 기반에 서비스하는 API/플랫폼 요청

hotelId 정수(Long) 필수 객실 수준 이미지가 요구되는 호텔 ID

응답 컨텐츠
이름 설명
RoomImages RoomImage 배열의 컨테이너 roomTypeCode에서 분류한 RoomImage 요소의 배열입니다. 반환된 이미지의 개수를 나타내기 위해 size 특성을 사용합니다.
roomTypeCode 문자열 명시된 객실에 대한 객실 유형 코드
url 문자열 객실 이미지 URL

XML 요청 예:

http://api.ean.com/ean-services/rs/hotel/v3/roomImages?minorRev=[current minorRev #]
&cid=[yourCID]
&sig=############
&apiKey=[xxx-yourOwnKey-xxx]
&customerUserAgent=[xxx]
&customerIpAddress=[xxx]
&customerSessionId=[xxx]
&xml=
<HotelRoomImageRequest>
   <hotelId>373338</hotelId>
</HotelRoomImageRequest>

XML 응답 예:

<ns2:HotelRoomImageResponse xmlns:ns2="http://v3.hotel.wsapi.ean.com/">
   <RoomImages size="16">
     <RoomImage>
       <roomTypeCode>200096782</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_41_s.jpg </url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096787</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_43_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096788</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_47_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096790</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_40_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096822</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_39_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096823</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_42_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096824</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_48_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096825</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_1_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096826</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_46_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096827</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_15_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096828</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_14_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096829</roomTypeCode>
       <url>
       http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_9_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096831</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_11_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096832</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_28_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096834</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_24_s.jpg</url>
     </RoomImage>
     <RoomImage>
       <roomTypeCode>200096836</roomTypeCode>
       <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_19_s.jpg</url>
     </RoomImage>
   </RoomImages>
</ns2:HotelRoomImageResponse>

REST 요청 예:

minorRev=[current minorRev #]
&cid=[yourCID]
&sig=#########
&apiKey=[xxx-yourOwnKey-xxx]
&customerUserAgent=[xxx]
&customerIpAddress=[xxx]
&customerSessionId=[xxx]
&hotelId=127092

JSON 응답 예:

{
"HotelRoomImageResponse" : {
  "customerSessionId" : "0ABAA829-B0E2-D291-3872-20E4C3B946EC",
  "RoomImages" : {
      "@size" : "16",
      "RoomImage" : [{
          "roomTypeCode" : 200096782,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_41_s.jpg"
      },
      {
          "roomTypeCode" : 200096787,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_43_s.jpg"
      },
      {
          "roomTypeCode" : 200096788,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_47_s.jpg"
      },
      {
          "roomTypeCode" : 200096790,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_40_s.jpg"
      },
      {
          "roomTypeCode" : 200096822,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_39_s.jpg"
      },
      {
          "roomTypeCode" : 200096823,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_42_s.jpg"
      },
      {
          "roomTypeCode" : 200096824,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_48_s.jpg"
      },
      {
          "roomTypeCode" : 200096825,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_1_s.jpg"
      },
      {
          "roomTypeCode" : 200096826,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_46_s.jpg"
      },
      {
          "roomTypeCode" : 200096827,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_15_s.jpg"
      },
      {
          "roomTypeCode" : 200096828,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_14_s.jpg"
      },
      {
          "roomTypeCode" : 200096829,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_9_s.jpg"
      },
      {
          "roomTypeCode" : 200096831,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_11_s.jpg"
      },
      {
          "roomTypeCode" : 200096832,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_28_s.jpg"
      },
      {
          "roomTypeCode" : 200096834,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_24_s.jpg"
      },
      {
          "roomTypeCode" : 200096836,
          "url" : "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_19_s.jpg"
      }]
  }
}
}