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"
)