Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.
Tahir Poduska edited this page Sep 30, 2015 · 3 revisions

Welcome to the mann-wagon wiki!#

External Data Sources

Hours Service

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

Today’s Hours

The request format can be in HTML, JavaScript, JSON, XML, and RSS formats. We will use the JSON format.

  1. All Locations:
    https://api3.libcal.com/api_hours_today.php?iid=973&lid=0&format=json

  2. Mann Library:
    https://api3.libcal.com/api_hours_today.php?iid=973&lid=1707&format=json

Weekly Data

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.)

  1. Mann Library weekly hours (Includes all departments):
    https://api3.libcal.com/api_hours_grid.php?iid=973&format=json&weeks=52

  2. 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

Clone this wiki locally