@w3block/sdk-key
v0.1.9
Published
W3block KEY SDK
Downloads
35
Readme
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