1.0.1 • Published 5 years ago

jblicense-node-sdk v1.0.1

Weekly downloads
7
License
-
Repository
-
Last release
5 years ago

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);
    });
1.0.1

5 years ago

1.0.0

5 years ago