1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "calendarName": "Album release plan",
12 "events": [
13 {
14 "title": "Finish demo recordings",
15 "date": "2027-01-29",
16 "description": "All songs recorded as rough demos"
17 },
18 {
19 "title": "Mixing done",
20 "date": "2027-03-05"
21 },
22 {
23 "title": "Album release day",
24 "date": "2027-03-31",
25 "time": "10:00",
26 "description": "Publish on all stores and announce"
27 }
28 ],
29 "remindDaysBefore": [
30 7,
31 1
32 ]
33};
34
35
36const run = await client.actor("kotaro-project/reminder-calendar-maker").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46