Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Icecat - Demo
node v4.9.1
version:
2.0.0
endpoint
share
tweet
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