@datenkraft/bb-sku-catalog-api-ts-client
v2.6.6
Published
The sku-catalog API TS Client enables you to work with the sku-catalog API
Downloads
35
Readme
Backbone - sku-catalog API TS Client
Introduction
The sku-catalog API TS Client enables you to work with the sku-catalog API.
Prerequisites
- npm
Installation
You can use npm to install the package.
npm install @datenkraft/bb-sku-catalog-api-ts-client
Using the package
The package can be used to communicate with the sku-catalog API. The Client includes functionalities for every endpoint defined in the openapi.json. The Client is auto-generated with OpenAPITools using an openapi.json file.
Initializing the Client and calling an Endpoint
import { ConfigOptions } from '@datenkraft/bb-base-api-ts-client';
import { SkuCatalogApiClient } from '@datenkraft/bb-sku-catalog-api-ts-client';
import { ShopApi } from '@datenkraft/bb-sku-catalog-api-ts-client/Generated';
const configOptions: ConfigOptions = {
clientId: 'clientId',
clientSecret: 'clientSecret',
oAuthTokenHost: 'oAuthTokenHost',
tokenTradeInPath: 'tokenTradeInPath',
externalIdToken: 'externalIdToken',
useExternalIdToken: true,
};
SkuCatalogApiClient.getApiConfig(configOptions).then((config) => {
const XxxApi = new XxxApi(config);
XxxApi.getXxxCollection().then((data) => {});
});
License
This repository is available under the MIT license.