This documentation is for an older version of GoodData.
Go to the latest version of this article.
TokenCredentialsFromEnvVar.
token_from_env_var
token_from_env_var(
env_var_name: str, base64_encode: bool
) ->
str
Retrieves a token from an environment variable.
Parameters
name | type | description |
---|---|---|
env_var_name | str | The name of the environment variable containing the token. |
base64_encode | bool | Whether to base64 encode the token. Defaults to True for backwards compatibility. |
Returns
type | description |
---|---|
str | The token, optionally base64 encoded. |