@lntw/fulfil-client
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Fulfil.io API Client


A node package for the Fulfil.io API written in Typescript.

Installation

npm i @lntw/fulfil-client

Quickstart

import { Client } from 'fulfil-client'

CLIENT = new Client('<subdomain>', '<api key>')

PRODUCT = Client.model('product.product')

const getProduct = async () => {
  try {
    const products = await PRODUCT.find({
      fields: ['id', 'code'],
      filter: [
        ['code', 'ilike', '%iphone%']
      ]
    })
  } catch (e) {
    console.error(e)
  }
}

getProduct();

Package Sidebar

Install

npm i @lntw/fulfil-client

Weekly Downloads

2

Version

0.1.2

License

ISC

Unpacked Size

15.1 kB

Total Files

28

Last publish

Collaborators

  • mfarwell