public Legislators search ( String state , Boolean active , String term , String chamber , String district , String party , String first_name , String last_name ) throws OpenStatesException { return api . query ( new MethodMap ( "legislators" ) , new ArgMap ( "state" , state , "first_name" , first_name , "last_name" , last_name , "chamber" , chamber , "active" , active == null ? null : active . toString ( ) , "term" , term , "party" , party , "district" , district ) , Legislators . class ) ; }
This method allows looking up a legislator by a number of parameters the results do not include the roles or old_roles items by default .