HERE Workspace credentials are required in order to use the Data SDK for Python. You can provide your credentials using any of the following methods:
Place the credentials file into:
The HERE platform generated app credentials should look similar to the example below:
here.user.id = <example_here> here.client.id = <example_here> here.access.key.id = <example_here> here.access.key.secret = <example_here> here.token.endpoint.url = <example_here>
For additional information about authentication credentials, see the Identity & Access Management Guide.
You can override default credentials by assigning values to the following environment variables:
HERE_USER_ID HERE_CLIENT_ID HERE_ACCESS_KEY_ID HERE_ACCESS_KEY_SECRET HERE_TOKEN_ENDPOINT_URL
HERE_TOKEN_ENDPOINT_URL is optional.
platform_cred = PlatformCredentials.from_env()
You can specify any credentials file as an alternative to that found in
.here/credentials.properties. An error is generated if there is no file present at the path, or if the file is not properly formatted.
platform_cred = PlatformCredentials.from_credentials_file(“<Path_to_file>”) platform_obj = Platform(platform_cred)