get_user_info: Get the logged in user's email and other info

Description Usage Arguments Value See Also Examples

Description

Get the logged in user's email and other info

Usage

1
get_user_info(id = "me")

Arguments

id

ID of the person to get the profile data for. 'me' to get current user.

Value

A People resource

https://developers.google.com/+/web/api/rest/latest/people#resource-representations

See Also

https://developers.google.com/+/web/api/rest/latest/people

Examples

 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)

MarkEdmondson1234/googleID documentation built on May 7, 2019, 3:19 p.m.