Booking

class fabman.booking.Booking(requester: Requester, attributes: dict)

Booking object as described in the Fabman API: https://fabman.io/api/v1/documentation#/bookings

Initialize the Object. Stores the requester method to interact with the API for further calls

Parameters:
  • requester (Requester) – The Requester object to make requests with

  • attributes (dict) – The attributes to initialize this object with

delete(**kwargs) Response

Deletes the booking. WARNING: THIS CANNOT BE UNDONE.

Calls:

“DELETE /bookings/{id}” <https://fabman.io/api/v1/documentation#/bookings/deleteBookingsId>

Returns:

Response from the API with status code 204 (No Content) if successful

Return type:

requests.Response

update(**kwargs) None

Update the booking object on the server. Returns the updated booking object. Updates all information in place.

Calls:

“PUT /bookings/{id}” <https://fabman.io/api/v1/documentation#/bookings/putBookingsId>

Returns:

None

Return type:

None