VerticalBooking API Extension for Elixir
If available in Hex, the package can be installed
by adding ex_vertical_booking
to your list of dependencies in mix.exs
:
def deps do
[
{:ex_vertical_booking, "~> 0.2.13"}
]
end
def load_bookings() do
ExVerticalBooking.ota_read(
%{hotel_code: "VB_HOTEL_CODE"},
%{
endpoint: "https://pms.verticalbooking.com/requestor_id/OTA_PMS.php",
password: "PASSWORD",
user: "USER"
}
)
end