New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

qlik-request

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qlik-request

helper functions to query the Qlik Sense REST endpoints

latest
Source
npmnpm
Version
1.1.6
Version published
Maintainers
1
Created
Source

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
[size]int16the number of characters of the xrf key
[chars]string"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
[params]Objectthe 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);
});

FAQs

Package last updated on 07 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts