kindly-js

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i kindly-js

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

2.35 kB

Total Files

4

Last publish

Collaborators

  • gunnar2k