1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "payload": {
12 "plan": [
13 {
14 "appId": "12345678",
15 "storefront": "US",
16 "expectedVersion": "2.4.0"
17 },
18 {
19 "appId": "12345678",
20 "storefront": "NL",
21 "expectedVersion": null
22 }
23 ],
24 "observations": [
25 {
26 "appId": "12345678",
27 "storefront": "US",
28 "state": "observed",
29 "version": "2.4.0"
30 },
31 {
32 "appId": "12345678",
33 "storefront": "NL",
34 "state": "not_returned"
35 }
36 ]
37 }
38};
39
40
41const run = await client.actor("manzaritech/ios-release-checker").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51