retrieve_key: Retrieve the relevant ProPublica API key for congress API or...

View source: R/retrieve_key.R

retrieve_keyR 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)

ProPublicaR documentation built on Sept. 8, 2023, 5:53 p.m.