You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Justin René Back 08485a350e Fixed CustomerBalance.js Endpoint§ 10 months ago
src Fixed CustomerBalance.js Endpoint§ 10 months ago
tests Init Commit 10 months ago
.gitattributes Init Commit 10 months ago
.gitignore Fixed CustomerBalance.js Endpoint§ 10 months ago
README.md Init Commit 10 months ago
package-lock.json Init Commit 10 months ago
package.json Fixed CustomerBalance.js Endpoint§ 10 months ago

README.md

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