Learn R Programming

ProPublicaR (version 1.1.4)

retrieve_key: Retrieve the relevant ProPublica API key for congress API or campaign finance API

Description

This function is primarily meant to be used by pp_query to determine the API keys if not passed explicitly.

Usage

retrieve_key(API = c("congress", "campaign-finance"))

Value

the key from config.yml or global environment variables key_congress/key_campaign_finance

Arguments

API

Which API are you accessing

Examples

Run this code
if (FALSE) {
retrieve_key('congress')
retrieve_key('campaign-finance')
}

Run the code above in your browser using DataLab