unifaun
v0.2.0-1
Published
API client for Unifaun APIConnect
Downloads
2
Readme
Unifaun JS
API client for the Unifaun APIConnect REST APIs.
Installation
npm i unifaun
Configuration
At the moment UnifaunJS relies on environment variables for configuration. This will change in an upcoming release.
UNIFAUN_USERNAME
UNIFAUN_PASSWORD
UNIFAUN_BASE_PATH
(Default:https://api.unifaun.com/rs-extapi/v1
)
Usage
UnifaunJS uses got under the hood, so you can use it the same way:
const { client } = require('unifaun')
;(async () => {
try {
const response = await client('/stored-shipments')
console.log(response.body)
} catch (err) {
console.error(err)
}
})()