Recupere uma lista de imagens de quartos referente a um hotelId organizado por tipo de quarto. Essas URLs também estão disponíveis através de um parâmetro na solicitação de disponibilidade de quartos.
Formatos de solicitação
URL em XML/REST: GET http://api.ean.com/ean-services/rs/hotel/v3/roomImages?
Elemento pai XML: <roomImages>

Parâmetros de solicitação
Nome Valor Obrigatório Descrição
apiExperience string sim

Use esse atributo para identificar a origem de sua solicitação. Selecione um valor aplicável do conjunto fornecido abaixo para cada solicitação enviada.

Valores:
PARTNER_CALL_CENTER - solicitação de um agente na central de atendimento
PARTNER_WEBSITE - solicitação de um site direcionado aos clientes
PARTNER_MOBILE_WEB - solicitação de um site formatado para dispositivos móveis
PARTNER_MOBILE_APP - solicitação de um app para dispositivo móvel
PARTNER_BOT_CACHE - solicitação de um robô de cache
PARTNER_BOT_REPORTING - solicitação de um robô de relatório
PARTNER_AFFILIATE - solicitação de uma API/plataforma usada por sua própria base de afiliados

hotelId long sim ID do hotel para o qual são desejadas imagens do quarto

Conteúdo da resposta
Nome Valor Descrição
RoomImages contêiner para a matriz RoomImage Matriz de elementos RoomImage agrupados por roomTypeCode. Tem o atributo size para indicar o número de imagens retornadas.
roomTypeCode string Código de tipo de quarto referente ao quarto descrito
url string URL da imagem do quarto
highResolutionUrl string URL da versão em alta resolução da imagem do quarto, se fornecido

Exemplo de solicitação 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>

Exemplo de resposta 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>

Exemplo de solicitação REST:

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

Exemplo de resposta 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]
            ]
        }
    }
}