duncantl / RGoogleDocs

Primitive interface to Google Documents from R
http://www.omegahat.org/RGoogleDocs
27 stars 10 forks source link

Two-factor Authentication #2

Open jknowles opened 10 years ago

jknowles commented 10 years ago

Is there a way to allow API access for users who have turned on two-factor authentication for their Google account?

FarrelBuch commented 10 years ago

@jknowles Yes, I have turned on two factor authentication and what that did was give me a specific code just for R to interact with Google. You can learn more about application-specific password at this youtube video.

I then used that specific code in my Rprofile.site file. You can read how I did it in the comments at this answer on stackoverflow. Specifically look at my two comments, way down the list of comments. Start where I say, "That was not easy but I finally got it."

I would love to know if I understood your question and if my musings helped you.