1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "csvText": `Title,URL handle,SKU,Price
12Example shirt,example-shirt,00123,19.95
13Example cap,example-cap,00123,12.95`,
14 "mode": "create"
15};
16
17
18const run = await client.actor("myrakibo/shopify-csv-import-audit").call(input);
19
20
21console.log('Results from dataset');
22console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
23const { items } = await client.dataset(run.defaultDatasetId).listItems();
24items.forEach((item) => {
25 console.dir(item);
26});
27
28