Created
January 27, 2016 07:22
-
-
Save fvdm/dbc67d8cf228fb486f2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bol = require ('bolcom') ('apikey'); | |
// Find something | |
bol.catalog.search ({ q: 'node.js' }, function (err, data) { | |
if (err) { | |
console.log ('Search failed'); | |
console.log (err); | |
} else { | |
for (var i = 0; i < data.products.length; i++) { | |
var product = data.products [i]; | |
console.log (product.title + ' - €' + product.offerData.offers [0] .price); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment