1const aa = new VideosApi(
2 new Configuration({
3 accessToken: process.env.API_KEY,
4 })
5);
6
7const animation =
8 await aa.createVideos({
9 template_id: "ffffa434-0000-0000-b290-0b30ad82d5d3",
10 version: 2,
11 pages: [
12 {
13 number: 1,
14 background_color: "#00ffffaa",
15 page_audio_url: "https://example.com/audio.mp3",
16 layers: [
17 {
18 name: "title",
19 text: "text_title",
20 },
21 {
22 name: "sub_heading",
23 text: "SOME_TEXT",
24 },
25 {
26 name: "main_image",
27 source_url: "https://example.com/img.png",
28 },
29 ],
30 },
31 ],
32 format: "mp4",
33 fps: "30",
34 metadata: "external_id",
35 });
1const aa = new VideosApi(
2 new Configuration({
3 accessToken: process.env.API_KEY,
4 })
5);
6
7const animation =
8 await aa.createVideos({
9 template_id: "ffffa434-0000-0000-b290-0b30ad82d5d3",
10 version: 2,
11 pages: [
12 {
13 number: 1,
14 background_color: "#00ffffaa",
15 page_audio_url: "https://example.com/audio.mp3",
16 layers: [
17 {
18 name: "title",
19 text: "text_title",
20 },
21 {
22 name: "sub_heading",
23 text: "SOME_TEXT",
24 },
25 {
26 name: "main_image",
27 source_url: "https://example.com/img.png",
28 },
29 ],
30 },
31 ],
32 format: "mp4",
33 fps: "30",
34 metadata: "external_id",
35 });