gm_profile: Get info on current gmail profile

View source: R/gm_auth.R

gm_profileR Documentation

Get info on current gmail profile

Description

Reveals information about the profile associated with the current token.

Usage

gm_profile(user_id = "me", verbose = TRUE)

Arguments

user_id

gmail user_id to access, special value of 'me' indicates the authenticated user.

verbose

Logical, indicating whether to print informative messages (default TRUE).

Value

A list of class gmail_profile.

See Also

Wraps the getProfile endpoint:

Examples

## Not run: 
gm_profile()

## more info is returned than is printed
prof <- gm_profile()
prof[["historyId"]]

## End(Not run)

gmailr documentation built on July 9, 2023, 5:07 p.m.