Hours API

From MLibrary API

Jump to: navigation, search

Hours API:

URL format: http://www.lib.umich.edu/api/hours/<format>/<identifier>/<date-list>

<format> can be xml, html, json

<identifier> is a numeric id followed by a period, and an object type i.e. the identifier for Hatcher is 4.building

<date-list> is a semi-colon separated list of dates. The format of the dates are pretty open; it uses php's strtotime() function so things like Today, Yesterday, Monday, 5/12/08, etc. See:

http://php.net/manual/en/function.strtotime.php

http://www.gnu.org/software/tar/manual/html_node/Date-input-formats.html

for more information

Examples:

http://www.lib.umich.edu/api/hours/xml/4.building/Today

http://www.lib.umich.edu/api/hours/html/4.building/Today;Tomorrow;Yesterday

http://www.lib.umich.edu/api/hours/json/4.building/Sunday;Monday;Tuesday;Wednesday;Thursday

Personal tools