# First, make sure your personal PVS API key is saved as character string in the pvs.key variable:
pvs.key <- "yourkey"
# get all officials of a certain state
officials <- Officials.getStatewide("FL")
# get all biographical information on those officials
bios <- getAllBios(officials$candidateId[1:100], batchsize=20)
head(bios)
Run the code above in your browser using DataLab