unifaun

0.2.0-1 • Public • Published

Unifaun JS

npm version CircleCI Issues

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)
    }
})()

Package Sidebar

Install

npm i unifaun

Weekly Downloads

0

Version

0.2.0-1

License

MIT

Unpacked Size

3.77 kB

Total Files

8

Last publish

Collaborators

  • sleavely