UNPKG

@accounter/hashavshevet-mesh

Version:
17 lines (16 loc) 663 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const dotenv_1 = require("dotenv"); const index_js_1 = require("../index.js"); (0, dotenv_1.config)({ path: [`.env`, `../../.env`] }); const test = async () => { const token = process.env['HASHAVSHEVET_AUTH_TOKEN']; const key = process.env['HASHAVSHEVET_KEY']; const url = process.env['HASHAVSHEVET_URL']; const { sdk } = await (0, index_js_1.init)(token, key, url); const res = await sdk.getSortCodes_query(); console.log(JSON.stringify(res, null, 2)); const res2 = await sdk.getCompanies_query(); console.log(JSON.stringify(res2, null, 2)); }; test();