get_top_contributors

Description:

This method will return the top contributors for a city or state.

Arguments:

  • year: The year for which the top contributors are to be displayed.
  • start: Show results starting with this value. 0 is the default
  • count: The number of results to display, 10 is default
  • reverse: By default, results are sorted by contribution amount from highest to lowest. reverse=true means sort from lowest to highest.

XML EXAMPLES

Show the top 10 contributors for California in 2006.
http://ca.api.opencampaigns.com/api/get_top_contributors?year=2006

Show the top 10 contributors for San Francisco in 2006
http://sf.api.opencampaigns.com/api/get_top_contributors?year=2006

Show the top 5 contributors for California in 2008 beginning with the 11the record
http://ca.api.opencampaigns.com/api/get_top_contributors?year=2008&start=10&count=5&reverse=false