This documentation is for an older version of GoodData.
Go to the latest 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. |