Back to Top

libraries > Skubana.js

new Skubana(token)

Methods to interact with the Skubana API.

Parameters

Name Type Description
token tokenKey

Secrets names.

Properties

Name Type Description
request Oauth

Authenticated request.

Examples

// Skubana flow.
const Skubana = require('vendor/Skubana.js');
const skubana = new Skubana();
const getResponse = skubana.get('https://api.dev.skubana.com/v1/orders');

Returns

class

Skubana.getOrders([queries={}])

Parameters

Name Type Description
queries={} Object

queries parameters.

Optional

Examples

// Skubana flow.
const Skubana = require('vendor/Skubana.js');
const skubana = new Skubana();
const getResponse = skubana.getOrders();
Mesa.log.info('Get Response: ', getResponse);

Returns

Void

Skubana.getInventory([queries={}])

Parameters

Name Type Description
queries={} Object

queries parameters.

Optional

Examples

// Skubana flow.
const Skubana = require('vendor/Skubana.js');
const skubana = new Skubana();
const getResponse = skubana.getInventory();
Mesa.log.info('Get Response: ', getResponse);

Returns

Void

Skubana.getPurchaseOrders([queries={}])

Parameters

Name Type Description
queries={} Object

queries parameters.

Optional

Examples

// Skubana flow.
const Skubana = require('vendor/Skubana.js');
const skubana = new Skubana();
const getResponse = skubana.getPurchaseOrders();
Mesa.log.info('Get Response: ', getResponse);

Returns

Void