lomadee-offer
v0.0.3
Published
Simplified version of the API Lomadee to provide its products and offers.
Downloads
2
Maintainers
Readme
lomadee-offer
Simplified version of the API Lomadee to provide its products and offers. Version for NodeJS.
Dependencies
Usage examples
Full example:
var lomadee = require('lomadee-offer');
lomadee({keywords: 'test'})
.id('api key')
.source('source id')
.country('BR')
.limit(5)
.done(function (err, result) {
console.log(JSON.stringify(result));
});
Limit to one result:
var lomadee = require('lomadee-offer');
lomadee({keywords: 'test'})
.id('api key')
.source('source id')
.one()
.done(function (err, result) {
console.log(JSON.stringify(result));
});
Pass in keywords directly
var lomadee = require('lomadee-offer');
lomadee('test')
.id('api key')
.source('source id')
.done(function (err, result) {
console.log(JSON.stringify(result));
});
Add client IP address if calling on someone else's behalf
var lomadee = require('lomadee-offer');
lomadee('test')
.id('api key')
.source('source id')
.client('192.168.1.1')
.done(function (err, result) { ... })
LICENSE
The MIT License (MIT) Copyright (c) 2014 Paulo Vítor Bischof, Based on the "buscape-lookup" of Adam Rudd.