0.0.4 • Published 8 years ago

khepri-connector v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

Khepri-Connector will let you access easily with the Khepri technology It ease the access of the ask / success / reset / dimensions method

In order to use:

npm install khepri-connector

Method Available

  • init
  • ask
  • success
  • reset

Write a test File:

#!/usr/bin/node

"use strict";

var khepriObj = require('khepri-connector');

var urlKhepri = 'http://providedUrl.khepri';

var apiKey = 'thekeyprovided';

var instanceId = 4242;

var test = false;

khepriObj.init(urlKhepri, apiKey);

khepriObj.ask(instanceId, "Zlatan", "Zidane", 'Platini', 'Pogba', false, function (answer) { console.log(answer); test = answer } );

# communicating a success

khepriObj.success(instanceId, test.solution, false, function (chk) { console.log('Result du success');console.log(chk); } );

# reset the instance

khepriObj.reset(instanceId,function (chk) { console.log('Result du reset');console.log(chk); } );

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago