針對特定的 hotelId,依照房型擷取客房圖片清單。也可透過空房情況要求中的參數取得這些 URL。
要求格式
XML/REST URL: GET http://api.ean.com/ean-services/rs/hotel/v3/roomImages?
XML 父項目: <roomImages>

要求參數
名稱 必要 說明
apiExperience 字串 yes

利用此屬性辨識您的原始要求。請在下方提供的設定中,為每個您送出的要求選擇適當的值。

值:
PARTNER_CALL_CENTER - 來自客戶服務中心服務專員的要求
PARTNER_WEBSITE - 來自旅客服務網站的要求
PARTNER_MOBILE_WEB - 來自行動版網站的要求
PARTNER_MOBILE_APP - 來自行動 App 的要求
PARTNER_BOT_CACHE - 來自快取程式的要求
PARTNER_BOT_REPORTING - 來自報告程式的要求
PARTNER_AFFILIATE - 來自提供您專屬合作夥伴庫之 API/平台的要求

hotelId 長整數 yes 飯店可針對所要的客房等級圖片使用的 ID

回應內容
名稱 說明
RoomImages RoomImage 陣列適用的容器應用程式 RoomImage 元素的陣列,依照 roomTypeCode分組顯示。有 size 屬性以代表傳回的圖片數目。
roomTypeCode 字串 描述客房的房型代碼
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"
      }]
  }
}
}