GET Get Render Status
{{baseUrl}}/render/:id
HEADERS

x-api-key
{{apiKey}}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/render/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/render/:id" {:headers {:x-api-key "{{apiKey}}"}})
require "http/client"

url = "{{baseUrl}}/render/:id"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/render/:id"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/render/:id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api-key", "{{apiKey}}");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/render/:id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "{{apiKey}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/render/:id HTTP/1.1
X-Api-Key: {{apiKey}}
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/render/:id")
  .setHeader("x-api-key", "{{apiKey}}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/render/:id"))
    .header("x-api-key", "{{apiKey}}")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/render/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/render/:id")
  .header("x-api-key", "{{apiKey}}")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/render/:id');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/render/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/render/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/render/:id',
  method: 'GET',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/render/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/render/:id',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/render/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/render/:id');

req.headers({
  'x-api-key': '{{apiKey}}'
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/render/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/render/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/render/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/render/:id" in
let headers = Header.add (Header.init ()) "x-api-key" "{{apiKey}}" in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/render/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/render/:id', [
  'headers' => [
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/render/:id');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/render/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/render/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/render/:id' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = { 'x-api-key': "{{apiKey}}" }

conn.request("GET", "/baseUrl/render/:id", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/render/:id"

headers = {"x-api-key": "{{apiKey}}"}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/render/:id"

response <- VERB("GET", url, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/render/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '{{apiKey}}'

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/render/:id') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/render/:id";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/render/:id \
  --header 'x-api-key: {{apiKey}}'
http GET {{baseUrl}}/render/:id \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method GET \
  --header 'x-api-key: {{apiKey}}' \
  --output-document \
  - {{baseUrl}}/render/:id
import Foundation

let headers = ["x-api-key": "{{apiKey}}"]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/render/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "message": "OK",
  "response": {
    "created": "2020-10-30T09:42:29.446Z",
    "data": {
      "output": {
        "format": "mp4",
        "resolution": "sd"
      },
      "timeline": {
        "background": "#000000",
        "soundtrack": {
          "effect": "fadeInFadeOut",
          "src": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/music.mp3"
        },
        "tracks": [
          {
            "clips": [
              {
                "asset": {
                  "style": "minimal",
                  "text": "Hello World",
                  "type": "title"
                },
                "effect": "slideRight",
                "length": 4,
                "start": 0,
                "transition": {
                  "in": "fade",
                  "out": "fade"
                }
              },
              {
                "asset": {
                  "src": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/my-image.jpg",
                  "type": "image"
                },
                "effect": "zoomIn",
                "filter": "greyscale",
                "length": 4,
                "start": 3
              }
            ]
          },
          {
            "clips": [
              {
                "asset": {
                  "src": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/my-clip-1.mp4",
                  "trim": 10.5,
                  "type": "video"
                },
                "length": 4.5,
                "start": 7
              },
              {
                "asset": {
                  "src": "https://s3-ap-northeast-1.amazonaws.com/my-bucket/my-clip-2.mp4",
                  "type": "video",
                  "volume": 0.5
                },
                "length": 5,
                "start": 11.5,
                "transition": {
                  "out": "wipeLeft"
                }
              }
            ]
          }
        ]
      }
    },
    "id": "2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7",
    "owner": "5ca6hu7s9k",
    "status": "rendering",
    "updated": "2020-10-30T09:42:39.168Z",
    "url": "https://shotstack-api-v1-output.s3-ap-southeast-2.amazonaws.com/5ca6hu7s9k/2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7.mp4"
  },
  "success": true
}
POST Render Asset
{{baseUrl}}/render
HEADERS

x-api-key
{{apiKey}}
BODY json

{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/render");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/render" {:headers {:x-api-key "{{apiKey}}"}
                                                   :content-type :json
                                                   :form-params {:callback ""
                                                                 :disk ""
                                                                 :output {:aspectRatio ""
                                                                          :destinations []
                                                                          :format ""
                                                                          :fps 0
                                                                          :poster {:capture ""}
                                                                          :quality ""
                                                                          :range {:length ""
                                                                                  :start ""}
                                                                          :resolution ""
                                                                          :scaleTo ""
                                                                          :size {:height 0
                                                                                 :width 0}
                                                                          :thumbnail {:capture ""
                                                                                      :scale ""}}
                                                                 :timeline {:background ""
                                                                            :cache false
                                                                            :fonts [{:src ""}]
                                                                            :soundtrack {:effect ""
                                                                                         :src ""
                                                                                         :volume ""}
                                                                            :tracks [{:clips [{:asset ""
                                                                                               :effect ""
                                                                                               :filter ""
                                                                                               :fit ""
                                                                                               :length ""
                                                                                               :offset {:x ""
                                                                                                        :y ""}
                                                                                               :opacity ""
                                                                                               :position ""
                                                                                               :scale ""
                                                                                               :start ""
                                                                                               :transition {:in ""
                                                                                                            :out ""}}]}]}}})
require "http/client"

url = "{{baseUrl}}/render"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/render"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/render");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api-key", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/render"

	payload := strings.NewReader("{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "{{apiKey}}")
	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/render HTTP/1.1
X-Api-Key: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 1114

{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/render")
  .setHeader("x-api-key", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/render"))
    .header("x-api-key", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/render")
  .post(body)
  .addHeader("x-api-key", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/render")
  .header("x-api-key", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  callback: '',
  disk: '',
  output: {
    aspectRatio: '',
    destinations: [],
    format: '',
    fps: 0,
    poster: {
      capture: ''
    },
    quality: '',
    range: {
      length: '',
      start: ''
    },
    resolution: '',
    scaleTo: '',
    size: {
      height: 0,
      width: 0
    },
    thumbnail: {
      capture: '',
      scale: ''
    }
  },
  timeline: {
    background: '',
    cache: false,
    fonts: [
      {
        src: ''
      }
    ],
    soundtrack: {
      effect: '',
      src: '',
      volume: ''
    },
    tracks: [
      {
        clips: [
          {
            asset: '',
            effect: '',
            filter: '',
            fit: '',
            length: '',
            offset: {
              x: '',
              y: ''
            },
            opacity: '',
            position: '',
            scale: '',
            start: '',
            transition: {
              in: '',
              out: ''
            }
          }
        ]
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/render');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/render',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    callback: '',
    disk: '',
    output: {
      aspectRatio: '',
      destinations: [],
      format: '',
      fps: 0,
      poster: {capture: ''},
      quality: '',
      range: {length: '', start: ''},
      resolution: '',
      scaleTo: '',
      size: {height: 0, width: 0},
      thumbnail: {capture: '', scale: ''}
    },
    timeline: {
      background: '',
      cache: false,
      fonts: [{src: ''}],
      soundtrack: {effect: '', src: '', volume: ''},
      tracks: [
        {
          clips: [
            {
              asset: '',
              effect: '',
              filter: '',
              fit: '',
              length: '',
              offset: {x: '', y: ''},
              opacity: '',
              position: '',
              scale: '',
              start: '',
              transition: {in: '', out: ''}
            }
          ]
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/render';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"callback":"","disk":"","output":{"aspectRatio":"","destinations":[],"format":"","fps":0,"poster":{"capture":""},"quality":"","range":{"length":"","start":""},"resolution":"","scaleTo":"","size":{"height":0,"width":0},"thumbnail":{"capture":"","scale":""}},"timeline":{"background":"","cache":false,"fonts":[{"src":""}],"soundtrack":{"effect":"","src":"","volume":""},"tracks":[{"clips":[{"asset":"","effect":"","filter":"","fit":"","length":"","offset":{"x":"","y":""},"opacity":"","position":"","scale":"","start":"","transition":{"in":"","out":""}}]}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/render',
  method: 'POST',
  headers: {
    'x-api-key': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "callback": "",\n  "disk": "",\n  "output": {\n    "aspectRatio": "",\n    "destinations": [],\n    "format": "",\n    "fps": 0,\n    "poster": {\n      "capture": ""\n    },\n    "quality": "",\n    "range": {\n      "length": "",\n      "start": ""\n    },\n    "resolution": "",\n    "scaleTo": "",\n    "size": {\n      "height": 0,\n      "width": 0\n    },\n    "thumbnail": {\n      "capture": "",\n      "scale": ""\n    }\n  },\n  "timeline": {\n    "background": "",\n    "cache": false,\n    "fonts": [\n      {\n        "src": ""\n      }\n    ],\n    "soundtrack": {\n      "effect": "",\n      "src": "",\n      "volume": ""\n    },\n    "tracks": [\n      {\n        "clips": [\n          {\n            "asset": "",\n            "effect": "",\n            "filter": "",\n            "fit": "",\n            "length": "",\n            "offset": {\n              "x": "",\n              "y": ""\n            },\n            "opacity": "",\n            "position": "",\n            "scale": "",\n            "start": "",\n            "transition": {\n              "in": "",\n              "out": ""\n            }\n          }\n        ]\n      }\n    ]\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/render")
  .post(body)
  .addHeader("x-api-key", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/render',
  headers: {
    'x-api-key': '{{apiKey}}',
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  callback: '',
  disk: '',
  output: {
    aspectRatio: '',
    destinations: [],
    format: '',
    fps: 0,
    poster: {capture: ''},
    quality: '',
    range: {length: '', start: ''},
    resolution: '',
    scaleTo: '',
    size: {height: 0, width: 0},
    thumbnail: {capture: '', scale: ''}
  },
  timeline: {
    background: '',
    cache: false,
    fonts: [{src: ''}],
    soundtrack: {effect: '', src: '', volume: ''},
    tracks: [
      {
        clips: [
          {
            asset: '',
            effect: '',
            filter: '',
            fit: '',
            length: '',
            offset: {x: '', y: ''},
            opacity: '',
            position: '',
            scale: '',
            start: '',
            transition: {in: '', out: ''}
          }
        ]
      }
    ]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/render',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    callback: '',
    disk: '',
    output: {
      aspectRatio: '',
      destinations: [],
      format: '',
      fps: 0,
      poster: {capture: ''},
      quality: '',
      range: {length: '', start: ''},
      resolution: '',
      scaleTo: '',
      size: {height: 0, width: 0},
      thumbnail: {capture: '', scale: ''}
    },
    timeline: {
      background: '',
      cache: false,
      fonts: [{src: ''}],
      soundtrack: {effect: '', src: '', volume: ''},
      tracks: [
        {
          clips: [
            {
              asset: '',
              effect: '',
              filter: '',
              fit: '',
              length: '',
              offset: {x: '', y: ''},
              opacity: '',
              position: '',
              scale: '',
              start: '',
              transition: {in: '', out: ''}
            }
          ]
        }
      ]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/render');

req.headers({
  'x-api-key': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  callback: '',
  disk: '',
  output: {
    aspectRatio: '',
    destinations: [],
    format: '',
    fps: 0,
    poster: {
      capture: ''
    },
    quality: '',
    range: {
      length: '',
      start: ''
    },
    resolution: '',
    scaleTo: '',
    size: {
      height: 0,
      width: 0
    },
    thumbnail: {
      capture: '',
      scale: ''
    }
  },
  timeline: {
    background: '',
    cache: false,
    fonts: [
      {
        src: ''
      }
    ],
    soundtrack: {
      effect: '',
      src: '',
      volume: ''
    },
    tracks: [
      {
        clips: [
          {
            asset: '',
            effect: '',
            filter: '',
            fit: '',
            length: '',
            offset: {
              x: '',
              y: ''
            },
            opacity: '',
            position: '',
            scale: '',
            start: '',
            transition: {
              in: '',
              out: ''
            }
          }
        ]
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/render',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    callback: '',
    disk: '',
    output: {
      aspectRatio: '',
      destinations: [],
      format: '',
      fps: 0,
      poster: {capture: ''},
      quality: '',
      range: {length: '', start: ''},
      resolution: '',
      scaleTo: '',
      size: {height: 0, width: 0},
      thumbnail: {capture: '', scale: ''}
    },
    timeline: {
      background: '',
      cache: false,
      fonts: [{src: ''}],
      soundtrack: {effect: '', src: '', volume: ''},
      tracks: [
        {
          clips: [
            {
              asset: '',
              effect: '',
              filter: '',
              fit: '',
              length: '',
              offset: {x: '', y: ''},
              opacity: '',
              position: '',
              scale: '',
              start: '',
              transition: {in: '', out: ''}
            }
          ]
        }
      ]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/render';
const options = {
  method: 'POST',
  headers: {'x-api-key': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"callback":"","disk":"","output":{"aspectRatio":"","destinations":[],"format":"","fps":0,"poster":{"capture":""},"quality":"","range":{"length":"","start":""},"resolution":"","scaleTo":"","size":{"height":0,"width":0},"thumbnail":{"capture":"","scale":""}},"timeline":{"background":"","cache":false,"fonts":[{"src":""}],"soundtrack":{"effect":"","src":"","volume":""},"tracks":[{"clips":[{"asset":"","effect":"","filter":"","fit":"","length":"","offset":{"x":"","y":""},"opacity":"","position":"","scale":"","start":"","transition":{"in":"","out":""}}]}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"callback": @"",
                              @"disk": @"",
                              @"output": @{ @"aspectRatio": @"", @"destinations": @[  ], @"format": @"", @"fps": @0, @"poster": @{ @"capture": @"" }, @"quality": @"", @"range": @{ @"length": @"", @"start": @"" }, @"resolution": @"", @"scaleTo": @"", @"size": @{ @"height": @0, @"width": @0 }, @"thumbnail": @{ @"capture": @"", @"scale": @"" } },
                              @"timeline": @{ @"background": @"", @"cache": @NO, @"fonts": @[ @{ @"src": @"" } ], @"soundtrack": @{ @"effect": @"", @"src": @"", @"volume": @"" }, @"tracks": @[ @{ @"clips": @[ @{ @"asset": @"", @"effect": @"", @"filter": @"", @"fit": @"", @"length": @"", @"offset": @{ @"x": @"", @"y": @"" }, @"opacity": @"", @"position": @"", @"scale": @"", @"start": @"", @"transition": @{ @"in": @"", @"out": @"" } } ] } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/render"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/render" in
let headers = Header.add_list (Header.init ()) [
  ("x-api-key", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/render",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'callback' => '',
    'disk' => '',
    'output' => [
        'aspectRatio' => '',
        'destinations' => [
                
        ],
        'format' => '',
        'fps' => 0,
        'poster' => [
                'capture' => ''
        ],
        'quality' => '',
        'range' => [
                'length' => '',
                'start' => ''
        ],
        'resolution' => '',
        'scaleTo' => '',
        'size' => [
                'height' => 0,
                'width' => 0
        ],
        'thumbnail' => [
                'capture' => '',
                'scale' => ''
        ]
    ],
    'timeline' => [
        'background' => '',
        'cache' => null,
        'fonts' => [
                [
                                'src' => ''
                ]
        ],
        'soundtrack' => [
                'effect' => '',
                'src' => '',
                'volume' => ''
        ],
        'tracks' => [
                [
                                'clips' => [
                                                                [
                                                                                                                                'asset' => '',
                                                                                                                                'effect' => '',
                                                                                                                                'filter' => '',
                                                                                                                                'fit' => '',
                                                                                                                                'length' => '',
                                                                                                                                'offset' => [
                                                                                                                                                                                                                                                                'x' => '',
                                                                                                                                                                                                                                                                'y' => ''
                                                                                                                                ],
                                                                                                                                'opacity' => '',
                                                                                                                                'position' => '',
                                                                                                                                'scale' => '',
                                                                                                                                'start' => '',
                                                                                                                                'transition' => [
                                                                                                                                                                                                                                                                'in' => '',
                                                                                                                                                                                                                                                                'out' => ''
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/render', [
  'body' => '{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/render');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'callback' => '',
  'disk' => '',
  'output' => [
    'aspectRatio' => '',
    'destinations' => [
        
    ],
    'format' => '',
    'fps' => 0,
    'poster' => [
        'capture' => ''
    ],
    'quality' => '',
    'range' => [
        'length' => '',
        'start' => ''
    ],
    'resolution' => '',
    'scaleTo' => '',
    'size' => [
        'height' => 0,
        'width' => 0
    ],
    'thumbnail' => [
        'capture' => '',
        'scale' => ''
    ]
  ],
  'timeline' => [
    'background' => '',
    'cache' => null,
    'fonts' => [
        [
                'src' => ''
        ]
    ],
    'soundtrack' => [
        'effect' => '',
        'src' => '',
        'volume' => ''
    ],
    'tracks' => [
        [
                'clips' => [
                                [
                                                                'asset' => '',
                                                                'effect' => '',
                                                                'filter' => '',
                                                                'fit' => '',
                                                                'length' => '',
                                                                'offset' => [
                                                                                                                                'x' => '',
                                                                                                                                'y' => ''
                                                                ],
                                                                'opacity' => '',
                                                                'position' => '',
                                                                'scale' => '',
                                                                'start' => '',
                                                                'transition' => [
                                                                                                                                'in' => '',
                                                                                                                                'out' => ''
                                                                ]
                                ]
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'callback' => '',
  'disk' => '',
  'output' => [
    'aspectRatio' => '',
    'destinations' => [
        
    ],
    'format' => '',
    'fps' => 0,
    'poster' => [
        'capture' => ''
    ],
    'quality' => '',
    'range' => [
        'length' => '',
        'start' => ''
    ],
    'resolution' => '',
    'scaleTo' => '',
    'size' => [
        'height' => 0,
        'width' => 0
    ],
    'thumbnail' => [
        'capture' => '',
        'scale' => ''
    ]
  ],
  'timeline' => [
    'background' => '',
    'cache' => null,
    'fonts' => [
        [
                'src' => ''
        ]
    ],
    'soundtrack' => [
        'effect' => '',
        'src' => '',
        'volume' => ''
    ],
    'tracks' => [
        [
                'clips' => [
                                [
                                                                'asset' => '',
                                                                'effect' => '',
                                                                'filter' => '',
                                                                'fit' => '',
                                                                'length' => '',
                                                                'offset' => [
                                                                                                                                'x' => '',
                                                                                                                                'y' => ''
                                                                ],
                                                                'opacity' => '',
                                                                'position' => '',
                                                                'scale' => '',
                                                                'start' => '',
                                                                'transition' => [
                                                                                                                                'in' => '',
                                                                                                                                'out' => ''
                                                                ]
                                ]
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/render');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/render' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}'
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/render' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"

headers = {
    'x-api-key': "{{apiKey}}",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/render", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/render"

payload = {
    "callback": "",
    "disk": "",
    "output": {
        "aspectRatio": "",
        "destinations": [],
        "format": "",
        "fps": 0,
        "poster": { "capture": "" },
        "quality": "",
        "range": {
            "length": "",
            "start": ""
        },
        "resolution": "",
        "scaleTo": "",
        "size": {
            "height": 0,
            "width": 0
        },
        "thumbnail": {
            "capture": "",
            "scale": ""
        }
    },
    "timeline": {
        "background": "",
        "cache": False,
        "fonts": [{ "src": "" }],
        "soundtrack": {
            "effect": "",
            "src": "",
            "volume": ""
        },
        "tracks": [{ "clips": [
                    {
                        "asset": "",
                        "effect": "",
                        "filter": "",
                        "fit": "",
                        "length": "",
                        "offset": {
                            "x": "",
                            "y": ""
                        },
                        "opacity": "",
                        "position": "",
                        "scale": "",
                        "start": "",
                        "transition": {
                            "in": "",
                            "out": ""
                        }
                    }
                ] }]
    }
}
headers = {
    "x-api-key": "{{apiKey}}",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/render"

payload <- "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/render")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/render') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
  req.body = "{\n  \"callback\": \"\",\n  \"disk\": \"\",\n  \"output\": {\n    \"aspectRatio\": \"\",\n    \"destinations\": [],\n    \"format\": \"\",\n    \"fps\": 0,\n    \"poster\": {\n      \"capture\": \"\"\n    },\n    \"quality\": \"\",\n    \"range\": {\n      \"length\": \"\",\n      \"start\": \"\"\n    },\n    \"resolution\": \"\",\n    \"scaleTo\": \"\",\n    \"size\": {\n      \"height\": 0,\n      \"width\": 0\n    },\n    \"thumbnail\": {\n      \"capture\": \"\",\n      \"scale\": \"\"\n    }\n  },\n  \"timeline\": {\n    \"background\": \"\",\n    \"cache\": false,\n    \"fonts\": [\n      {\n        \"src\": \"\"\n      }\n    ],\n    \"soundtrack\": {\n      \"effect\": \"\",\n      \"src\": \"\",\n      \"volume\": \"\"\n    },\n    \"tracks\": [\n      {\n        \"clips\": [\n          {\n            \"asset\": \"\",\n            \"effect\": \"\",\n            \"filter\": \"\",\n            \"fit\": \"\",\n            \"length\": \"\",\n            \"offset\": {\n              \"x\": \"\",\n              \"y\": \"\"\n            },\n            \"opacity\": \"\",\n            \"position\": \"\",\n            \"scale\": \"\",\n            \"start\": \"\",\n            \"transition\": {\n              \"in\": \"\",\n              \"out\": \"\"\n            }\n          }\n        ]\n      }\n    ]\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/render";

    let payload = json!({
        "callback": "",
        "disk": "",
        "output": json!({
            "aspectRatio": "",
            "destinations": (),
            "format": "",
            "fps": 0,
            "poster": json!({"capture": ""}),
            "quality": "",
            "range": json!({
                "length": "",
                "start": ""
            }),
            "resolution": "",
            "scaleTo": "",
            "size": json!({
                "height": 0,
                "width": 0
            }),
            "thumbnail": json!({
                "capture": "",
                "scale": ""
            })
        }),
        "timeline": json!({
            "background": "",
            "cache": false,
            "fonts": (json!({"src": ""})),
            "soundtrack": json!({
                "effect": "",
                "src": "",
                "volume": ""
            }),
            "tracks": (json!({"clips": (
                        json!({
                            "asset": "",
                            "effect": "",
                            "filter": "",
                            "fit": "",
                            "length": "",
                            "offset": json!({
                                "x": "",
                                "y": ""
                            }),
                            "opacity": "",
                            "position": "",
                            "scale": "",
                            "start": "",
                            "transition": json!({
                                "in": "",
                                "out": ""
                            })
                        })
                    )}))
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/render \
  --header 'content-type: application/json' \
  --header 'x-api-key: {{apiKey}}' \
  --data '{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}'
echo '{
  "callback": "",
  "disk": "",
  "output": {
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": {
      "capture": ""
    },
    "quality": "",
    "range": {
      "length": "",
      "start": ""
    },
    "resolution": "",
    "scaleTo": "",
    "size": {
      "height": 0,
      "width": 0
    },
    "thumbnail": {
      "capture": "",
      "scale": ""
    }
  },
  "timeline": {
    "background": "",
    "cache": false,
    "fonts": [
      {
        "src": ""
      }
    ],
    "soundtrack": {
      "effect": "",
      "src": "",
      "volume": ""
    },
    "tracks": [
      {
        "clips": [
          {
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": {
              "x": "",
              "y": ""
            },
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": {
              "in": "",
              "out": ""
            }
          }
        ]
      }
    ]
  }
}' |  \
  http POST {{baseUrl}}/render \
  content-type:application/json \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-api-key: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "callback": "",\n  "disk": "",\n  "output": {\n    "aspectRatio": "",\n    "destinations": [],\n    "format": "",\n    "fps": 0,\n    "poster": {\n      "capture": ""\n    },\n    "quality": "",\n    "range": {\n      "length": "",\n      "start": ""\n    },\n    "resolution": "",\n    "scaleTo": "",\n    "size": {\n      "height": 0,\n      "width": 0\n    },\n    "thumbnail": {\n      "capture": "",\n      "scale": ""\n    }\n  },\n  "timeline": {\n    "background": "",\n    "cache": false,\n    "fonts": [\n      {\n        "src": ""\n      }\n    ],\n    "soundtrack": {\n      "effect": "",\n      "src": "",\n      "volume": ""\n    },\n    "tracks": [\n      {\n        "clips": [\n          {\n            "asset": "",\n            "effect": "",\n            "filter": "",\n            "fit": "",\n            "length": "",\n            "offset": {\n              "x": "",\n              "y": ""\n            },\n            "opacity": "",\n            "position": "",\n            "scale": "",\n            "start": "",\n            "transition": {\n              "in": "",\n              "out": ""\n            }\n          }\n        ]\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/render
import Foundation

let headers = [
  "x-api-key": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "callback": "",
  "disk": "",
  "output": [
    "aspectRatio": "",
    "destinations": [],
    "format": "",
    "fps": 0,
    "poster": ["capture": ""],
    "quality": "",
    "range": [
      "length": "",
      "start": ""
    ],
    "resolution": "",
    "scaleTo": "",
    "size": [
      "height": 0,
      "width": 0
    ],
    "thumbnail": [
      "capture": "",
      "scale": ""
    ]
  ],
  "timeline": [
    "background": "",
    "cache": false,
    "fonts": [["src": ""]],
    "soundtrack": [
      "effect": "",
      "src": "",
      "volume": ""
    ],
    "tracks": [["clips": [
          [
            "asset": "",
            "effect": "",
            "filter": "",
            "fit": "",
            "length": "",
            "offset": [
              "x": "",
              "y": ""
            ],
            "opacity": "",
            "position": "",
            "scale": "",
            "start": "",
            "transition": [
              "in": "",
              "out": ""
            ]
          ]
        ]]]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/render")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "message": "Created",
  "response": {
    "id": "2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7",
    "message": "Render Successfully Queued"
  },
  "success": true
}
DELETE Delete Asset
{{baseUrl}}/assets/:id
HEADERS

x-api-key
{{apiKey}}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/assets/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/assets/:id" {:headers {:x-api-key "{{apiKey}}"}})
require "http/client"

url = "{{baseUrl}}/assets/:id"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
}

response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/assets/:id"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/assets/:id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api-key", "{{apiKey}}");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/assets/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	req.Header.Add("x-api-key", "{{apiKey}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/assets/:id HTTP/1.1
X-Api-Key: {{apiKey}}
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/assets/:id")
  .setHeader("x-api-key", "{{apiKey}}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/assets/:id"))
    .header("x-api-key", "{{apiKey}}")
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/assets/:id")
  .delete(null)
  .addHeader("x-api-key", "{{apiKey}}")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/assets/:id")
  .header("x-api-key", "{{apiKey}}")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/assets/:id');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/assets/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/assets/:id';
const options = {method: 'DELETE', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/assets/:id',
  method: 'DELETE',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/assets/:id")
  .delete(null)
  .addHeader("x-api-key", "{{apiKey}}")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/assets/:id',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/assets/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/assets/:id');

req.headers({
  'x-api-key': '{{apiKey}}'
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/assets/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/assets/:id';
const options = {method: 'DELETE', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/assets/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/assets/:id" in
let headers = Header.add (Header.init ()) "x-api-key" "{{apiKey}}" in

Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/assets/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_HTTPHEADER => [
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/assets/:id', [
  'headers' => [
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/assets/:id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/assets/:id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/assets/:id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/assets/:id' -Method DELETE -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = { 'x-api-key': "{{apiKey}}" }

conn.request("DELETE", "/baseUrl/assets/:id", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/assets/:id"

headers = {"x-api-key": "{{apiKey}}"}

response = requests.delete(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/assets/:id"

response <- VERB("DELETE", url, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/assets/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '{{apiKey}}'

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/assets/:id') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/assets/:id";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/assets/:id \
  --header 'x-api-key: {{apiKey}}'
http DELETE {{baseUrl}}/assets/:id \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method DELETE \
  --header 'x-api-key: {{apiKey}}' \
  --output-document \
  - {{baseUrl}}/assets/:id
import Foundation

let headers = ["x-api-key": "{{apiKey}}"]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/assets/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get Asset by Render ID
{{baseUrl}}/assets/render/:id
HEADERS

x-api-key
{{apiKey}}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/assets/render/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/assets/render/:id" {:headers {:x-api-key "{{apiKey}}"}})
require "http/client"

url = "{{baseUrl}}/assets/render/:id"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/assets/render/:id"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/assets/render/:id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api-key", "{{apiKey}}");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/assets/render/:id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "{{apiKey}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/assets/render/:id HTTP/1.1
X-Api-Key: {{apiKey}}
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/assets/render/:id")
  .setHeader("x-api-key", "{{apiKey}}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/assets/render/:id"))
    .header("x-api-key", "{{apiKey}}")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/assets/render/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/assets/render/:id")
  .header("x-api-key", "{{apiKey}}")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/assets/render/:id');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/assets/render/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/assets/render/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/assets/render/:id',
  method: 'GET',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/assets/render/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/assets/render/:id',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/assets/render/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/assets/render/:id');

req.headers({
  'x-api-key': '{{apiKey}}'
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/assets/render/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/assets/render/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/assets/render/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/assets/render/:id" in
let headers = Header.add (Header.init ()) "x-api-key" "{{apiKey}}" in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/assets/render/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/assets/render/:id', [
  'headers' => [
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/assets/render/:id');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/assets/render/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/assets/render/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/assets/render/:id' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = { 'x-api-key': "{{apiKey}}" }

conn.request("GET", "/baseUrl/assets/render/:id", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/assets/render/:id"

headers = {"x-api-key": "{{apiKey}}"}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/assets/render/:id"

response <- VERB("GET", url, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/assets/render/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '{{apiKey}}'

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/assets/render/:id') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/assets/render/:id";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/assets/render/:id \
  --header 'x-api-key: {{apiKey}}'
http GET {{baseUrl}}/assets/render/:id \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method GET \
  --header 'x-api-key: {{apiKey}}' \
  --output-document \
  - {{baseUrl}}/assets/render/:id
import Foundation

let headers = ["x-api-key": "{{apiKey}}"]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/assets/render/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "response": {
    "data": [
      {
        "attributes": {
          "created": "2021-05-06T03:33:48.600Z",
          "filename": "2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7.mp4",
          "id": "a4482cbf-e321-42a2-ac8b-947d26886840",
          "owner": "5ca6hu7s9k",
          "region": "au",
          "renderId": "2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7",
          "status": "ready",
          "updated": "2021-05-06T03:33:49.521Z",
          "url": "https://cdn.shotstack.io/au/v1/msgtwx8iw6/2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7.mp4"
        },
        "type": "asset"
      }
    ]
  }
}
GET Get Asset
{{baseUrl}}/assets/:id
HEADERS

x-api-key
{{apiKey}}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/assets/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api-key: {{apiKey}}");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/assets/:id" {:headers {:x-api-key "{{apiKey}}"}})
require "http/client"

url = "{{baseUrl}}/assets/:id"
headers = HTTP::Headers{
  "x-api-key" => "{{apiKey}}"
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/assets/:id"),
    Headers =
    {
        { "x-api-key", "{{apiKey}}" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/assets/:id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api-key", "{{apiKey}}");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/assets/:id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-api-key", "{{apiKey}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/assets/:id HTTP/1.1
X-Api-Key: {{apiKey}}
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/assets/:id")
  .setHeader("x-api-key", "{{apiKey}}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/assets/:id"))
    .header("x-api-key", "{{apiKey}}")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/assets/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/assets/:id")
  .header("x-api-key", "{{apiKey}}")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/assets/:id');
xhr.setRequestHeader('x-api-key', '{{apiKey}}');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/assets/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/assets/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/assets/:id',
  method: 'GET',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/assets/:id")
  .get()
  .addHeader("x-api-key", "{{apiKey}}")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/assets/:id',
  headers: {
    'x-api-key': '{{apiKey}}'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/assets/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/assets/:id');

req.headers({
  'x-api-key': '{{apiKey}}'
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/assets/:id',
  headers: {'x-api-key': '{{apiKey}}'}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/assets/:id';
const options = {method: 'GET', headers: {'x-api-key': '{{apiKey}}'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-api-key": @"{{apiKey}}" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/assets/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/assets/:id" in
let headers = Header.add (Header.init ()) "x-api-key" "{{apiKey}}" in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/assets/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-api-key: {{apiKey}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/assets/:id', [
  'headers' => [
    'x-api-key' => '{{apiKey}}',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/assets/:id');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/assets/:id');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-api-key' => '{{apiKey}}'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/assets/:id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api-key", "{{apiKey}}")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/assets/:id' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = { 'x-api-key': "{{apiKey}}" }

conn.request("GET", "/baseUrl/assets/:id", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/assets/:id"

headers = {"x-api-key": "{{apiKey}}"}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/assets/:id"

response <- VERB("GET", url, add_headers('x-api-key' = '{{apiKey}}'), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/assets/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '{{apiKey}}'

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/assets/:id') do |req|
  req.headers['x-api-key'] = '{{apiKey}}'
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/assets/:id";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-api-key", "{{apiKey}}".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/assets/:id \
  --header 'x-api-key: {{apiKey}}'
http GET {{baseUrl}}/assets/:id \
  x-api-key:'{{apiKey}}'
wget --quiet \
  --method GET \
  --header 'x-api-key: {{apiKey}}' \
  --output-document \
  - {{baseUrl}}/assets/:id
import Foundation

let headers = ["x-api-key": "{{apiKey}}"]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/assets/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "response": {
    "data": {
      "attributes": {
        "created": "2021-05-06T03:33:48.600Z",
        "filename": "2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7.mp4",
        "id": "a4482cbf-e321-42a2-ac8b-947d26886840",
        "owner": "5ca6hu7s9k",
        "region": "au",
        "renderId": "2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7",
        "status": "ready",
        "updated": "2021-05-06T03:33:49.521Z",
        "url": "https://cdn.shotstack.io/au/v1/msgtwx8iw6/2abd5c11-0f3d-4c6d-ba20-235fc9b8e8b7.mp4"
      },
      "type": "asset"
    }
  }
}