KildareStreet API
convertURL function
http://www.kildarestreet.com/api/convertURL
Converts a debates.oireachtas.ie URL into a KildareStreet one, if possible.
Arguments
- url (required)
- The parliament.uk URL you wish to convert, e.g. http://oireachtasdebates.oireachtas.ie/debates%20authoring/debateswebpack.nsf/takes/dail2015071600019#R11900
Example Response
{ gid : "uk.org.publicwhip/debate/2006-07-11a.1352.2", url : "http://www.kildarestreet.com/debates/?id=2006-07-11a.1311.0#g1352.2" }
Example Use
This probably counts as "AJAX", though it doesn't use XMLHTTP, asynchronicity, or XML, only cross-site JavaScript... It's definitely Web 2.1, at least.
- Hansard prettifier - drag this bookmarklet to your bookmarks bar, or bookmark it. Then if you ever find yourself on the official site, clicking this will try and take you to the equivalent page on TheyWorkForYou. (Tested in IE, Firefox, Opera.)
Explorer
Try out this function without writing any code!