This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable 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. |