Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

A simple wrapper around the buscape lomadee publisher api

License

Notifications You must be signed in to change notification settings

marcusalmeida/node-buscape-lookup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buscape-lookup

Introduction

This module is a simple wrapper around buscape's lomadee publisher api for node.

Dependencies

Usage examples

Full example:

var buscape = require('buscape-lookup');

buscape({keywords: 'test'})
  .id('api key')
  .price('120..560')
  .country('BR')
  .limit(5)
  .done(function (err, result) {
    console.log(JSON.stringify(result));
  });

Limit to one result:

var buscape = require('buscape-lookup');

buscape({keywords: 'test'})
  .id('api key')
  .one()
  .done(function (err, result) {
    console.log(JSON.stringify(result));
  });

Pass in keywords directly

var buscape = require('buscape-lookup');

buscape('test')
  .id('api key')
  .done(function (err, result) {
    console.log(JSON.stringify(result));
  });

Add client IP address if calling on someone else's behalf

var buscape = require('buscape-lookup');

buscape('test')
  .id('api key')
  .client('192.168.1.1')
  .done(function (err, result) { ... })

LICENSE

MIT

About

A simple wrapper around the buscape lomadee publisher api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%