0.0.5 • Published 6 years ago

bolt-client v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Lightning In A Bot Node.js client

Installing

$ [sudo] npm install bolt-client

Requirements

  • Node version >= 4

Documentation

Usage:

const BoltClient = require('bolt-client');

...

var boltClient = new BoltClient();

boltClient.nlp.analyze("Some query to be analyzed", "8123-d2-d31r-df13fd", false)
.then(bodyOfRequest => {
  // do something with the request body
})
.catch(err => {
  // do something with error
  // usualyl will only result in a rejected Promise if the response is not 200
});

Notes:

  • All endpoint methods return a native promise.
0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago