1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "claims": [
12 {
13 "id": "homepage-status",
14 "type": "url",
15 "url": "https://example.com/",
16 "expectedStatus": 200
17 },
18 {
19 "id": "inline-hello",
20 "type": "file",
21 "contentBase64": "aGVsbG8K",
22 "expectedSha256": "5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03"
23 },
24 {
25 "id": "laptop-file",
26 "type": "file",
27 "path": "C:/agent/out/report.md",
28 "expectedSha256": "5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03"
29 }
30 ]
31};
32
33
34const run = await client.actor("honestagentkit/agent-receipt-verifier").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44