1 | const union = require('../../island-union-sdk');
|
2 |
|
3 | const client = new union.youzan.Client({
|
4 | appKey: '******************',
|
5 | secretKey: '********************************',
|
6 | grantId: '**********'
|
7 | });
|
8 |
|
9 | client.execute('youzan.yzk.independent.goods.detail.get', '1.0.0', { alias: '361ls6y3xpgm5' }).then(result => {
|
10 | const goods = result;
|
11 | console.log(`[*] 商品名称: ${goods.name}`);
|
12 | console.log(`[*] 商品封面: ${goods.image_list[0].image_url}`);
|
13 | console.log(`[*] 商品价格: ${goods.price / 100}`);
|
14 | }); |
\ | No newline at end of file |