@datenkraft/bb-fulfillment-shopify-service-ts-client
Version:
The fulfillment-shopify-service API TS Client enables you to work with the fulfillment-shopify-service API
50 lines (34 loc) • 1.54 kB
Markdown
The fulfillment-shopify-service API TS Client enables you to work with the fulfillment-shopify-service API.
- npm
You can use [npm](https://www.npmjs.com/) to install the package.
```bash
npm install @datenkraft/bb-fulfillment-shopify-service-ts-client
```
The package can be used to communicate with the fulfillment-shopify-service API.
The Client includes functionalities for every endpoint defined in the openapi.json.
The Client is auto-generated with [OpenAPITools](https://openapi-generator.tech/docs/generators/typescript-axios) using an openapi.json file.
```typescript
import { ConfigOptions } from '@datenkraft/bb-base-api-ts-client';
import { FulfillmentShopifyServiceClient } from '@datenkraft/bb-fulfillment-shopify-service-ts-client';
import { XxxApi } from '@datenkraft/bb-fulfillment-shopify-service-ts-client/Generated';
const configOptions: ConfigOptions = {
clientId: 'clientId',
clientSecret: 'clientSecret',
oAuthTokenHost: 'oAuthTokenHost',
tokenTradeInPath: 'tokenTradeInPath',
externalIdToken: 'externalIdToken',
useExternalIdToken: true,
};
FulfillmentShopifyServiceClient.getApiConfig(configOptions).then((config) => {
const XxxApi = new XxxApi(config);
XxxApi.getXxxCollection().then((data) => {});
});
```
This repository is available under the [MIT license](https://opensource.org/licenses/MIT).