public Elections getElectionByYearState ( String year ) throws VoteSmartException , VoteSmartErrorException { return api . query ( "Election.getElectionByYearState" , new ArgMap ( "year" , year ) , Elections . class ) ; }
This method grabs district basic election data according to year and stateid .