Package Exports
- license-bb
- license-bb/dist/index.js
- license-bb/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (license-bb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
license-bb
SDK to create license for any project.
📦 Changelog
See CHANGELOG for details.
Install using below command.
$ npm i license-bb@latest
Import Package in JavaScript/NodeJs.
const {License} = require('license-bb');
Import Package in TypeScript.
import { License } from "license-bb";
At the time of initialization 'License Key' is required, This product code is auto generated code from BBLicense when you add any new product. BBLicense
- When it load it will take your system info for security purpose and for License purpose.
- Below functions to access the functionality
#List of Functions
| Function Name | Parameters | Example |
|---|---|---|
License.init() |
base_Url: String license_Key: String clientData: Object |
base_Url:'license_Key: 'XXXX-XXXXX-XXXX-XXX', clientData: {email:required*,phone:required*,userName:required*,orgId:required*,orgName:required*, assignType: "default"serverNameAlias:required*} |
License.getFeatures() |
org_Id: String featureName: String | String[] |
org_Id:'UniqueId',featureName: 'users' OR featureName: ['users','teams'] OR featureName: 'all' |
License.updateLicense() |
license_Key: String org_Id: String assignType:String |
license_Key: 'XXXX-XXXXX-XXXX-XXX',org_Id: 'UniqueId'assignType:'update' |
License.sync() |
license_Key: String org_Id: String |
license_Key: 'XXXX-XXXXX-XXXX-XXX',org_Id: 'UniqueId' |
License.getLicenseDetails() |
org_Id: String |
org_Id: 'UniqueId' |
| Key | value | description/purpose |
|---|---|---|
code |
1 | Success response from SDK |
| -1 | Fail/Invalid/Error response from SDK | |
| -2 | Request fail with licensing server (SDK communicating with license server.) | |
data |
Object | On success you will get data object but incase of features you will get value instead of object. |
result |
String | Message based on different response code. |