src/main/java/org/openstates/classes/LegislatorClass.java
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
		);
	}
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.

Pass null for parameters that are not being filtered.

@param state Filter by state.
@param active 'true' (default) to only include current legislators, 'false' will include all legislators
@param term Only legislators that have a role in a certain term.
@param chamber Only legislators with a role in the specified chamber.
@param district Only legislators that have represented the specified district.
@param party Only legislators that have been associated with a specified party
@param first_name Filter by first name.
@param last_name Filter by last name.