How to create platform client settings
You need to create the OlpClientSettings object to publish data and get catalog and partition metadata, as well as layer data from the HERE platform.
To create the OlpClientSettings object:
-
Authenticate to the HERE platform.
-
Import the
OlpClientSettingsclass from theolp-sdk-coremodule.import { OlpClientSettings } from "@here/olp-sdk-core"; -
Create the
olpClientSettingsinstance using the environment in which you work and thegetTokenmethod.const olpClientSettings = new OlpClientSettings({ environment: "here | here-dev | here-cn | here-cn-dev | http://YourLocalEnvironment", getToken: () => userAuth.getToken() });
Updated 10 days ago