I configured my oauth succesfully with gmailr, the following code worked
require(gmailr)
gm_auth_configure(path="E:/SOME_NAME.json")
test_email <- mime(
To = "someone@something.com",
From = "someone@gmail.com",
Subject = "this is just a gmailr test",
body = "Can you hear me now?")
gm_send_message(test_email)
Then I installed blastula and configured my gmail oauth again with:
create_email_creds_file(
user = "someone@gmail.com",
password = "************",
provider = "gmail")
Now when I run:
require(gmailr)
gm_auth_configure(path="E:/SOME_NAME.json")
test_email <- mime(
To = "someone@somewhere.com",
From = "someone@gmail.com",
Subject = "this is just a gmailr test",
body = "Can you hear me now?")
gm_send_message(test_email)
I get error:
Auto-refreshing stale OAuth token. Error in gzfile(file, mode) : cannot open the connection In addition: Warning messages: 1: Unable to refresh token: invalid_grant Token has been expired or revoked. 2: In gzfile(file, mode) :cannot open file 'C:/Users/.R/gargle/gargle-oauth': it is a directory
How do I undo the blastula oauth and get back to my originally working gmailr oauth file / i.e. how do i start over and get gm_auth_configure to point to the location of my oauth file ?