get_election

Description:

Gets a list of the candidates in an election based on parameters year and office_id

Arguments:

  • year: year for which elections are to be returned.
  • office_id: office for which election results are desired.

EXAMPLE

http://ca.api.opencampaigns.com/api/get_election?year=2006&office_id=14

http://sf.api.opencampaigns.com/api/get_election?office_id=16

*************** opencampaigns developers  ****************

the first one above is showing a san francisco election, maybe we need to be checking the subdomain.
 Also, this function seems to be like get_candidates but with more data. Can we remove get_candidates? Does our client use?