1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "slides": [
12 {
13 "kicker": "PLAYBOOK",
14 "title": "5 habits that quietly compound",
15 "body": "None of these take more than 10 minutes."
16 },
17 {
18 "title": "Ship before you're ready",
19 "body": "Perfect is a form of procrastination. Version one just has to exist."
20 },
21 {
22 "title": "Write it down or lose it",
23 "body": "Your brain is for having ideas, not storing them."
24 },
25 {
26 "title": "Default to async",
27 "body": "Every meeting that could've been a message costs you a deep-work block."
28 },
29 {
30 "title": "Want the full system?",
31 "body": "Follow for a new playbook every week."
32 }
33 ]
34};
35
36
37const run = await client.actor("abidchaudhry/linkedin-carousel-generator").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47