Skip to content

An API client library for NetSuite RESTlets.

Notifications You must be signed in to change notification settings

nearform/netsuite-restlet-api

Repository files navigation

CI

NetSuite RESTlet API

A JavaScript API client library for NetSuite RESTlets.

Installation

npm i netsuite-restlet-api

Usage

The package is available to be consumed via both CommonJS and ESM modules. It exposes a single class named NetSuiteClient where a configuration has to be passed. Then you can invoke get method on the resulting object to fetch data from NetSuite restlet.

import { NetSuiteClient } from 'netsuite-restlet-api'

const client = new NetSuiteClient({
  certificateId: 'your-certificate-id',
  clientId: 'your-client-id',
  tokenUrl: 'https://your-token-url',
  privateKey: 'your-private-key'
})

const data = await client.get('https://your-restlet-url')

banner

About

An API client library for NetSuite RESTlets.

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •