get_openfec: Make a request to the OpenFEC API

Description Usage Arguments

View source: R/get_openfec.R

Description

Constructs a full URL and sends a GET request to the OpenFEC API. Returns the JSON response as a list if successful. OpenFEC ends points and parameters are documented at https://api.open.fec.gov/developers/.

Usage

1
get_openfec(path, query_parameters = list())

Arguments

path

A character string of the OpenFEC endpoint.

query_parameters

A list with values of the parameters to use in the request.


stephenholzman/tidyfec documentation built on Aug. 1, 2020, 9:35 p.m.