GetLegislatorsData {ropensecretsapi} | R Documentation |
Provides a list of legislators and associated attributes.
GetLegislatorsData(params)
params |
Any parameter accepted by this web service call – see here. |
## Not run:
SetAPIKey ("ENTER YOUR PRIVATE API KEY HERE.")
params <- list (id="NJ")
tryCatch(
legislatorsData <- GetLegislatorsData (params),
error =
function (e) {
print (
paste (
"An exception was thrown -- details follow: ",
e,
sep=""
)
)
}
)
## End(Not run)