1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "contractText": `Paste your contract text here...
12
13 Example:
14 SERVICE AGREEMENT
15
16 This Service Agreement ("Agreement") is entered into as of [DATE] between:
17 - Company A ("Client")
18 - Company B ("Service Provider")
19
20 1. SERVICES
21 Service Provider agrees to provide...
22
23 2. COMPENSATION
24 Client agrees to pay...`
25};
26
27
28const run = await client.actor("contract-fortress/contract-fortress").call(input);
29
30
31console.log('Results from dataset');
32console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33const { items } = await client.dataset(run.defaultDatasetId).listItems();
34items.forEach((item) => {
35 console.dir(item);
36});
37
38