getRepresentative function
http://www.openaustralia.org/api/getRepresentative
Fetch a particular member of the House of Representatives.
Arguments
- id (optional)
- If you know the person ID for the member you want (returned from getRepresentatives or elsewhere), this will return data for that person.
- division (optional)
- The name of an electoral division; we will try and work it out from whatever you give us. :)
- always_return (optional)
- For the division option, sets whether to always try and return a Representative, even if the seat is currently vacant.
Example Response
[{
"member_id" : "1",
"house" : "1",
"first_name" : "Tony",
"last_name" : "Abbott",
"constituency" : "Warringah",
"party" : "Liberal Party",
"entered_house" : "1994-03-26",
"left_house" : "9999-12-31",
"entered_reason" : "by_election",
"left_reason" : "still_in_office",
"person_id" : "10001",
"title" : "",
"lastupdate" : "2008-07-20 22:54:54",
"full_name" : "Tony Abbott",
"image" : "/images/mpsL/10001.jpg",
"office" : [{
"moffice_id" : "23013",
"dept" : "",
"position" : "Leader of the Opposition",
"from_date" : "2009-12-08",
"to_date" : "9999-12-31",
"person" : "10001",
"source" : ""
}]
}]
Explorer
Try out this function without writing any code!