POST barcode-generator-post
{{baseUrl}}/barcode-generator
BODY json

{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/barcode-generator");

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, "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}");

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

(client/post "{{baseUrl}}/barcode-generator" {:content-type :json
                                                              :form-params {:type ""
                                                                            :value ""
                                                                            :format ""
                                                                            :width 0
                                                                            :height 0
                                                                            :showText false
                                                                            :fitWidth false
                                                                            :foregroundColor ""
                                                                            :backgroundColor ""}})
require "http/client"

url = "{{baseUrl}}/barcode-generator"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\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}}/barcode-generator"),
    Content = new StringContent("{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\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}}/barcode-generator");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/barcode-generator"

	payload := strings.NewReader("{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}")

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

	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/barcode-generator HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 168

{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/barcode-generator")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/barcode-generator"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\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  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/barcode-generator")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/barcode-generator")
  .header("content-type", "application/json")
  .body("{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  type: '',
  value: '',
  format: '',
  width: 0,
  height: 0,
  showText: false,
  fitWidth: false,
  foregroundColor: '',
  backgroundColor: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/barcode-generator');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/barcode-generator',
  headers: {'content-type': 'application/json'},
  data: {
    type: '',
    value: '',
    format: '',
    width: 0,
    height: 0,
    showText: false,
    fitWidth: false,
    foregroundColor: '',
    backgroundColor: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/barcode-generator';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"type":"","value":"","format":"","width":0,"height":0,"showText":false,"fitWidth":false,"foregroundColor":"","backgroundColor":""}'
};

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}}/barcode-generator',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "type": "",\n  "value": "",\n  "format": "",\n  "width": 0,\n  "height": 0,\n  "showText": false,\n  "fitWidth": false,\n  "foregroundColor": "",\n  "backgroundColor": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/barcode-generator")
  .post(body)
  .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/barcode-generator',
  headers: {
    '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({
  type: '',
  value: '',
  format: '',
  width: 0,
  height: 0,
  showText: false,
  fitWidth: false,
  foregroundColor: '',
  backgroundColor: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/barcode-generator',
  headers: {'content-type': 'application/json'},
  body: {
    type: '',
    value: '',
    format: '',
    width: 0,
    height: 0,
    showText: false,
    fitWidth: false,
    foregroundColor: '',
    backgroundColor: ''
  },
  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}}/barcode-generator');

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

req.type('json');
req.send({
  type: '',
  value: '',
  format: '',
  width: 0,
  height: 0,
  showText: false,
  fitWidth: false,
  foregroundColor: '',
  backgroundColor: ''
});

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}}/barcode-generator',
  headers: {'content-type': 'application/json'},
  data: {
    type: '',
    value: '',
    format: '',
    width: 0,
    height: 0,
    showText: false,
    fitWidth: false,
    foregroundColor: '',
    backgroundColor: ''
  }
};

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

const url = '{{baseUrl}}/barcode-generator';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"type":"","value":"","format":"","width":0,"height":0,"showText":false,"fitWidth":false,"foregroundColor":"","backgroundColor":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"type": @"",
                              @"value": @"",
                              @"format": @"",
                              @"width": @0,
                              @"height": @0,
                              @"showText": @NO,
                              @"fitWidth": @NO,
                              @"foregroundColor": @"",
                              @"backgroundColor": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/barcode-generator"]
                                                       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}}/barcode-generator" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/barcode-generator",
  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([
    'type' => '',
    'value' => '',
    'format' => '',
    'width' => 0,
    'height' => 0,
    'showText' => null,
    'fitWidth' => null,
    'foregroundColor' => '',
    'backgroundColor' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/barcode-generator', [
  'body' => '{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'type' => '',
  'value' => '',
  'format' => '',
  'width' => 0,
  'height' => 0,
  'showText' => null,
  'fitWidth' => null,
  'foregroundColor' => '',
  'backgroundColor' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'type' => '',
  'value' => '',
  'format' => '',
  'width' => 0,
  'height' => 0,
  'showText' => null,
  'fitWidth' => null,
  'foregroundColor' => '',
  'backgroundColor' => ''
]));
$request->setRequestUrl('{{baseUrl}}/barcode-generator');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  '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 '{{baseUrl}}/barcode-generator' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/barcode-generator' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}'
import http.client

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

payload = "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}"

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

conn.request("POST", "/baseUrl/barcode-generator", payload, headers)

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

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

url = "{{baseUrl}}/barcode-generator"

payload = {
    "type": "",
    "value": "",
    "format": "",
    "width": 0,
    "height": 0,
    "showText": False,
    "fitWidth": False,
    "foregroundColor": "",
    "backgroundColor": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/barcode-generator"

payload <- "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/barcode-generator")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\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/barcode-generator') do |req|
  req.body = "{\n  \"type\": \"\",\n  \"value\": \"\",\n  \"format\": \"\",\n  \"width\": 0,\n  \"height\": 0,\n  \"showText\": false,\n  \"fitWidth\": false,\n  \"foregroundColor\": \"\",\n  \"backgroundColor\": \"\"\n}"
end

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

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

    let payload = json!({
        "type": "",
        "value": "",
        "format": "",
        "width": 0,
        "height": 0,
        "showText": false,
        "fitWidth": false,
        "foregroundColor": "",
        "backgroundColor": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/barcode-generator \
  --header 'content-type: application/json' \
  --data '{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}'
echo '{
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
}' |  \
  http POST {{baseUrl}}/barcode-generator \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "type": "",\n  "value": "",\n  "format": "",\n  "width": 0,\n  "height": 0,\n  "showText": false,\n  "fitWidth": false,\n  "foregroundColor": "",\n  "backgroundColor": ""\n}' \
  --output-document \
  - {{baseUrl}}/barcode-generator
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "type": "",
  "value": "",
  "format": "",
  "width": 0,
  "height": 0,
  "showText": false,
  "fitWidth": false,
  "foregroundColor": "",
  "backgroundColor": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/barcode-generator")! 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()
GET content-moderation-get
{{baseUrl}}/content-moderation
QUERY PARAMS

text
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/content-moderation?text=");

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

(client/get "{{baseUrl}}/content-moderation" {:query-params {:text ""}})
require "http/client"

url = "{{baseUrl}}/content-moderation?text="

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

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

func main() {

	url := "{{baseUrl}}/content-moderation?text="

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

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

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

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

}
GET /baseUrl/content-moderation?text= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/content-moderation?text=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/content-moderation?text="))
    .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}}/content-moderation?text=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/content-moderation?text=")
  .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}}/content-moderation?text=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/content-moderation',
  params: {text: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/content-moderation?text=';
const options = {method: 'GET'};

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}}/content-moderation?text=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/content-moderation?text=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/content-moderation?text=',
  headers: {}
};

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}}/content-moderation',
  qs: {text: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/content-moderation');

req.query({
  text: ''
});

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}}/content-moderation',
  params: {text: ''}
};

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

const url = '{{baseUrl}}/content-moderation?text=';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/content-moderation?text="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/content-moderation?text=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/content-moderation?text=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/content-moderation?text=');

echo $response->getBody();
setUrl('{{baseUrl}}/content-moderation');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'text' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/content-moderation');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'text' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/content-moderation?text=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/content-moderation?text=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/content-moderation?text=")

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

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

url = "{{baseUrl}}/content-moderation"

querystring = {"text":""}

response = requests.get(url, params=querystring)

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

url <- "{{baseUrl}}/content-moderation"

queryString <- list(text = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/content-moderation?text=")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/content-moderation') do |req|
  req.params['text'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("text", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/content-moderation?text='
http GET '{{baseUrl}}/content-moderation?text='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/content-moderation?text='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/content-moderation?text=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
POST html-renderer-post
{{baseUrl}}/html-renderer
BODY json

{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/html-renderer");

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, "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}");

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

(client/post "{{baseUrl}}/html-renderer" {:content-type :json
                                                          :form-params {:html ""
                                                                        :format ""
                                                                        :title ""
                                                                        :imageWidth 0
                                                                        :imageHeight 0
                                                                        :pageSize ""
                                                                        :pageWidth ""
                                                                        :pageHeight ""
                                                                        :margin ""
                                                                        :marginLeft ""
                                                                        :marginRight ""
                                                                        :marginTop ""
                                                                        :marginBottom ""
                                                                        :landscape false
                                                                        :css ""
                                                                        :header ""
                                                                        :footer ""}})
require "http/client"

url = "{{baseUrl}}/html-renderer"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\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}}/html-renderer"),
    Content = new StringContent("{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\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}}/html-renderer");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/html-renderer"

	payload := strings.NewReader("{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}")

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

	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/html-renderer HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 308

{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/html-renderer")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/html-renderer"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\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  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/html-renderer")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/html-renderer")
  .header("content-type", "application/json")
  .body("{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  html: '',
  format: '',
  title: '',
  imageWidth: 0,
  imageHeight: 0,
  pageSize: '',
  pageWidth: '',
  pageHeight: '',
  margin: '',
  marginLeft: '',
  marginRight: '',
  marginTop: '',
  marginBottom: '',
  landscape: false,
  css: '',
  header: '',
  footer: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/html-renderer');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/html-renderer',
  headers: {'content-type': 'application/json'},
  data: {
    html: '',
    format: '',
    title: '',
    imageWidth: 0,
    imageHeight: 0,
    pageSize: '',
    pageWidth: '',
    pageHeight: '',
    margin: '',
    marginLeft: '',
    marginRight: '',
    marginTop: '',
    marginBottom: '',
    landscape: false,
    css: '',
    header: '',
    footer: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/html-renderer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"html":"","format":"","title":"","imageWidth":0,"imageHeight":0,"pageSize":"","pageWidth":"","pageHeight":"","margin":"","marginLeft":"","marginRight":"","marginTop":"","marginBottom":"","landscape":false,"css":"","header":"","footer":""}'
};

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}}/html-renderer',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "html": "",\n  "format": "",\n  "title": "",\n  "imageWidth": 0,\n  "imageHeight": 0,\n  "pageSize": "",\n  "pageWidth": "",\n  "pageHeight": "",\n  "margin": "",\n  "marginLeft": "",\n  "marginRight": "",\n  "marginTop": "",\n  "marginBottom": "",\n  "landscape": false,\n  "css": "",\n  "header": "",\n  "footer": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/html-renderer")
  .post(body)
  .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/html-renderer',
  headers: {
    '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({
  html: '',
  format: '',
  title: '',
  imageWidth: 0,
  imageHeight: 0,
  pageSize: '',
  pageWidth: '',
  pageHeight: '',
  margin: '',
  marginLeft: '',
  marginRight: '',
  marginTop: '',
  marginBottom: '',
  landscape: false,
  css: '',
  header: '',
  footer: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/html-renderer',
  headers: {'content-type': 'application/json'},
  body: {
    html: '',
    format: '',
    title: '',
    imageWidth: 0,
    imageHeight: 0,
    pageSize: '',
    pageWidth: '',
    pageHeight: '',
    margin: '',
    marginLeft: '',
    marginRight: '',
    marginTop: '',
    marginBottom: '',
    landscape: false,
    css: '',
    header: '',
    footer: ''
  },
  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}}/html-renderer');

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

req.type('json');
req.send({
  html: '',
  format: '',
  title: '',
  imageWidth: 0,
  imageHeight: 0,
  pageSize: '',
  pageWidth: '',
  pageHeight: '',
  margin: '',
  marginLeft: '',
  marginRight: '',
  marginTop: '',
  marginBottom: '',
  landscape: false,
  css: '',
  header: '',
  footer: ''
});

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}}/html-renderer',
  headers: {'content-type': 'application/json'},
  data: {
    html: '',
    format: '',
    title: '',
    imageWidth: 0,
    imageHeight: 0,
    pageSize: '',
    pageWidth: '',
    pageHeight: '',
    margin: '',
    marginLeft: '',
    marginRight: '',
    marginTop: '',
    marginBottom: '',
    landscape: false,
    css: '',
    header: '',
    footer: ''
  }
};

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

const url = '{{baseUrl}}/html-renderer';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"html":"","format":"","title":"","imageWidth":0,"imageHeight":0,"pageSize":"","pageWidth":"","pageHeight":"","margin":"","marginLeft":"","marginRight":"","marginTop":"","marginBottom":"","landscape":false,"css":"","header":"","footer":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"html": @"",
                              @"format": @"",
                              @"title": @"",
                              @"imageWidth": @0,
                              @"imageHeight": @0,
                              @"pageSize": @"",
                              @"pageWidth": @"",
                              @"pageHeight": @"",
                              @"margin": @"",
                              @"marginLeft": @"",
                              @"marginRight": @"",
                              @"marginTop": @"",
                              @"marginBottom": @"",
                              @"landscape": @NO,
                              @"css": @"",
                              @"header": @"",
                              @"footer": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/html-renderer"]
                                                       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}}/html-renderer" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/html-renderer",
  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([
    'html' => '',
    'format' => '',
    'title' => '',
    'imageWidth' => 0,
    'imageHeight' => 0,
    'pageSize' => '',
    'pageWidth' => '',
    'pageHeight' => '',
    'margin' => '',
    'marginLeft' => '',
    'marginRight' => '',
    'marginTop' => '',
    'marginBottom' => '',
    'landscape' => null,
    'css' => '',
    'header' => '',
    'footer' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/html-renderer', [
  'body' => '{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'html' => '',
  'format' => '',
  'title' => '',
  'imageWidth' => 0,
  'imageHeight' => 0,
  'pageSize' => '',
  'pageWidth' => '',
  'pageHeight' => '',
  'margin' => '',
  'marginLeft' => '',
  'marginRight' => '',
  'marginTop' => '',
  'marginBottom' => '',
  'landscape' => null,
  'css' => '',
  'header' => '',
  'footer' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'html' => '',
  'format' => '',
  'title' => '',
  'imageWidth' => 0,
  'imageHeight' => 0,
  'pageSize' => '',
  'pageWidth' => '',
  'pageHeight' => '',
  'margin' => '',
  'marginLeft' => '',
  'marginRight' => '',
  'marginTop' => '',
  'marginBottom' => '',
  'landscape' => null,
  'css' => '',
  'header' => '',
  'footer' => ''
]));
$request->setRequestUrl('{{baseUrl}}/html-renderer');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  '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 '{{baseUrl}}/html-renderer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/html-renderer' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}'
import http.client

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

payload = "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}"

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

conn.request("POST", "/baseUrl/html-renderer", payload, headers)

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

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

url = "{{baseUrl}}/html-renderer"

payload = {
    "html": "",
    "format": "",
    "title": "",
    "imageWidth": 0,
    "imageHeight": 0,
    "pageSize": "",
    "pageWidth": "",
    "pageHeight": "",
    "margin": "",
    "marginLeft": "",
    "marginRight": "",
    "marginTop": "",
    "marginBottom": "",
    "landscape": False,
    "css": "",
    "header": "",
    "footer": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/html-renderer"

payload <- "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/html-renderer")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\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/html-renderer') do |req|
  req.body = "{\n  \"html\": \"\",\n  \"format\": \"\",\n  \"title\": \"\",\n  \"imageWidth\": 0,\n  \"imageHeight\": 0,\n  \"pageSize\": \"\",\n  \"pageWidth\": \"\",\n  \"pageHeight\": \"\",\n  \"margin\": \"\",\n  \"marginLeft\": \"\",\n  \"marginRight\": \"\",\n  \"marginTop\": \"\",\n  \"marginBottom\": \"\",\n  \"landscape\": false,\n  \"css\": \"\",\n  \"header\": \"\",\n  \"footer\": \"\"\n}"
end

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

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

    let payload = json!({
        "html": "",
        "format": "",
        "title": "",
        "imageWidth": 0,
        "imageHeight": 0,
        "pageSize": "",
        "pageWidth": "",
        "pageHeight": "",
        "margin": "",
        "marginLeft": "",
        "marginRight": "",
        "marginTop": "",
        "marginBottom": "",
        "landscape": false,
        "css": "",
        "header": "",
        "footer": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    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}}/html-renderer \
  --header 'content-type: application/json' \
  --data '{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}'
echo '{
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
}' |  \
  http POST {{baseUrl}}/html-renderer \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "html": "",\n  "format": "",\n  "title": "",\n  "imageWidth": 0,\n  "imageHeight": 0,\n  "pageSize": "",\n  "pageWidth": "",\n  "pageHeight": "",\n  "margin": "",\n  "marginLeft": "",\n  "marginRight": "",\n  "marginTop": "",\n  "marginBottom": "",\n  "landscape": false,\n  "css": "",\n  "header": "",\n  "footer": ""\n}' \
  --output-document \
  - {{baseUrl}}/html-renderer
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "html": "",
  "format": "",
  "title": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "pageSize": "",
  "pageWidth": "",
  "pageHeight": "",
  "margin": "",
  "marginLeft": "",
  "marginRight": "",
  "marginTop": "",
  "marginBottom": "",
  "landscape": false,
  "css": "",
  "header": "",
  "footer": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/html-renderer")! 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()
GET reverse-geocoding-get
{{baseUrl}}/reverse-geocoding
QUERY PARAMS

lat
lon
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reverse-geocoding?lat=&lon=");

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

(client/get "{{baseUrl}}/reverse-geocoding" {:query-params {:lat ""
                                                                            :lon ""}})
require "http/client"

url = "{{baseUrl}}/reverse-geocoding?lat=&lon="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/reverse-geocoding?lat=&lon="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reverse-geocoding?lat=&lon=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/reverse-geocoding?lat=&lon="

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

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

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

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

}
GET /baseUrl/reverse-geocoding?lat=&lon= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/reverse-geocoding?lat=&lon=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reverse-geocoding?lat=&lon="))
    .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}}/reverse-geocoding?lat=&lon=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/reverse-geocoding?lat=&lon=")
  .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}}/reverse-geocoding?lat=&lon=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reverse-geocoding',
  params: {lat: '', lon: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reverse-geocoding?lat=&lon=';
const options = {method: 'GET'};

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}}/reverse-geocoding?lat=&lon=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/reverse-geocoding?lat=&lon=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reverse-geocoding?lat=&lon=',
  headers: {}
};

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}}/reverse-geocoding',
  qs: {lat: '', lon: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/reverse-geocoding');

req.query({
  lat: '',
  lon: ''
});

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}}/reverse-geocoding',
  params: {lat: '', lon: ''}
};

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

const url = '{{baseUrl}}/reverse-geocoding?lat=&lon=';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reverse-geocoding?lat=&lon="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/reverse-geocoding?lat=&lon=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reverse-geocoding?lat=&lon=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/reverse-geocoding?lat=&lon=');

echo $response->getBody();
setUrl('{{baseUrl}}/reverse-geocoding');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'lat' => '',
  'lon' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/reverse-geocoding');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'lat' => '',
  'lon' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reverse-geocoding?lat=&lon=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reverse-geocoding?lat=&lon=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/reverse-geocoding?lat=&lon=")

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

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

url = "{{baseUrl}}/reverse-geocoding"

querystring = {"lat":"","lon":""}

response = requests.get(url, params=querystring)

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

url <- "{{baseUrl}}/reverse-geocoding"

queryString <- list(
  lat = "",
  lon = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/reverse-geocoding?lat=&lon=")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/reverse-geocoding') do |req|
  req.params['lat'] = ''
  req.params['lon'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("lat", ""),
        ("lon", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/reverse-geocoding?lat=&lon='
http GET '{{baseUrl}}/reverse-geocoding?lat=&lon='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/reverse-geocoding?lat=&lon='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reverse-geocoding?lat=&lon=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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 unit-converter-get
{{baseUrl}}/unit-converter
QUERY PARAMS

from
to
value
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/unit-converter?from=&to=&value=");

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

(client/get "{{baseUrl}}/unit-converter" {:query-params {:from ""
                                                                         :to ""
                                                                         :value ""}})
require "http/client"

url = "{{baseUrl}}/unit-converter?from=&to=&value="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/unit-converter?from=&to=&value="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/unit-converter?from=&to=&value=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/unit-converter?from=&to=&value="

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

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

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

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

}
GET /baseUrl/unit-converter?from=&to=&value= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/unit-converter?from=&to=&value=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/unit-converter?from=&to=&value="))
    .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}}/unit-converter?from=&to=&value=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/unit-converter?from=&to=&value=")
  .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}}/unit-converter?from=&to=&value=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/unit-converter',
  params: {from: '', to: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/unit-converter?from=&to=&value=';
const options = {method: 'GET'};

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}}/unit-converter?from=&to=&value=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/unit-converter?from=&to=&value=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/unit-converter?from=&to=&value=',
  headers: {}
};

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}}/unit-converter',
  qs: {from: '', to: '', value: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/unit-converter');

req.query({
  from: '',
  to: '',
  value: ''
});

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}}/unit-converter',
  params: {from: '', to: '', value: ''}
};

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

const url = '{{baseUrl}}/unit-converter?from=&to=&value=';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/unit-converter?from=&to=&value="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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}}/unit-converter?from=&to=&value=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/unit-converter?from=&to=&value=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/unit-converter?from=&to=&value=');

echo $response->getBody();
setUrl('{{baseUrl}}/unit-converter');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'from' => '',
  'to' => '',
  'value' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/unit-converter');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'from' => '',
  'to' => '',
  'value' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/unit-converter?from=&to=&value=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/unit-converter?from=&to=&value=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/unit-converter?from=&to=&value=")

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

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

url = "{{baseUrl}}/unit-converter"

querystring = {"from":"","to":"","value":""}

response = requests.get(url, params=querystring)

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

url <- "{{baseUrl}}/unit-converter"

queryString <- list(
  from = "",
  to = "",
  value = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/unit-converter?from=&to=&value=")

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

request = Net::HTTP::Get.new(url)

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

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

response = conn.get('/baseUrl/unit-converter') do |req|
  req.params['from'] = ''
  req.params['to'] = ''
  req.params['value'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("from", ""),
        ("to", ""),
        ("value", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/unit-converter?from=&to=&value='
http GET '{{baseUrl}}/unit-converter?from=&to=&value='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/unit-converter?from=&to=&value='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/unit-converter?from=&to=&value=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()