1.0.1 • Published 2 years ago

netsuite-integration-library v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

NetSuite Integration Library

This is library simplifies and retrieving and updating records in NetSuite.

The library handles authentication by reading the credentials from from the following environmental variables.

  • NETSUITE_ACCOUNT_ID
  • NETSUITE_SUBDOMAIN

DO NOT PUT THE FOLLOWING VALUES DIRECTLY IN YOUR CODE AND NEVER CHECK THEM IN FOR SECURITY REASONS

  • NETSUITE_CONSUMER_KEY
  • NETSUITE_CONSUMER_SECRET
  • NETSUITE_TOKEN
  • NETSUITE_TOKEN_SECRET

Installation:

Note this may require you to enter your Atlassian credentials the first time.

npm install git+https://adlm.nielsen.com/bitbucket/scm/byz/netsuite-wrapper-api.git

Usage:

import netsuite from 'netsuite-wrapper-api';

netsuite.getCustomers().then(customers => {
    console.log(customers)
});

Potential Errors

  1. If you are getting a 401 error, it is probably because you have the wrong value for NETSUITE_SUBDOMAIN or NETSUITE_ACCOUNT_ID.
1.0.1

2 years ago