1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "baseline_csv": """Handle,Option1 Value,Location,SKU,On hand (current),On hand (new)
10sample-mug,Blue,Main Warehouse,MUG-BLUE,12,
11sample-mug,Red,Main Warehouse,MUG-RED,4,
12""",
13 "proposed_csv": """Handle,Option1 Value,Location,SKU,On hand (current),On hand (new)
14sample-mug,Blue,Main Warehouse,MUG-BLUE,12,15
15sample-mug,Red,Main Warehouse,MUG-RED,4,
16""",
17}
18
19
20run = client.actor("biztoolsus/shopify-inventory-safety-diff").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27