# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get additional biographical data on Barak Obama
votes <- Votes.getByOfficial(as.list(2010:2012),9490)
votes
Run the code above in your browser using DataLab