gm_profile: Get info on current gmail profile

Description Usage Arguments Value See Also Examples

View source: R/gm-auth.R

Description

Reveals information about the profile associated with the current token.

Usage

1
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

1
2
3
4
5
6
7
8
## Not run: 
gm_profile()

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

## End(Not run)

gmailr documentation built on Aug. 23, 2019, 5:06 p.m.