This module is a simple wrapper around buscape's lomadee publisher api for node.
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) { ... })
MIT