1 | const union = require('../../island-union-sdk');
|
2 |
|
3 | const client = new union.jd.Client({
|
4 | appKey: '********************************',
|
5 | secretKey: '********************************'
|
6 | });
|
7 |
|
8 | client.execute('jd.union.open.goods.promotiongoodsinfo.query', { skuIds: '100052255527' }).then(result => {
|
9 | const goods = JSON.parse(result.queryResult).data[0];
|
10 | console.log(`[*] 商品名称: ${goods.goodsName}`);
|
11 | console.log(`[*] 商品封面: ${goods.imgUrl}`);
|
12 | console.log(`[*] 商品价格: ${goods.unitPrice}`);
|
13 | }); |
\ | No newline at end of file |