gp_api_get_token: Get a JWT token for GP API

gp_api_get_tokenR Documentation

Get a JWT token for GP API

Description

Will get a token from the R environment if available and test it with an empty query to GP API. If missing or expired, will attempt to renew through Google Oauth flow.

Usage

gp_api_get_token(refresh = FALSE, dev = TRUE, verbosity = 0)

get_gp_api_token(refresh = FALSE, dev = TRUE, verbosity = 0)

Arguments

refresh

do you want to re-authenticate? default=TRUE

dev

logical; if TRUE (default), gets catalog from the dev gp-catalog. Otherwise, from the prod catalog.

verbosity

passed to httr2::req_perform(); default=0

Value

invisibly returns the token

Functions

  • get_gp_api_token(): alias

See Also

Other GP API: gp_api_query(), gp_api_query_users(), gp_api_unit_delete(), gp_api_unit_insert(), gp_api_unit_replace()


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.