Organization$secret

Organization$secret(name) Secret

Construct a new secret instance that references a secret defined by an organization.

Parameters:

name : str The name of the secret. Secret names are case-sensitive.

Returns:

Secret

Examples

# secrets are case-sensitive
secret <- redivis$organization("demo")$secret("EXTERNAL_API_TOKEN")

# Avoid printing secrets, but rather pass them to other methods as needed
make_http_request("https://example.com/api", auth_token=secret$get_value())

Last updated

Was this helpful?