econt-sdk-js
v1.0.3
Published
A JavaScript SDK that aids in using Econt's REST JSON API
Readme
Econt SDK JS
Econt SDK JS is a library that provides you with type-safe functions to access almost the entire Econt JSON API.
The library itself is mostly automatically generated using the documentation of the API, with minimal adjustments.
Installation
npm install econt-sdk-jsyarn add econt-sdk-js
Usage
.env
ECONT_USER=USER
ECONT_PASSWORD=PASSWORD./lib/econt.ts
import EcontClient from "econt-sdk-js"
export const econtClient = new EcontClient(false, process.env.ECONT_USER, process.env.ECONT_PASSWORD)Example:
import { econtClient } from "./lib/econt.ts"
instance.nomenclatures.getCountries().then((countries) => {
console.log(countries.countries)
})Documentation
Pretty much all you need to know is included above.
You can see the Econt API Reference here.
And you can find the Econt API docs here.
