troi-library
v1.3.0
Published
API library wrapper to interact with troi
Downloads
70
Readme
troi-library
Interact with troi api v2 without hassle. Originally build by @nfelger.
Setup
npm i troi-library --save
Usage
import TroiApiService from "troi-library";
const troiUrl = "https://<MY_ORG>.troi.software/api/v2/rest";
const troiApi = new TroiApiService(troiUrl, username, password);
await troiApi.initialize();
troiApi.getCalculationPositions().then((pos) => {
// ...
});