MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / check_availability

Function check_availability

bmtools/tools/airbnb/api.py:253–267  ·  view source on GitHub ↗

This function checks the availability of a property given its ID. Parameters: propertyId (int): The ID of the property. Returns: dict: A dictionary that contains the availability of the property.

(propertyId: int)

Source from the content-addressed store, hash-verified

251
252 @tool.get("/check_availability")
253 def check_availability(propertyId: int) -> dict:
254 """
255 This function checks the availability of a property given its ID.
256
257 Parameters:
258 propertyId (int): The ID of the property.
259
260 Returns:
261 dict: A dictionary that contains the availability of the property.
262 """
263 params = {
264 'propertyId': propertyId,
265 }
266 response = requests.get(f"{BASE_URL}/checkAvailability", headers=HEADERS, params=params)
267 return response.json()
268
269 @tool.get("/get_property_reviews")
270 def get_property_reviews(propertyId: int) -> dict:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected