$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "videos": [
< {
< "id": "cache-demo",
< "title": "Reduce cloud costs with a cache",
< "segments": [
< {
< "start": 0,
< "dur": 2,
< "text": "Welcome back, subscribe before we begin."
< },
< {
< "start": 2,
< "dur": 2,
< "text": "Today we compare a simple cache."
< },
< {
< "start": 4,
< "dur": 10,
< "text": "The cache avoids duplicate network requests. We measure storage and runtime cost for a repeated workload with the same input and compare recorded counters."
< }
< ]
< },
< {
< "id": "zwrot-towaru",
< "title": "Zwrot towaru w sklepie internetowym",
< "text": "Zwrot towaru zaczyna się od numeru zamówienia i daty zakupu. Przygotuj opis produktu oraz potwierdzenie zakupu, potem sprawdź zasady sprzedawcy i zachowaj kopię zgłoszenia. Ten przykład przedstawia dostarczony scenariusz filmu do kontroli redakcyjnej. W dalszej części scenariusza wracamy do numeru zamówienia i sposobu zapisania potwierdzenia. To dane demonstracyjne do przeglądu tekstu."
< },
< {
< "id": "produktvideo",
< "title": "Produktvideo mit klarer Planung",
< "segments": [
< {
< "start": 0,
< "dur": 3,
< "text": "Ein einfacher Trick garantiert immer perfekte Videos."
< },
< {
< "start": 3,
< "dur": 8,
< "text": "Für das Produktvideo planen wir Licht, Ton und drei Aufnahmen. Danach vergleichen wir die Aufnahmen mit der Planung und prüfen die Aussagen im Skript."
< }
< ]
< }
< ],
< "windowSeconds": 3,
< "openingWords": 30,
< "maxItems": 1
<}
<EOF
$curl "https://api.apify.com/v2/actors/danielmichalek~video-hook-analyzer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'