jblicense-node-sdk
v1.0.1
Published
Easy JBLicense Web API Wrapper for NodeJS, no more fighting with long lines of code.
Downloads
11
Readme
JBLicense-node-sdk
This SDK is a wrapper for the JBLicense Web API. No need to fight with long lines of web requests anymore!
Install
npm install jblicense-node-sdk --save
Getting Started
- 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
Usage
Granting Licenses Example
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);
});