larsha / bolaget.io-sdk-js

JS SDK for bolaget.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Version Linked to
^1.0.0 https://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
}

About

JS SDK for bolaget.io

License:MIT License


Languages

Language:JavaScript 100.0%