kindly-js
v1.0.4
Published
A simple backend wrapper for node applications integrating with Kindly
Readme
Kindly JS
A simple JavaScript library for applications integrating with Kindly.
Just install it with npm:
npm install kindly-js --save
Request a greeting-message:
var kindly = require('kindly-js');
kindly.API_KEY = "YOUR API KEY";
kindly.greet({
user_id: "abc123", // User/chat identifier
});Ask the bot questions:
var kindly = require('kindly-js');
kindly.API_KEY = "YOUR API KEY";
kindly.send({
user_id: "abc123", // User/chat identifier
message: "Message to bot", // What to ask bot
});...and we'll POST the reply to the webhook you specified when getting started setting up the application.
For more, check out the official Kindly documentation.
