@salable/node-sdk
TypeScript icon, indicating that this package has built-in type declarations

3.3.0 • Public • Published

Salable SDK for JavaScript

The Salable SDK enables you to easily interact with the Salable ecosystem, accessing the Salable API, and other toolkit methods.

Getting Started

Let’s walk through setting up a project that uses the Salable API Class from the SDK and makes a simple call to retrieve all licenses. The following steps use npm as an example. These steps assume you have Node.js and npm already installed.

  1. Create a new Node.js project.

  2. Inside of the project, run: npm install @salable/node-sdk. Adding packages results in update in lock file, yarn.lock or package-lock.json. You should commit your lock file along with your code to avoid potential breaking changes.

  3. Create a new file called index.js, Instantiate a Salable Class and send a request.

import { Salable } from '@salable/node-sdk';

const salable = new Salable('{{API_KEY}}');

const check = await salable.licenses.check('{{PRODUCT_UUID}}', ['userId_1']);

Readme

Keywords

none

Package Sidebar

Install

npm i @salable/node-sdk

Weekly Downloads

2

Version

3.3.0

License

MIT

Unpacked Size

2 MB

Total Files

31

Last publish

Collaborators

  • orderandchaos_at_work
  • salableapp
  • adaptajay
  • adaptaconer
  • joshokoro
  • sasankg