1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "barcodes": [{
9 "data": "https://example.com",
10 "type": "qrcode",
11 "format": "png",
12 "width": 300,
13 "height": 300,
14 "scale": 3,
15 "foregroundColor": "#000000",
16 "backgroundColor": "#FFFFFF",
17 "includeText": True,
18 "textSize": 12,
19 "rotate": "N",
20 }] }
21
22
23run = client.actor("craftheon/barcode-generator-api").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30