r-lib / gmailr

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

adding token option to gmail_auth #108

Closed paddytobias closed 5 years ago

paddytobias commented 5 years ago

Giving gmail_auth the ability to take an .rds token just like gc_auth() in googlecalendar and gs_auth() in googlesheets packages.

Useful for when need to authenticate interactively once, then relying on the .rds file thereafter.

paddytobias commented 5 years ago

Giving gmail_auth the ability to take an .rds token just like gc_auth() in googlecalendar and gs_auth() in googlesheets packages.

Useful for when need to authenticate interactively once, then relying on the .rds file thereafter.

jimhester commented 5 years ago

@jennybc do you think you could review this?

jennybc commented 5 years ago

Sure I can weigh in here.

But my preliminary meta comment is that the next release of gmailr should use gargle, which I really am releasing soon.

So perhaps we should sit on this just a wee bit longer and do this auth makeover all at once?

jimhester commented 5 years ago

Waiting on gargle sounds good to me!

jimhester commented 5 years ago

Thank you for working on this, however we have now switched to using the gargle package to handle the google authentication, so this PR is no longer needed.