Description Usage Arguments Value See Also Examples
Get the logged in user's email and other info
1 | get_user_info(id = "me")
|
id |
ID of the person to get the profile data for. 'me' to get current user. |
A People resource
https://developers.google.com/+/web/api/rest/latest/people#resource-representations
https://developers.google.com/+/web/api/rest/latest/people
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
library(googleAuthR)
library(googleID)
options(googleAuthR.scopes.selected =
c("https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile"))
googleAuthR::gar_auth()
## default is user logged in
user <- get_user_info()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.