1.0.5 • Published 6 years ago

bolaget.io v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Build Status

bolaget.io-sdk-js

JS SDK for (https://bolaget.io)

Versions

This SDK adheres to Semantic Versioning. And it will follow bolaget.io versions.

VersionLinked to
^1.0.0https://bolaget.io/v1

Dependencies

Node.js >= 7.6.0

Install

npm install bolaget.io

Usage

import { products, product, stores, store } from 'bolaget.io'

Get products

Query params available here bolaget.io

const limit = 5
const koscher = true
try {
  const data = await products({ limit, koscher })
} catch (e) {
  // error handling
}

Get product

try {
  const data = await product("8617101")
} catch (e) {
  // error handling
}

Get stores

Query params available here bolaget.io

const limit = 2
try {
  const data = await stores({ limit })
} catch (e) {
  // error handling
}

Get store

try {
  const data = await store("0146")
} catch (e) {
  // error handling
}