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