Description Usage Arguments Examples
Returns PFD information for a member of Congress.
1 | GetMemPFDprofileData(params)
|
params |
Any parameter accepted by this web service call – see here. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
SetAPIKey ("ENTER YOUR PRIVATE API KEY HERE.")
params <- list (year="2010", cid="N00007360")
tryCatch(
memPFDprofileData <- GetMemPFDprofileData (params),
error =
function (e) {
print (
paste (
"An exception was thrown -- details follow: ",
e,
sep=""
)
)
}
)
## End(Not run)
|
Loading required package: RJSONIO
Loading required package: RCurl
Loading required package: bitops
[1] "An exception was thrown -- details follow: Error in function (type, msg, asError = TRUE) : Failed to connect to www.opensecrets.org port 80: Connection refused\n"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.