객실 유형에 따라 구성된 특정 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
highResolutionUrl 문자열 객실 이미지의 고해상도 버전(제공되는 경우) 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/">
    <customerSessionId>db8a4743-eaa7-4b4a-9a21-6de38133b4c2</customerSessionId>
    <RoomImages size="107">
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/c0a5d6a9_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/c0a5d6a9_z.jpg</highResolutionUrl
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/c8e7b5b2_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/c8e7b5b2_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/4588008f_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/4588008f_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/b34a5a3b_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/b34a5a3b_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/0c3c1917_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/0c3c1917_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/2115f796_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/2115f796_z.jpg</highResolutionUrl>
        </RoomImage>
        <RoomImage>
            <roomTypeCode>201417731</roomTypeCode>
            <url>http://media.expedia.com/hotels/1000000/10000/4400/4348/986b441b_s.jpg</url>
            <highResolutionUrl>http://media.expedia.com/hotels/1000000/10000/4400/4348/986b441b_z.jpg</highResolutionUrl>
        </RoomImage>
        {truncated for length}
     </RoomImages> </ns2:HotelRoomImageResponse>

REST 요청 예:

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

JSON 응답 예:

{
"HotelRoomImageResponse" : {
  "customerSessionId" : "0ABAA829-B0E2-D291-3872-20E4C3B946EC",
  "RoomImages" : {
      "@size" : "16",
      "RoomImage" : [
           {
                    "roomTypeCode": 200096831,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/4348_31_s.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/a8cb2f64_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/a8cb2f64_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/29c0311a_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/29c0311a_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7a466b48_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7a466b48_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/e851d5ad_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/e851d5ad_z.jpg"
                }, {
                    "roomTypeCode": 201417724,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/5e979fb9_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/5e979fb9_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7b81232b_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7b81232b_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/58eaf173_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/58eaf173_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/04da5aac_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/04da5aac_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7de2d76a_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/7de2d76a_z.jpg"
                }, {
                    "roomTypeCode": 201419249,
                    "url": "http://media.expedia.com/hotels/1000000/10000/4400/4348/b69012d9_s.jpg",
                    "highResolutionUrl": "http://media.expedia.com/hotels/1000000/10000/4400/4348/b69012d9_z.jpg"
                } {truncated for length]
            ]
        }
    }
}