# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get votes of a certain candidate on a certain action
actionvote <- Votes.getBillActionVotes(list(31712,28686))
actiovote
Run the code above in your browser using DataLab