@extendapps/keygen

1.0.16 • Public • Published

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

More Details

Techincal Details

Package Sidebar

Install

npm i @extendapps/keygen

Weekly Downloads

1

Version

1.0.16

License

MIT

Unpacked Size

23.1 kB

Total Files

4

Last publish

Collaborators

  • waldo-extendapps
  • extendappsdarren