netsuite-integration-library
v1.0.1
Published
This is library simplifies and retrieving and updating records in NetSuite. <br/>
Readme
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.gitUsage:
import netsuite from 'netsuite-wrapper-api';
netsuite.getCustomers().then(customers => {
console.log(customers)
});Potential Errors
- If you are getting a 401 error, it is probably because you have the wrong value for NETSUITE_SUBDOMAIN or NETSUITE_ACCOUNT_ID.
