This is the API wrapper function for the getMasterList operation. It returns a master list of bills in a given session, or in the current session of a given state.

get_bill_masterlist(state = NULL, session_id = NULL,
  api_key = legiscan_api_key())

Arguments

state

Two letter abbreviation of the state

session_id

Session identifier

api_key

Your LegiScan API key (see legiscan_api_key)

Value

Data frame of bill information in the session requested, including `bill_id` and other information.

Details

Only one of the two parameters are accepted: specifying state paramter returns the bill master list of the current session from that state; specifying the session_id parameter returns the bill master list of that specific session.

See also

Examples

# NOT RUN {
# One state
get_bill_masterlist(state = "PA")

# Multiple states, use iterators, e.g. lapply() or map()
state_list <- c("AR", "AZ")
bills_current <- lapply(state_list, get_bill_masterlist)
# }