get_top_fundraisers

Description:

This method will return the top contribution recipients (fund raisers) 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 recipients in California in 2006.
http://ca.api.opencampaigns.com/api/get_top_fundraisers?year=2006

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

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

Notes: these seem to only be showing three results no matter what. Also, total_spent is the tag, when it should be total_raised (or nothing)