CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }");

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

(client/post "https://api.print.io/api/v/5/source/api/preconfiguredproducts/" {:headers {:content-type "application/json"}
                                                                               :query-params {:recipeid "f255af6f-9614-4fe2-aa8b-1b77b936d9d6"}})
var client = new RestClient("https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main

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

func main() {

	url := "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6"

	payload := strings.NewReader("{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }")

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

	req.Header.Add("content-type", "application/json")

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

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

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

}
POST /api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6 HTTP/1.1
Content-Type: application/json
Host: api.print.io
Content-Length: 382

{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json; charset=utf-8");
RequestBody body = RequestBody.create(mediaType, "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }");
Request request = new Request.Builder()
  .url("https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.post("https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")
  .header("content-type", "application/json")
  .body("{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }")
  .asString();
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "data": "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
fetch("https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }"
})
.then(response => {
  console.log(response);
})
.catch(err => {
  console.log(err);
});
var data = "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }";

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

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

xhr.open("POST", "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6");
xhr.setRequestHeader("content-type", "application/json");

xhr.send(data);
var http = require("https");

var options = {
  "method": "POST",
  "hostname": "api.print.io",
  "port": null,
  "path": "/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  "headers": {
    "content-type": "application/json"
  }
};

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

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

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

req.write("{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }");
req.end();
var request = require("request");

var options = {
  method: 'POST',
  url: 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/',
  qs: {recipeid: 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'},
  headers: {'content-type': 'application/json'},
  body: '{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }'
};

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

  console.log(body);
});
var unirest = require("unirest");

var req = unirest("POST", "https://api.print.io/api/v/5/source/api/preconfiguredproducts/");

req.query({
  "recipeid": "f255af6f-9614-4fe2-aa8b-1b77b936d9d6"
});

req.headers({
  "content-type": "application/json"
});

  req.send("{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }");

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

  console.log(res.body);
});
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"content-type": @"application/json" };

NSData *postData = [[NSData alloc] initWithData:[@"{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }" dataUsingEncoding:NSUTF8StringEncoding]];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6"]
                                                       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 "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }",
  CURLOPT_HTTPHEADER => array(
    "content-type: application/json"
  ),
));

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
<?php

$request = new HttpRequest();
$request->setUrl('https://api.print.io/api/v/5/source/api/preconfiguredproducts/');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
));

$request->setHeaders(array(
  'content-type' => 'application/json'
));

$request->setBody('{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }');

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
<?php

$client = new http\Client;
$request = new http\Client\Request;

$body = new http\Message\Body;
$body->append('{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }');

$request->setRequestUrl('https://api.print.io/api/v/5/source/api/preconfiguredproducts/');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString(array(
  'recipeid' => 'f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
)));

$request->setHeaders(array(
  'content-type' => 'application/json'
));

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' -Method POST -Headers $headers -ContentType 'application/json' -Body '{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' -Method POST -Headers $headers -ContentType 'application/json' -Body '{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }'
import http.client

conn = http.client.HTTPSConnection("api.print.io")

payload = "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }"

headers = { 'content-type': "application/json" }

conn.request("POST", "/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6", payload, headers)

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

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

url = "https://api.print.io/api/v/5/source/api/preconfiguredproducts/"

querystring = {"recipeid":"f255af6f-9614-4fe2-aa8b-1b77b936d9d6"}

payload = "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }"
headers = {'content-type': 'application/json'}

response = requests.request("POST", url, data=payload, headers=headers, params=querystring)

print(response.text)
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{ \"Sku\": \"string\", \"Name\": \"string\", \"Description\": \"string\", \"Price\": \"decimal\", \"Items\": [ { \"ProductId\": \"integer\", \"ProductVariantSku\": \"string\", \"Preconfigurations\": [ { \"SpaceId\": \"string\", \"Url\": \"string\" } ] } ], \"Images\": [ { \"Url\": \"string\", \"Description\": \"string\", \"Index\": \"int\", \"Id\": \"string\" } ], \"ShopifyVariant\": { \"VariantId\": \"integer\", \"StoreName\": \"string\" } }"

response = http.request(request)
puts response.read_body
curl --request POST \
  --url 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  --header 'content-type: application/json' \
  --data '{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }'
echo '{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }' |  \
  http POST 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }' \
  --output-document \
  - 'https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6'
import Foundation

let headers = ["content-type": "application/json"]

let postData = NSData(data: "{ "Sku": "string", "Name": "string", "Description": "string", "Price": "decimal", "Items": [ { "ProductId": "integer", "ProductVariantSku": "string", "Preconfigurations": [ { "SpaceId": "string", "Url": "string" } ] } ], "Images": [ { "Url": "string", "Description": "string", "Index": "int", "Id": "string" } ], "ShopifyVariant": { "VariantId": "integer", "StoreName": "string" } }".data(using: String.Encoding.utf8)!)

let request = NSMutableURLRequest(url: NSURL(string: "https://api.print.io/api/v/5/source/api/preconfiguredproducts/?recipeid=f255af6f-9614-4fe2-aa8b-1b77b936d9d6")! 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)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()