buscape-lookup
v0.8.0
Published
A wrapper around buscape's lomadee api
Downloads
11
Maintainers
Readme
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