1.0.1 • Published 7 years ago

zanox-lookup v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

node-zanox-lookup

Introduction

This module is a simple wrapper around the zanox product search API. See the documentation for more information

Installation

npm install zanox-lookup

Usage

Full example

const zanox = require('zanox-lookup');

zanox({ keywords: 'test'} )
  .id('<zanox api key>')
  .country('DE')
  .program('33223')
  .price('10..100')
  .searchType('phrase')
  .done(function (err, results) {})

New in version 1.0

  • All settings can be added in the constructor
  • .done() is a promise by default but can also return a callback like before
  • Instead of using keywords the EAN can be passed into the request

Example

const zanox = require('zanox-lookup');

zanox({ id: '<zanox api key>', programs: '1234,9876', ean: '98264839' })
  .program('19283') // add another SINGLE program for whatever reason
  .one(true) // returns one product/object instead of an array of products
  .done()
  .then(res => console.log(res))
  .catch(err => { throw err })

License

MIT

1.0.1

7 years ago

1.0.0

7 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

11 years ago

0.4.4

11 years ago

0.4.3

11 years ago

0.4.2

11 years ago

0.4.1

11 years ago

0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago