powered by
Setup oauth authentication for your gmail
gmail_auth( scope = c("read_only", "modify", "compose", "full"), id = the$id, secret = the$secret, secret_file = NULL )
the authentication scope to use
the client_id to use for authentication
the client secret to use for authentication
the secret json file downloaded from https://console.cloud.google.com
use_secret_file to set the default id and secret to a different value than the default.
if (FALSE) { gmail_auth("compose") }
Run the code above in your browser using DataLab