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())
state | Two letter abbreviation of the state |
---|---|
session_id | Session identifier |
api_key | Your LegiScan API key (see |
Data frame of bill information in the session requested, including `bill_id` and other information.
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.
# 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) # }