jblicense-node-sdk

1.0.1 • Public • Published

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

  1. You'll need to grab yourself an API Key here: https://dev.justinback.com/dashboard/apikeys.php
  2. Install this package
  3. Read through the docs: https://dev.justinback.com/dashboard/jblicense_docs.php
  4. 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);
    });

Readme

Keywords

none

Package Sidebar

Install

npm i jblicense-node-sdk

Weekly Downloads

2

Version

1.0.1

License

none

Unpacked Size

48.9 kB

Total Files

35

Last publish

Collaborators

  • justinback