The liara sdk, with TypeScript/JavaScript languages for client that utilizes fetch-api.
git clone https://github.com/liara-cloud/node-sdk.git
windows:
npm run config:cmd
Linux/Mac:
npm run config:bash
npm install
npm run prepare
To publish the package, first increase the version of the package in the package.json file, then publish the package with the following command:
npm publish
npm install @liara/sdk
import liaraSDK from '@liara/sdk';
const { paas, dbaas, dns, mail, objectStorage } = liaraSDK('your-api-token');
paas.AppsApi.getApps()
.then((res) => console.log(res))
.catch((err) => console.log(err));
const { default: liaraSDK } = require('@liara/sdk');
const { paas, dbaas, dns, mail, objectStorage } = liaraSDK('your-api-token');
paas.AppsApi.getApps()
.then((res) => console.log(res))
.catch((err) => console.log(err));