0.5.1 • Published 4 years ago

@navoio/warehouse v0.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Navo Warehouse JS Client Actions Status

JavaScript and Node client for accessing Navo Warehouse data.

Install

yarn add @navoio/warehouse
# or
npm install @navoio/warehouse

Authentication

import { NavoClient } from '@navoio/warehouse';

// Option 1- pass credentials into constructor
const client = new NavoClient(apiUrl, 'client-id', 'api-key');

// Option 2- call authorize() manually
const client = new NavoClient(apiUrl);
client.authorize('client-id', 'api-key');

Jobs

Get all active jobs:

const jobs = await client.jobs.getAll();

Get a single job by job id:

const job = client.jobs.get(1);
0.5.1

4 years ago

0.5.0

4 years ago