1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "requests": [
12 "2x10 DF-L No.2 floor joists at 16 in o.c., span 14 ft, 40 psf live, 10 psf dead",
13 "(2) 2x12 header, span 8 ft, 200 plf dead, 300 plf snow",
14 "maximum span of 2x8 Hem-Fir No.2 floor joists, 40 psf live, 10 psf dead",
15 "what size beam, span 16 ft, tributary 12 ft, 40 psf live, 15 psf dead",
16 "4x4 DF-L No.2 post, 8 ft tall, 3000 lb dead, 3500 lb live",
17 "2x6 studs at 16 in o.c., 10 ft tall, 400 plf dead, 600 plf live, wind 25 psf",
18 {
19 "size": "5-1/8 x 18 glulam",
20 "role": "beam",
21 "length": "22 ft",
22 "lineLoads": {
23 "D": 300,
24 "S": 600
25 },
26 "unbraced": "11 ft",
27 "bearing": 4
28 }
29 ]
30};
31
32
33const run = await client.actor("jumblemog/wood-member-calculator").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43