1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "plan": {
9 "title": "My first auto edit",
10 "width": 1080,
11 "height": 1920,
12 "fps": 30,
13 "media": [
14 {
15 "file": "shot1.png",
16 "duration": 4,
17 },
18 {
19 "file": "shot2.png",
20 "duration": 4,
21 },
22 ],
23 "script": [
24 {
25 "text": "Welcome to our shop!",
26 "seconds": 4,
27 },
28 {
29 "text": "New items every day",
30 "seconds": 4,
31 },
32 ],
33 "decos": [{
34 "start": 0,
35 "end": 4,
36 "text": "SALE",
37 "style": "gold",
38 "y": 30,
39 }],
40 } }
41
42
43run = client.actor("kotaro-project/fcpxml-auto-edit").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50