@thelllabs/winehaus-sdk
v0.0.38
Published
Winehaus SDK
Readme
Winehaus SDK
Installation
Install the package with npm
npm i @thelllabs/winehaus-sdk --saveUse the package in the project
import 'dotenv/config'
import { WinehausSDK } from '@thelllabs/winehaus-sdk'
async function main() {
const sdk = new WinehausSDK({
baseURL: 'http://localhost:3000',
autoRefresh: true
});
await sdk.authenticate({ email: '[email protected]', password: 'P@ssw0rd' })
}
main().then(() => {
console.log('script running with success')
})Generate Api from Swagger
SWAGGER_JSON_PATH=http://localhost:3000/docs-json npm run gen:api
