public CandidateList getByLastname ( String lastName , String electionYear ) throws VoteSmartException , VoteSmartErrorException { return api . query ( "Candidates.getByLastname" , new ArgMap ( "lastName" , lastName , "electionYear" , electionYear ) , CandidateList . class ) ; }
This method grabs a list of candidates according to a lastname match .