Skip to main content

Generate Trial License

To generate trial license for KnoxConfigure, use the following methods

Example

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);

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.