Rooms

Get the RoomId and the Name of a customer.

API Server: https://bookings.roomonitor.com

Endpoint: /get-rooms/{userId}

HTTP Method: GET

Authenticated: true

Parameters:

Auth headers:

  • X-User-Id:{userId} (required) The userId must be the same as the before userId parameter example X-User-Id: 9yOHMi8fDXsweQ21
  • X-Auth-Token:{authToken} (required) The authToken obtained with the Authentication Login API Call example X-Auth-Token: wiiz1oKVwxemzcHbXJEOxs4-gRp2jNPH6ifxXtAX_Zz

Success Response

Code: 200 Response:

[ 
  { "_id": "3wuSW3TkBdQQ3KSR67A", "name": "ROOM 1" }, 
  { "_id": "G4a3yXNJjC7GhzP", "name": "ROOM 2" } 
]

Error Response

Code: 401 Response:

{ status: 401, message: 'Unauthorized' }

Code: 400 Response:

{ status: 400, message: "No users associated with this user id" }

Code: 400 Response:

{ status: 400, message: "No rooms associated with this user id" }