Closed vladimirstroganov closed 2 years ago
My file looks like this, but note that only the first line (the FRED key) is really necessary:
FRED_API_KEY <- "xxx". # You’ll need a free API key to use fredr. See ?fredr_set_key().
Following code needs to be run once, then can be commented out
api_key <-"xxx" api_secret = "xxx"
token <- create_token( app = "app name", consumer_key = api_key, consumer_secret = api_secret)
gm_auth_configure(path = "oauth.token.json") gm_auth(email = "MyEmailAccount")
email <- gm_to(email, "recipient email") email <- gm_from(email, "sender email") email <- gm_subject(email, "email body")
Could you add a sample file showing structure of the credentials, please?