0.1.9 • Published 1 year ago

@w3block/sdk-key v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

W3block Key SDK

Installation

Create or edit the .npmrc file and enter the GitHub registry address

@tropixinc:registry=https://npm.pkg.github.com/tropixinc

Install the package with npm

npm install @w3block/sdk-key --save

Use the package in the project

import 'dotenv/config'
import { W3blockKeySDK } from '@tropixinc/w3block-key-sdk'

async function main() {
  const sdk = new W3blockKeySDK({
    credential: {
      authToken: 'string';
      refreshToken: 'string';
      tenantId: 'string';
    },
    baseURL: 'http://localhost:6001',
    autoRefresh: false
  });
}

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

Generate Api from Swagger

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

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago