gs4_scopes function

Produce scopes specific to the Sheets API

Produce scopes specific to the Sheets API

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

gs4_scopes(scopes = NULL)

Arguments

Returns

A character vector of scopes.

Examples

gs4_scopes("spreadsheets") gs4_scopes("spreadsheets.readonly") gs4_scopes("drive") gs4_scopes()

See Also

https://developers.google.com/identity/protocols/oauth2/scopes#sheets for details on the permissions for each scope.

Other auth functions: gs4_auth_configure(), gs4_auth(), gs4_deauth()