gm_scopes function

Produce scopes specific to the Gmail API

Produce scopes specific to the Gmail API

When called with no arguments, gm_scopes() returns a named character vector of scopes associated with the Gmail API. If gm_scopes(scopes =) is given, an abbreviated entry such as "gmail.readonly" is expanded to a full scope ("https://www.googleapis.com/auth/gmail.readonly" in this case). Unrecognized scopes are passed through unchanged.

gm_scopes(scopes = NULL)

Arguments

Returns

A character vector of scopes.

Examples

gm_scopes("full") gm_scopes("gmail.readonly") gm_scopes()

See Also

https://developers.google.com/gmail/api/auth/scopes for details on the permissions for each scope.

Other auth functions: gm_auth_configure(), gm_auth(), gm_deauth(), gmailr-configuration

  • Maintainer: Jennifer Bryan
  • License: MIT + file LICENSE
  • Last published: 2023-06-30