Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option 1: Show available properties:

First, we call DailyAvailability()

Code Block
DailyAvailability(“2022-01-01”, “2022-01-05”, 3, “en”, “test_user”, “test_psw”)

This will return the list of available properties in those dates, with all the information except prices.

Then, we call DailyRates() for each one in a recursive function.

...

This will return de prices for that property and dates.

...

Main features:

...

Capacity → DailyAvailability.maximum_capacity

...

...

Title → DailyAvailability.headline or DailyAvailability.lodging_name

...

Description → DailyAvailability.description

...

Photo →

Field in screenshoot

Webservice

Field in webservice

1. Title

DailyAvailability

headline / name

2. Description

DailyAvailability

description

3. Photo

4.1 Capacity

DailyAvailability

maximum_capacity

4.2 Bedrooms

DailyAvailability

number_of_rooms

4.3 Surface

...

DailyAvailability

...

surface

4.4 Wifi

...

DailyAvailability

...

lodging_equipment.wifi

...

/ lodging_equipment.free_wifi

Price

...

of stay

DailyRates

...

price

Other important fields from DailyAvailability and DailyRates:

Webservice

Field

Description

DailyAvailability

lodging_id

...

You must read this to access the DailyRates function

DailyAvailability

lodging_type

...

Useful to filter by apartment / villa

DailyAvailability

city

...

Useful to filter by destination

DailyAvailability

latitude & longitude

...

Necessary if you want to create a Google Maps

DailyAvailability

release

...

Necessary if the properties have different release **

DailyAvailability

rating & review

...

Useful if you want to put the stars + reviews here

Other important fields from DailyRates:

DailyRates

closed_to_arrival

If closed_to_arrival

...

=true, that property can’t be booked with the arrival_date, even if

...

it’s available.

You should put a message informing the user

...

.

DailyRates

closed_to_departure

If closed_to_departure

...

=true, that property can’t be booked with the departure_date, even if

...

it’s available.

You should put a message informing the user

...

.

DailyRates

minimum_stay

...

If search

...

nights < minimum_stay, the reservation can’t be made for that number of nights.

You should put a message informing the user

...

.

Option 2: Show all properties:

...