1 | const uuid = require('uuid');
|
2 | const union = require('../../island-union-sdk');
|
3 |
|
4 | const client = new union.vip.Client({
|
5 | appKey: '********',
|
6 | secretKey: '********************************'
|
7 | });
|
8 |
|
9 | client.execute('com.vip.adp.api.open.service.UnionGoodsService', '1.0.0', 'getByGoodsIdsV2', { request: { goodsIds: ['6920036335061544006'], requestId: uuid.v4() } }).then(result => {
|
10 | const goods = result[0];
|
11 | console.log(`[*] 商品名称: ${goods.goodsName}`);
|
12 | console.log(`[*] 商品封面: ${goods.goodsMainPicture}`);
|
13 | console.log(`[*] 商品价格: ${goods.vipPrice}`);
|
14 | }); |
\ | No newline at end of file |