Zak API to read rooms

These methods allow to read the rooms of a zak property.

Get room types

This method return the list of room types of a zak property.
Url: https://kapi.wubook.net/kapi/rooms/get_room_types
Input fields are not necessary.
Response-data: return the array of ‘room types of a property’.
For each room type you receive the following fields:
Field name Description
id Identification number of the zak room type
name Name of the zak room type
shortname Short name of the zak room type
maxprice Default price assigned to the room type
adults Default occupancy of the room type

Example

On each examples 123456 is used as api-key which is sent as user.

curl:

$ curl https://kapi.wubook.net/kapi/rooms/get_room_types -u 123456: -X POST
{"data": [{
  "id": 4870,
  "name": "Double",
  "shortname": "DBL",
  "adults": 2,
  "maxprice": 90.0}, ...]
}

python code:

import requests
uspw=(123456, None)
response= requests.post('https://kapi.wubook.net/kapi/rooms/get_room_types', {}, auth= uspw)
print(response.text)

Get rooms

This method return the list of phisic rooms of a zak property.
Url: https://kapi.wubook.net/kapi/rooms/get_rooms
Input fields are not necessary.
Response-data: return the array of ‘phisic rooms of a property’.
For each room you receive the following fields:
Field name Description
id Identification number of the zak room
name Name of the zak room
shortname Short name of the zak room
composit_name Composit by room-type name : room short name
adults Default occupancy of the room type
id_room_type Identification number of the room type
tags Array of room tags

Example

curl:

$ curl https://kapi.wubook.net/kapi/rooms/get_rooms -u 123456: -X POST
{"data": [{
  "id": 7774,
  "name": "101",
  "shortname": "101",
  "composite_name": "DBL: 101",
  "adults": 2,
  "id_room_type": 3454,
  "tags": ['MM', 'KK']}, ...]
}

python code:

import requests
uspw=(123456, None)
response= requests.post('https://kapi.wubook.net/kapi/rooms/get_rooms', {}, auth= uspw)
print(response.text)