public CandidateList getByOfficeTypeState ( String officeTypeId , String stateId ) throws VoteSmartException , VoteSmartErrorException { return api . query ( "Officials.getByOfficeTypeState" , new ArgMap ( "officeTypeId" , officeTypeId , "stateId" , stateId ) , CandidateList . class ) ; }
This method grabs a list of officials according to office type and state representation .