Skip to content

blutui/blutui-node

Repository files navigation

Blutui

blutui/blutui-node is the Node.js library for the Blutui API from application written in server-side Javascript.


Installation

Install the package with:

npm install blutui

Configuration

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...')

Usage

const blutui = new Blutui()

blutui.user.get()
blutui.user.email()