@w3block/sdk-directory
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

W3block directory SDK

Installation

Install the package with npm

npm i @w3block/sdk-directory --save

Use the package in the project

import 'dotenv/config'
import { W3blockIdSDK } from '@w3block/sdk-id'
import { W3blockDirectorySDK } from '@w3block/sdk-directory'

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 W3blockDirectorySDK({
    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

Dependents (0)

Package Sidebar

Install

npm i @w3block/sdk-directory

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

211 kB

Total Files

16

Last publish

Collaborators

  • w3block