1 | const union = require('../../island-union-sdk');
|
2 |
|
3 | const client = new union.taobao.Client({
|
4 | appKey: '********',
|
5 | secretKey: '********************************'
|
6 | });
|
7 |
|
8 | client.execute('taobao.tbk.item.info.get', { num_iids: 'jGDpnGWs0ty0vMKtN52TJte-e5yxZK0CGonBk6Gyczo' }).then(result => {
|
9 | const goods = result.results.n_tbk_item[0];
|
10 | console.log(`[*] 商品名称: ${goods.title}`);
|
11 | console.log(`[*] 商品封面: ${goods.pict_url}`);
|
12 | console.log(`[*] 商品价格: ${goods.reserve_price}`);
|
13 | }); |
\ | No newline at end of file |