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

nephantes/debrowser_bioconductor_release documentation built on May 29, 2019, 7:15 a.m.