| Type: | Package | 
| Title: | ProPublica API Client | 
| Version: | 0.1.3 | 
| Date: | 2015-12-22 | 
| Maintainer: | Thomas J. Leeper <thosjleeper@gmail.com> | 
| Imports: | jsonlite, httr, curl | 
| Description: | Client for accessing data journalism APIs from ProPublica http://www.propublica.org/. | 
| License: | GPL-2 | 
| URL: | https://github.com/rOpenGov/RPublica | 
| BugReports: | https://github.com/rOpenGov/RPublica/issues | 
| NeedsCompilation: | no | 
| Packaged: | 2015-12-22 08:08:22 UTC; Thomas | 
| Author: | Thomas J. Leeper [aut, cre], Jeroen Ooms [ctb] | 
| Repository: | CRAN | 
| Date/Publication: | 2015-12-22 14:36:42 | 
ProPublica API Client
Description
Client for accessing ProPublica's data journalism APIs.
Author(s)
Thomas J. Leeper
Maintainer: Thomas J. Leeper <thosjleeper@gmail.com>
References
APIs:
Retrieve committees or committee
Description
Retrieve available committees, or a specific committee
Usage
committee(slug = NULL, ...)
Arguments
slug | 
 An optional character string containing a “slug” referring to a political committee.  | 
... | 
 Arguments passed to   | 
Author(s)
Thomas J. Leeper
Examples
## Not run: committee('obama-for-america')
Retrieve filing
Description
Retrieve a specific filing, by ID
Usage
filing(id, ...)
Arguments
id | 
 A character string containing a filing identification number.  | 
... | 
 Arguments passed to   | 
Author(s)
Thomas J. Leeper
Examples
## Not run: filing(51212)
Forensics API
Description
Retrieve details about a given state or system
Usage
geos(state=NULL, ...)
systems(id, ...)
Arguments
state | 
 An optional character string containing a two-letter state postal code. If   | 
id | 
 The identification number for a particular medical examiner or coroner system.  | 
... | 
 Arguments passed to   | 
Author(s)
Thomas J. Leeper
References
Examples
## Not run: geos('ny')
## Not run: systems(36)
Retrieve market or markets
Description
Retrieve available markets, or a specific market
Usage
market(slug = NULL, ...)
Arguments
slug | 
 An optional character string containing a “slug” referring to a media market.  | 
... | 
 Arguments passed to   | 
Author(s)
Thomas J. Leeper
Examples
## Not run: market('new-york')
Nonprofit Explorer
Description
Search for and retrieve nonprofit data
Usage
np_search(q=NULL, order=NULL, sort=NULL, state=NULL, ntee=NULL, subsection=NULL, ...)
np_org(ein, ...)
Arguments
q | 
 A character string containing a search query.  | 
order | 
 A character string containing a field by which to order the results. One of “name”, “city”, “state”, “c_code”, “fiscalyr”, “revenue”, “expenses”, “assets”, “liabilities”, “pct_officer_compt”. The ascending or descending sort by this parameter is controlled by   | 
sort | 
 One of “asc” or “desc”, controlling the order of the results (according the the ordering given in   | 
state | 
 A two-letter state postal abbreviation code for a U.S. state or territory. Use “ZZ” for foreign organizations.  | 
ntee | 
 A numeric value (between 1 and 10) containing a National Taxonomy of Exempt Entities (NTEE) Major Group code.  | 
subsection | 
 A numeric value (between 2 and 92) referring to a subsection of tax code section 501(c).  | 
ein | 
 An employer identification number (EIN).  | 
... | 
 Arguments passed to   | 
Value
A list containing the API response.
Author(s)
Thomas J. Leeper
References
Examples
## Not run: np_search('propublica')
## Not run: np_org(142007220)
API Query
Description
Execute an API query
Usage
ppQuery(op, baseurl, args = NULL, ...)
Arguments
op | 
 A character string containing an API operation, and associated arguments.  | 
baseurl | 
 The base URL for conducting the API query.  | 
args | 
 A character string containing additional URL-encoded parameters.  | 
... | 
 Arguments passed to   | 
Author(s)
Thomas J. Leeper
Retrieve station
Description
Retrieve station
Usage
station(callsign, ...)
Arguments
callsign | 
 A character string containing a station callsign.  | 
... | 
 Arguments passed to   | 
Author(s)
Thomas J. Leeper
Examples
## Not run: station('WEWS-TV')