# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get a list of bills for a certain office, candidate and year
bills <- Votes.getBillsByOfficialYearOffice(list(2010,2011,2012),107800,)
bills
Run the code above in your browser using DataLab