1.1.6 • Published 8 years ago

qlik-request v1.1.6

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

qlik-request

GitHub version npm version NPM monthly downloads Build Status Dependency Status Coverage Status

A set of helper functions to query the Qlik Sense REST endpoints

Author: Loïc Formont
License: MIT Licensed
Example

var qreq = require("qlik-request");

qreq.generateXrfKey(size, chars) ⇒ string

Generates a random Xrf key of a given size within a set of given chars

Kind: static method of qlik-request
Returns: string - the xrf key

ParamTypeDefaultDescription
sizeint16the number of characters of the xrf key
charsstring"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"the characters from which to construct the key

Example

var xrf = qreq.generateXrfkey(8);

qreq.request(options, params) ⇒ Promise

Makes a request on a Qlik Sense API endpoint defined in the options object, posting the params object

Kind: static method of qlik-request
Returns: Promise - a promise resolving to the response to the request

ParamTypeDescription
optionsoptionsthe options to connect to the API endpoint
paramsObjectthe parameters to post to the API endpoint

Example

qreq.request({
     restUri: 'https://10.76.224.72:4243/qps/ticket',
     pfx: pfx,
     passPhrase: ''
}, {
     'UserId': 'qlikservice',
     'UserDirectory': '2008R2-0',
     'Attributes': []
}).then(function(retVal) {
     console.log(retVal);
});
1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago