Skip to content

How to use the NetLicensingClient-javascript library with node.js #100

Closed Answered by r-brown
r-brown asked this question in Questions
Discussion options

You must be logged in to vote

Please find below some examples, how to use NetLicensing JavaScript client library with node.js.

Create authentication context for the NetLicensing RESTful API

var client = require('netlicensing-client');

//create Basic Auth context
var context = new client.Context()
    .setUsername('YOUR_NETLICENSING_USERNAME')
    .setPassword('YOUR_NETLICENSING_PASSWORD')
    .setSecurityMode(NetLicensing.Constants.BASIC_AUTHENTICATION);
// ... or ...
//create APIKey auth context
var context = new NetLicensing.Context()
    .setApiKey("YOUR_NETLICENSING_API_KEY")
    .setSecurityMode(NetLicensing.Context.APIKEY_IDENTIFICATION);

//use NetLicensing RESTful API - https://www.labs64.de/confluence/x/pwCo
v…

Replies: 1 comment

Comment options

r-brown
Dec 16, 2020
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by r-brown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
1 participant
Converted from issue

This discussion was converted from issue #22 on October 29, 2023 22:22.