blutui/blutui-node
is the Node.js library for the Blutui API from application written in server-side Javascript.
Install the package with:
npm install blutui
To use the library you must provide an access token, located in the Blutui Agency Console, as an environment variable BLUTUI_ACCESS_TOKEN
:
BLUTUI_ACCESS_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
Or, you can set it on your own:
import Blutui from 'blutui'
const blutui = new Blutui('eyJhbGciOiJIUzI1NiIsInR5...')
const blutui = new Blutui()
blutui.user.get()
blutui.user.email()