Generate Trial License
To generate trial license for KnoxConfigure, use the following methods
Example
- class
- function
import { KnoxInstance } from '@redredgroup/samsungknox-api';
const instance = new KnoxInstance({
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});
const generateTrialLicense = await instance.kcLicense.generateTrialLicense({
args: {
licenseType: 'PER_DEVICE_PLUS', // KCLicenseType
},
});
console.log(generateTrialLicense);
import { kcGenerateTrialLicense } from '@redredgroup/samsungknox-api';
const generateTrialLicense = await kcGenerateTrialLicense({
args: {
licenseType: 'PER_DEVICE_PLUS', //KCLicenseType
},
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});
console.log(generateTrialLicense);
Input parameters:
- args: Insert parameters for the profile (required) licenseType
- region: Insert the Knox region. Most of them are EU (case insensitive)
- knoxAccessToken: Your X-KNOX-APITOKEN.
Output:
- Respond with the result of issuing a new trial license.