SDK to create license for any project.
$ npm i license-bb@latest
const {License} = require('license-bb');
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
#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. |