httr2: google example?

I have an R application that works with original httr package.
But I am having trouble lining up httr2 package and google's oauth2.

Is there an example of httr2:: with google?

The vignettes are very good, but do not cover google. Likewise, I can get things to work via browser and curl (linux command line), as well as google's own playground. Just doing something wrong with httr2 and flow. A code example should be enough.

Thx.

For example, In a browser, I can obtain a google 'auth code' by pasting the result of this code (and then responding to authorization requests). How would I do the same in with httr2 functions.

paste0( "https://accounts.google.com/o/oauth2/v2/auth?client_id=",
             client_id, "&", 
             "redirect_uri=urn:ietf:wg:oauth:2.0:oob&",
"scope=https://www.googleapis.com/auth/youtube+https://www.googleapis.com/auth/youtube+https://www.googleapis.com/auth/youtube.force-ssl&",
response_type=code"
)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.