GetMemPFDprofileData: Returns PFD information for a member of Congress.

Description Usage Arguments Examples

Description

Returns PFD information for a member of Congress.

Usage

1

Arguments

params

Any parameter accepted by this web service call – see here.

Examples

 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)

Example output

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"

ropensecretsapi documentation built on May 1, 2019, 10:05 p.m.