Icecat - Demo

node v4.9.1
version: 2.0.0
endpointsharetweet
Demo for https://www.npmjs.com/package/icecat. To create a Icecat account, go to the Icecat registration page https://icecat.biz/registration/ .
const icecat = require('icecat'); const icecatClient = new icecat('username', 'password'); // Language: en, GTIN: 4948570114344 (GTIN: EAN, UPC or JAN) icecatClient.openCatalog.getProduct('en', '4948570114344').then(function (product) { console.log('Description: ' + product.getLongDescription()); const productImages = product.getImages(); console.log('Product images:'); for (let i in productImages) { console.log(productImages[i].TumbImg); } }).catch(function (reason) { console.error('Error or timeout', reason); });
Loading…

1 comment

  • posted 5 years ago by 5c1b86404702bf0012a7265d
    test

sign in to comment