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.
TokenCredentialsFromFile.
token_from_file
token_from_file(file_path: Union[str, Path], base64_encode: bool) -> str
Reads a token from a file and optionally base64 encodes it.
Parameters
| name | type | description |
|---|---|---|
| file_path | Union[str, Path] | The path to the file containing the token. |
| base64_encode | bool | Whether to base64 encode the token. Defaults to True. |
Returns
| type | description |
|---|---|
| str | The token, optionally base64 encoded. |