cg_bills: Search bills

Description Usage Arguments Value Examples

View source: R/cg_bills.R

Description

Search bills

Usage

1
cg_bills(query, sort = NULL, dir = NULL, key = NULL, as = "table", ...)

Arguments

query

(character) keyword or phrase. required

sort

(character) "_score" or "date" (default)

dir

(character) asc or desc (default)

key

your SunlightLabs API key; loads from environment variable from .Renviron or from an option from .Rprofile

as

(character) One of table (default), list, or response (httr response object). When table is requested, the default, a table is not always returned, but is returned almost always. You can then make a table yourself if you like.

...

Optional additional curl options (debugging tools mostly) passed on to HttpClient

Value

some nasty parsing, so just list of lists for now

Examples

1
2
3
4
5
## Not run: 
cg_bills(query = "megahertz")
cg_bills(query = "megahertz", per_page = 3)

## End(Not run)

rOpenGov/rsunlight documentation built on July 21, 2019, 3:18 a.m.