fec_api: Query the Open FEC API

Description Usage Arguments Examples

View source: R/base_api.R

Description

Query the base Open FEC API with any path or parameters you like

Usage

1
fec_api(path, api_key, query_params = list())

Arguments

path

String: The path of the endpoint you would like you query

api_key

String: Your Open FEC API key

query_params

List of KV Pairs: Additional query paramaters to be included

Examples

1
fec_api("/candidates/", "YOUR_API_KEY_GOES_HERE", query_params = list(q = c("Obama")))

robinspollak/R.openFEC documentation built on Aug. 10, 2019, 7:34 p.m.