Products

Products

Handle Tillhub Products from the v1 Model

Constructor

new Products()

Source:
Example
const Tillhub = require('@tillhub/node-sdk')

const th = new Tillhub({
  credentials: {
    username: 'user@example.com',
    password: '123455'
  }
})

await th.init()
const products = th.products()

const { data, metadata } = await products.getAll()
console.log(data) // [...]

Methods

getAll(queryOrCallbackopt, callbackopt)

Get all products from client account.

Parameters:
Name Type Attributes Description
queryOrCallback Object | function <optional>

query for products with allowed paramaters, or specify an optional callback

callback function <optional>

optional callback. If not specified, this function returns a promise

Source: