qrs-interact
v6.3.1
Published
A small javascript library to interact with the Qlik Sense Repository Service
Downloads
104
Keywords
Readme
Status
qrs-interact
QRS Interact is a simple javascript library that allows users to send queries to the Qlik Sense Repository Service.
Getting Started
For more information and advanced usage, please reference the wiki.
Installing
npm install qrs-interact
Usage
To use the qrs-interact module, first you must create a new instance.
var instance = new qrsInteract('<someHostname>');
Once you have initialized an instance, GET, POST, PUT, and DELETE all return promises. They can be used as follows.
instance.Get('<somePath>')
.then(function(result)
{
// do some work
})
.catch(function(error)
{
// catch the error
});
Example
var qrsInteract = require('qrs-interact');
var instance1 = new qrsInteract("abc.qlik.com");
instance1.Get('about')
.then(function(result)
{
console.log(result);
})
.catch(function(error)
{
console.log(error);
});