gp_api_get_token | R Documentation |
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.
gp_api_get_token(refresh = FALSE, dev = TRUE, verbosity = 0)
get_gp_api_token(refresh = FALSE, dev = TRUE, verbosity = 0)
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 |
invisibly returns the token
get_gp_api_token()
: alias
Other GP API:
gp_api_query()
,
gp_api_query_users()
,
gp_api_unit_delete()
,
gp_api_unit_insert()
,
gp_api_unit_replace()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.