Skip to content

Instantly share code, notes, and snippets.

@fvdm
Created January 27, 2016 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fvdm/dbc67d8cf228fb486f2a to your computer and use it in GitHub Desktop.
Save fvdm/dbc67d8cf228fb486f2a to your computer and use it in GitHub Desktop.
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