0.0.5 • Published 6 years ago
bolt-client v0.0.5
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.