SDKs
node.js SDK

License API

26min

Provides a direct interface to the LicenseSpring API. The LicenseAPI class encapsulates API calls, input checks, authentication and signature verification. Typescript definitions are provided for the arguments and return types of the class methods.

To import the LicenseAPI class use:

JS


Creating an instance

JS


The constructor takes the a single argument of the following type:

TypeScript


API methods

For type declarations see Type Declarations.

Hardware ID

Generates a Hardware ID. This value is required for various API method calls.

If the optional argument is not provided, it defaults to the value set in the configuration object provided when instantiating the LicensespringAPI object. If no value was provided in the config object, it defaults to 0 (the default Hardware ID method).

TypeScript


Check License

TypeScript


Activate License Online

TypeScript


Deactivate License Online

TypeScript


Activate License Offline

TypeScript


Deactivate License Offline

TypeScript


Get Trial Key

TypeScript


List Licenses for User

TypeScript


List License Users for Customer

TypeScript


Check License Feature

TypeScript


Add License Consumption

TypeScript


Add License Feature Consumption

TypeScript


Get Product Details

TypeScript


Get Device Variables

TypeScript


Track Device Variables

TypeScript


Borrow Floating License

TypeScript


Release Floating License

TypeScript


Release Floating Feature

TypeScript


Change Password

TypeScript


Get Product Versions

TypeScript


Get Product Installation File

TypeScript


Get Single Sign-On URL

TypeScript


Air-Gapped License Code

TypeScript