r-lib / gmailr

Access the Gmail RESTful API from R.
https://gmailr.r-lib.org
Other
229 stars 56 forks source link

Refactor default app setup #116

Closed jennybc closed 5 years ago

jennybc commented 5 years ago

Instead of defaulting to an env var for the two pieces of data, it's probably better to use the env var to hold a file path to the JSON that holds the app's data.

This feels like a nicer workflow for us, e.g., sharing an app for revdep emails, for managing multiple apps, and so on.

This is closer to how Application Default Credentials works, too. That's about credentials, but it seems logical to use a similar pattern.

Also makes it easier to get the app from a JSON file or a JSON string.

jimhester commented 5 years ago

This is now done