0.0.21 • Published 2 years ago

@w3block/sdk-commerce v0.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

W3block Commerce SDK

Installation

Install the package with npm

npm i @w3block/sdk-commerce --save

Use the package in the project

import 'dotenv/config'
import { W3blockIdSDK } from '@w3block/sdk-id'
import { W3blockCommerceSDK } from '@w3block/sdk-commerce'

async function main() {
  const idSdk = new W3blockIdSDK({
    credential: {
      email: 'your-email',
      password: 'your-password',
      tenantId: 'your-id',
    },
    baseURL: 'http://localhost:6007',
    autoRefresh: false
  });

  const sdk = new W3blockCommerceSDK({
    idSdk: idSdk,
    baseURL: 'http://localhost:6008',
  });
}

main().then(() => {
  console.log('script running with success')
})

Generate Api from Swagger

SWAGGER_JSON_PATH=http://localhost:6008/sdk-json npm run api

0.0.20

2 years ago

0.0.21

2 years ago

0.0.19

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago