if (FALSE) {
# w/ Plain authentication
con <- configure_imap(
url="imaps://outlook.office365.com",
username="[email protected]",
password=rstudioapi::askForPassword(),
verbose = TRUE)
# w/ OAuth2.0 authentication
con <- configure_imap(
url="imaps://outlook.office365.com",
username="[email protected]",
verbose = TRUE,
xoauth2_bearer = "XX.Ya9...")
}
Run the code above in your browser using DataLab