These scripts are licensed under the Creative Commons BY-SA 3.0 licence.
TheyWorkForYou.com is a "non-partisan, volunteer-run website which aims to make it easy for people to keep tabs on their elected and unelected representatives in Parliament."
The API allows access to information contained in the web site including lists of politicians, constituencies and Hansard content. Bindings allow easy access to retrieve data in the relevant programming language. Bindings for Ruby, Perl, Python and Java are available from the API site, and below are bindings for PHP, ASP.NET and JavaScript, three commonly-used languages in web programming.
The PHP and ASP.NET bindings are currently on version 1.7, and the JavaScript binding is currently on version 1.1.
The PHP API binding allows easy access to the API for applications written in PHP. It requires a minimum of PHP 5 and cURL to be installed.
Here is an example which uses the binding to get a list of all Labour MPs in the House of Commons from the API in XML format. You can also see it in action.
The ASP.NET API binding allows easy access to the API for applications written in ASP.NET/C#. Since it is written in C#, it can be run either under Windows/IIS or Linux/Mono without any modifications.
Here is an example which uses the binding to get a list of all Labour MPs in the House of Commons from the API in XML format.
The JavaScript API binding allows easy access to the API for applications written in JavaScript.
Here is an example which uses the binding to get a list of all Labour MPs in the House of Commons from the API in JSON format. You can also see it in action
OpenAustralia.org is a "non-partisan website run by a group of volunteers which aims to make it easy for people to keep tabs on their representatives in Parliament."
The API allows access to information contained in the web site including lists of politicians and Hansard content. Bindings allow easy access to retrieve data in the relevant programming language. Below are bindings for PHP, ASP.NET and JavaScript, three commonly-used languages in web programming.
The PHP and ASP.NET bindings are currently on version 1.2, and the JavaScript binding is currently on version 1.1.
The PHP API binding allows easy access to the API for applications written in PHP. It requires a minimum of PHP 5 and cURL to be installed.
Here is an example which uses the binding to get a list of all Labor MPs in the House of Representatives from the API in XML format. You can also see it in action.
The ASP.NET API binding allows easy access to the API for applications written in ASP.NET/C#. Since it is written in C#, it can be run either under Windows/IIS or Linux/Mono without any modifications.
Here is an example which uses the binding to get a list of all Labor MPs in the House of Representatives from the API in XML format.
The JavaScript API binding allows easy access to the API for applications written in JavaScript.
Here is an example which uses the binding to get a list of all Labor MPs in the House of Representatives from the API in JSON format. You can also see it in action