0.1.2 • Published 2 years ago

@lntw/fulfil-client v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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();
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago