retrieve_key {ProPublicaR} | R Documentation |
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"))
Arguments
API |
Which API are you accessing |
Value
the key from config.yml or global environment variables key_congress/key_campaign_finance
Examples
## Not run:
retrieve_key('congress')
retrieve_key('campaign-finance')
## End(Not run)
[Package ProPublicaR version 1.1.4 Index]