Skip to content

Commit e47eb26

Browse files
committed
add get_resource_details
1 parent 242c09e commit e47eb26

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

uw_mazevo/api.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,16 @@ def get_events_with_booking_details(self, booking_ids):
8989
event.booking_details.append(BookingDetail.from_json(detail))
9090
events.append(event)
9191
return events
92+
93+
def get_resource_details(self, **kwargs):
94+
"""
95+
Get Resource Details with specific booking Ids and resource Ids (Optional).
96+
97+
"""
98+
url = self.URL.format("getresourcedetails")
99+
body = kwargs
100+
101+
details = []
102+
for data in post_resource(url, body):
103+
details.append(BookingDetail.from_json(data))
104+
return details

0 commit comments

Comments
 (0)