1.0.4 • Published 6 years ago

kindly-js v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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.

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago