get_user_info {debrowser} | R Documentation

## Get the logged in user's email and other info

### Description

Get the logged in user's email and other info

### Usage

    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

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

[Package debrowser version 1.6.8 Index]