-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Welcome to the mann-wagon wiki!#
The new Mann website will be using the “Hours” in “LibCal” for managing the opening hours and exceptions. Admin Hours Management: http://spaces.library.cornell.edu/admin_hours.php To display the “Today’s Hours” and “All Hours” weekly data, LibCal provides a REST-ful API. At this time, the API is read-only. For more information check the following links: http://spaces.library.cornell.edu/admin_api.php http://support.springshare.com/libcal/hours/widgets
The hours API is can be found here: http://spaces.library.cornell.edu/admin_hours_widgets.php
The request format can be in HTML, JavaScript, JSON, XML, and RSS formats. We will use the JSON format.
-
All Locations:
https://api3.libcal.com/api_hours_today.php?iid=973&lid=0&format=json -
Mann Library:
https://api3.libcal.com/api_hours_today.php?iid=973&lid=1707&format=json
For the weekly data, we will use the JSON format, and request data for 52 weeks. (Note: This number will be tweaked if needed based on the response time.)
-
Mann Library weekly hours (Includes all departments):
https://api3.libcal.com/api_hours_grid.php?iid=973&format=json&weeks=52 -
Weekly hours for a department
Each library/department gets a unique “lid” number. We can use this as a parameter to request the weekly hours hor a department. For example, the lid for Lobby is: 1709 (You can find this in settings).
https://api3.libcal.com/api_hours_grid.php?iid=973&format=json&weeks=52&lid=1709