Hotel.getPhotogalleries

Returns photos of a hotel and its rooms. 

Use the first photo of the profile gallery (marked <profile>1</profile>) as your cover picture.

Download all photos and link the pictures to your visitors from your own server. If the user changes a photo in the system (uploads a new photo replacing a previous one) the URL will also change. Do not unnecessarily download photos with the same URL too many times. 

 

File name (photo) consists of [timestamp.extension] wherein the timestamp is the time of file upload to the server. 

Parameters

Name Description
login Username
password Password
hotId Hotel ID
lanId Language ID in which you would like descriptions to be returned (optional)

Sample request

<request>
    <login>prihlasovaci_jmeno</login>
    <password>heslo</password>
    <hotId>4587</hotId>
    <lanId>2</lanId>
</request>

Output

<photogalleries> [1]  
 
<gallery> [0..*]  
 
<galId> [1] Gallery ID
<label> [1] Gallery description 
<profile> [1]

Determines whether a gallery is the profile gallery (profile gallery includes the best pictures giving a comprehensive overview of the hotel which would be presented on the portals of Previo partners). First photo (the lowest value of the element order) in such labelled gallery is the cover picture.

<objectKind> [0..*] The gallery contains photos which are also assigned to a specified room kind (or multiple room kinds). If the element is missing, the gallery is designated for the entire hotel. 
 
<obkId> [1] Object kind ID
<name> [1] Object kind name
<photos> [1]  
 
<photo> [1..*] Photo
 
<label> [1] Photo description
<url> [1] Photo URL 
<order> [1] Order of photos

Sample output

<photogalleries>
    <gallery>
        <galId>2</galId>
        <label>Dětské hřiště</label>
        <profile>true</profile>
        <photos>
            <photo>
                <label>Klouzačky</label>
                <url>http://files.previo.cz/1/img/photogallery/gallery_2/200712050921331.jpg</url>
                <order>0</order>
            </photo>
        </photos>
    </gallery>
    <gallery>
        <galId>4</galId>
        <label>Okolí hotelu</label>
        <profile>false</profile>
        <photos>
            <photo>
                <label>Výhled na okolní lesy</label>
                <url>http://files.previo.cz/1/img/photogallery/gallery_4/201002111544221.jpg</url>
                <order>3</order>
            </photo>
            <photo>
                <label>Rozhledna Vyžlovka</label>
                <url>http://files.previo.cz/1/img/photogallery/gallery_4/201002111544221.jpg</url>
                <order>4</order>
            </photo>
        </photos>
    </gallery>
    <gallery>
        <galId>1</galId>
        <label/>
        <profile>false</profile>
        <objectKind>
            <obkId>1</obkId>
            <name>Jednolůžkové</name>
        </objectKind>
        <photos>
            <photo>
                <label/>
                <url>http://files.previo.cz/1/img/photogallery/objectKind_1/200801090312331.gif</url>
                <order>1</order>
            </photo>
            <photo>
                <label/>
                <url>http://files.previo.cz/1/img/photogallery/objectKind_1/200803171309451.jpg</url>
                <order>2</order>
            </photo>
        </photos>
    </gallery>
    <gallery>
        <galId>10596</galId>
        <label/>
        <profile>false</profile>
        <objectKind>
            <obkId>10596</obkId>
            <name>Dvoulůžkové</name>
        </objectKind>
        <photos>
            <photo>
                <label/>
                <url>http://files.previo.cz/1/img/photogallery/objectKind_10596/201002081802572.jpg</url>
                <order>6</order>
            </photo>
        </photos>
    </gallery>
</photogalleries>