How to use the @here/olp-sdk-dataservice-api.LookupApi.platformAPIList function in @here/olp-sdk-dataservice-api

To help you get started, we’ve selected a few @here/olp-sdk-dataservice-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heremaps / here-olp-sdk-typescript / @here / olp-sdk-dataservice-read / lib / DataStoreContext.ts View on Github external
private async fetchAndCachePlatformApiList(): Promise {
        const apiList = await LookupApi.platformAPIList(
            this.requestBuilder
        ).catch((err: string) =>
            Promise.reject(
                new Error(
                    `Error fetching api list for environment: "${this.environment}".\n${err}`
                )
            )
        );

        this.apiListCache.set(
            this.cacheKeyForPlatformItems,
            apiList as LookupApi.API[]
        );
        return Promise.resolve(apiList as LookupApi.API[]);
    }