1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "request": {
9 "request_type": "compatibility_check",
10 "printer": {
11 "manufacturer": "Zebra",
12 "model": "ZD421d",
13 "print_method": "direct_thermal",
14 "max_media_width": {
15 "value": 108,
16 "unit": "mm",
17 },
18 "max_roll_diameter": {
19 "value": 127,
20 "unit": "mm",
21 },
22 "supported_core_sizes": [
23 {
24 "value": 12.7,
25 "unit": "mm",
26 },
27 {
28 "value": 25.4,
29 "unit": "mm",
30 },
31 ],
32 "supported_sensor_types": [
33 "gap",
34 "black_mark",
35 "continuous",
36 "notched",
37 ],
38 },
39 "label": {
40 "sku": "EXAMPLE-LABEL-001",
41 "manufacturer": "Example Label Manufacturer",
42 "width": {
43 "value": 101.6,
44 "unit": "mm",
45 },
46 "height": {
47 "value": 152.4,
48 "unit": "mm",
49 },
50 "material": "Paper",
51 "print_method": "direct_thermal",
52 "adhesive": "Permanent acrylic",
53 "core_size": {
54 "value": 25.4,
55 "unit": "mm",
56 },
57 "roll_diameter": {
58 "value": 127,
59 "unit": "mm",
60 },
61 "sensor_type": "gap",
62 },
63 "application": {
64 "environment": "indoor",
65 "duration": "permanent",
66 },
67 "submitted_evidence": [],
68 } }
69
70
71run = client.actor("denning218/kynexis-1").call(run_input=run_input)
72
73
74print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
75for item in client.dataset(run.default_dataset_id).iterate_items():
76 print(item)
77
78