# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get main biographical data on Barack Obama and Mitt Romney
bio <- CandidateBio.getDetailedBio(list(9490,21942))
head(bio$profession)
head(bio$orgMembership)
Run the code above in your browser using DataLab