@plasma-platform/service-licenses
v0.5.0
Published
Licenses Service API
Downloads
10
Readme
Full documentation
install:npm i @plasma-platform/service-licenses -S
Short documentation
Table of Contents
LicensesService
Users Micro Service API
Parameters
url
string service url
getLicenseById
Licenses - Get license by id with locale
Examples
Get license by Id
(async () => {
const licenses = new LicensesService('//service-licenses.templatemonsterdev.com/api/v1/');
const licenseData = await licenses.getLicenseById(5);
})();
Returns license license data
getLicensesByIds
Licenses - Get licenses by ids with locale
Examples
Get license by Ids
(async () => {
const licenses = new LicensesService('//service-licenses.templatemonsterdev.com/api/v1/');
const licenseData = await licenses.getLicensesByIds([5,3,4]);
})();
Returns license license data
searchLicenses
Licenses - Search licenses
Parameters
params
object
Examples
Search licenses
(async () => {
const service = new LicensesService(serviceUrl);
const licensesList = await service.searchLicenses(params);
})();
Returns array licenses list