Learn R Programming

rsunlight (version 0.7.0)

statements: statements methods

Description

statements methods

Usage

cg_statements_search(query, key = NULL, as = "table", ...)

cg_statements_recent(key = NULL, as = "table", ...)

cg_statements_subjects(key = NULL, as = "table", ...)

cg_statements_date(date, key = NULL, as = "table", ...)

cg_statements_subject(subject, key = NULL, as = "table", ...)

cg_statements_member(member_id, congress, key = NULL, as = "table", ...)

Arguments

query

(character) a search term

key

your ProPublica API key; pass in or loads from environment variable stored as PROPUBLICA_API_KEY in either your .Renviron, or similar file locatd in your home directory

as

(character) IGNORED FOR NOW

...

optional curl options passed on to crul::HttpClient. See curl::curl_options()

date

(character) a date, of the form YYYY-MM-DD

subject

(character) slug version of subject

member_id

(character) The ID of the member to retrieve; it is assigned by the Biographical Directory of the United States Congress (http://bioguide.congress.gov/biosearch/biosearch.asp) or can be retrieved from a cg_members() request

congress

(character) The number of the Congress this update took place during.

Value

various things for now, since return objects vary quite a bit among the different votes routes

Examples

Run this code
# NOT RUN {
cg_statements_recent()
cg_statements_subjects()
cg_statements_search("AHCA")
cg_statements_date("2017-01-03")
cg_statements_subject('immigration')
cg_statements_member('C001084', 115)
# }

Run the code above in your browser using DataLab