License Manager
LicenseManager
const { LicenseManager } = require('@licensespring/node-sdk');const licenseManager = new LicenseManager({
apiKey: '12345678-4bfe-4e3a-8737-757004d6294c',
sharedKey: 'eYuHrlajvIVTiSFIXpxpKhw78f4Ewy-00-12345678',
appName: 'js-sdk-test-1',
appVersion: '0.0.1',
productCode: 'lkp',
/** NOTE: the following properties are set to their default values by the SDK and can be overriden manually: */
// apiPath: 'http://api.dev.licensespring.com/api/v4',
// publicKey: '...',
});{
/** your Licensespring API key */
apiKey: string,
/** your Licensespring API Shared key **/
sharedKey: string,
/** custom name for your application */
appName: string,
/** custom version string for your application */
appVersion: string,
/** your product short code */
productCode: string,
/** your Air Gap Activation key (optional) */
airGapKey?: string,
/** override for License API url (default is https://api.licensespring.com/api/v4/) **/
apiPath?: string,
/** override for License API public key (default is pub key for api.licensespring.com) **/
publicKey?: string,
/** override for License File filename (default is "License") */
filename?: string,
/** override for License File path (default is current directory) */
filePath?: string,
/** override for License File encryption key */
fileKey?: string,
/** override for license grace period duration in hours (default is 24) */
gracePeriod?: number,
/** override for License File guard file (default is false) */
isGuardFileEnabled?: boolean,
/** override for Hardware ID calculation method (default is 0, for more info see "Hardware ID" section) */
hardwareIDMethod?: number,
/** a custom provided Hardware ID (overrides HWID calculation) */
hardwareID?: string,
}Methods
Check License
Activate License Online
Deactivate License Online
Activate License Offline
Deactivate License Offline
Get Trial Key
List Licenses for User
List License Users for Customer
Check License Feature
Add License Consumption
Add Feature Consumption
Get Product Details
Get Device Variables
Track Device Variables
Borrow Floating License
Release Floating License
Release Floating Feature
Change Password
Get Product Versions
Get Product Installation File
Get Single Sign-On URL
Air-Gapped Licenses
License Utility Methods
License File
Last updated
Was this helpful?