gm_token: Produce configured token

Description Usage Value Examples

View source: R/gm-auth.R

Description

For internal use or for those programming around the Gmail API. Returns a token pre-processed with httr::config(). Most users do not need to handle tokens "by hand" or, even if they need some control, gm_auth() is what they need. If there is no current token, gm_auth() is called to either load from cache or initiate OAuth2.0 flow. If auth has been deactivated via gm_deauth(), gm_token() returns NULL.

Usage

1

Value

A request object (an S3 class provided by httr).

Examples

1
2
3
4
## Not run: 
gm_token()

## End(Not run)

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