@extendapps/keygen
v1.0.16
Published
A distributable module for KeyGen.sh connectivity using NetSuite API's
Downloads
21
Readme
keygen
A distributable module for keygen.sh
connectivity using NetSuite API's
See https://keygen.sh/ for more details
Installation Instructions
npm install --save-dev @extendapps/keygen
Once installed, you'll need to make this module relative to you code in order to confirm to NetSuite's relative imports
Create a symbolic link
- Navigate to the root folder of you TypeScript source
ln -s ../node_modules/\@extendapps/keygen/
This will create a reference to the keygen folder and allow you to use the appropriate import statement
import {KeyGen, KeyGenCallBack, License, LicenseCallback} from './keygen';
Usage
Create an object that holds you keygen information
const CloudSheet: any = { accountId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', policyId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx', productToken: 'prod-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' };
Create a KeyGen instance
const keyGen: KeyGen = new KeyGen({ accountId: CloudSheet.accountId, token: CloudSheet.productToken });