get_user_info {debrowser} | R Documentation |
Get the logged in user's email and other info
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
## Not run: 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)