This SDK is a wrapper for the JBLicense Web API. No need to fight with long lines of web requests anymore!
npm install jblicense-node-sdk --save
- You'll need to grab yourself an API Key here: https://dev.justinback.com/dashboard/apikeys.php
- Install this package
- Read through the docs: https://dev.justinback.com/dashboard/jblicense_docs.php
- See Examples or Usages
const JBLicense = require('jblicense-node-sdk');
const JBLicense_Configuration = new JBLicense.Configuration({
"endpoint": "https://api.justinback.com/ILicense/",
"apikey": "YOUR_API_KEY" // Cannot be blank!
});
const Endpoint = new JBLicense.Endpoint.GrantLicense(JBLicense_Configuration);
Endpoint.post({ "product": 4543, "customer": 225235})
.then(function (val) {
console.log(val);
// Success!
}).catch(function (err) {
// This contains a lot of useful information!
console.error(err.message);
});