1 | const union = require('../../island-union-sdk');
|
2 |
|
3 | const client = new union.pinduoduo.Client({
|
4 | appKey: '********************************',
|
5 | secretKey: '********************************'
|
6 | });
|
7 |
|
8 | client.execute('pdd.ddk.goods.detail', { goods_sign: 'E9b2xfbV6gdlVXSRwfjbizJe7UujqtpJyg_JQxlFzlDxm', pid: '********_*********' }).then(result => {
|
9 | const goods = result.goods_details[0];
|
10 | console.log(`[*] 商品名称: ${goods.goods_name}`);
|
11 | console.log(`[*] 商品封面: ${goods.goods_image_url}`);
|
12 | console.log(`[*] 商品价格: ${goods.min_group_price / 100}`);
|
13 | }); |
\ | No newline at end of file |