GET Get a list of offers for addon services for the specified guest stay details.
{{baseUrl}}/api/booking/v0/addons
HEADERS

App-Id
App-Key
QUERY PARAMS

hotelId
arrivalDate
departureDate
channelCode
adults
rooms
roomType
ratePlanCode
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/addons" {:headers {:app-id ""
                                                                           :app-key ""}
                                                                 :query-params {:hotelId ""
                                                                                :arrivalDate ""
                                                                                :departureDate ""
                                                                                :channelCode ""
                                                                                :adults ""
                                                                                :rooms ""
                                                                                :roomType ""
                                                                                :ratePlanCode ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode="
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode="),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=");
var request = new RestRequest("", Method.Get);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode="

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode= HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode="))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/addons',
  params: {
    hotelId: '',
    arrivalDate: '',
    departureDate: '',
    channelCode: '',
    adults: '',
    rooms: '',
    roomType: '',
    ratePlanCode: ''
  },
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/addons',
  qs: {
    hotelId: '',
    arrivalDate: '',
    departureDate: '',
    channelCode: '',
    adults: '',
    rooms: '',
    roomType: '',
    ratePlanCode: ''
  },
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/addons');

req.query({
  hotelId: '',
  arrivalDate: '',
  departureDate: '',
  channelCode: '',
  adults: '',
  rooms: '',
  roomType: '',
  ratePlanCode: ''
});

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/addons',
  params: {
    hotelId: '',
    arrivalDate: '',
    departureDate: '',
    channelCode: '',
    adults: '',
    rooms: '',
    roomType: '',
    ratePlanCode: ''
  },
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/addons');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'hotelId' => '',
  'arrivalDate' => '',
  'departureDate' => '',
  'channelCode' => '',
  'adults' => '',
  'rooms' => '',
  'roomType' => '',
  'ratePlanCode' => ''
]);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/addons');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'hotelId' => '',
  'arrivalDate' => '',
  'departureDate' => '',
  'channelCode' => '',
  'adults' => '',
  'rooms' => '',
  'roomType' => '',
  'ratePlanCode' => ''
]));

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/addons"

querystring = {"hotelId":"","arrivalDate":"","departureDate":"","channelCode":"","adults":"","rooms":"","roomType":"","ratePlanCode":""}

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/addons"

queryString <- list(
  hotelId = "",
  arrivalDate = "",
  departureDate = "",
  channelCode = "",
  adults = "",
  rooms = "",
  roomType = "",
  ratePlanCode = ""
)

response <- VERB("GET", url, query = queryString, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/addons') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
  req.params['hotelId'] = ''
  req.params['arrivalDate'] = ''
  req.params['departureDate'] = ''
  req.params['channelCode'] = ''
  req.params['adults'] = ''
  req.params['rooms'] = ''
  req.params['roomType'] = ''
  req.params['ratePlanCode'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("hotelId", ""),
        ("arrivalDate", ""),
        ("departureDate", ""),
        ("channelCode", ""),
        ("adults", ""),
        ("rooms", ""),
        ("roomType", ""),
        ("ratePlanCode", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=' \
  --header 'app-id: ' \
  --header 'app-key: '
http GET '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=' \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - '{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode='
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/addons?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=&rooms=&roomType=&ratePlanCode=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Gets the availability and occupancy for a specific hotel and timespan.
{{baseUrl}}/api/booking/v0/availability
HEADERS

App-Id
App-Key
QUERY PARAMS

hotelId
from
to
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/availability" {:headers {:app-id ""
                                                                                 :app-key ""}
                                                                       :query-params {:hotelId ""
                                                                                      :from ""
                                                                                      :to ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to="
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to="

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/availability?hotelId=&from=&to= HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to="))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/availability?hotelId=&from=&to=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/availability?hotelId=&from=&to=');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/availability',
  params: {hotelId: '', from: '', to: ''},
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/availability?hotelId=&from=&to=',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/availability?hotelId=&from=&to=',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/availability',
  qs: {hotelId: '', from: '', to: ''},
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/availability');

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

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/availability',
  params: {hotelId: '', from: '', to: ''},
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/availability');
$request->setMethod(HTTP_METH_GET);

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

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

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

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/availability?hotelId=&from=&to=", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/availability"

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

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/availability"

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

response <- VERB("GET", url, query = queryString, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/availability') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
  req.params['hotelId'] = ''
  req.params['from'] = ''
  req.params['to'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=' \
  --header 'app-id: ' \
  --header 'app-key: '
http GET '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=' \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - '{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to='
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/availability?hotelId=&from=&to=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Get total blocks count that match the given filter criteria.
{{baseUrl}}/api/booking/v0/blocks/$count
HEADERS

App-Id
App-Key
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/blocks/$count");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/blocks/$count" {:headers {:app-id ""
                                                                                  :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/blocks/$count"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/blocks/$count"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/blocks/$count HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/blocks/$count")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/blocks/$count"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/blocks/$count")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/blocks/$count")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/blocks/$count');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/blocks/$count',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/blocks/$count';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/blocks/$count',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/blocks/$count")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/blocks/$count',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/blocks/$count',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/blocks/$count');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/blocks/$count',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/blocks/$count';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/blocks/$count"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/blocks/$count" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/blocks/$count');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/blocks/$count');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/blocks/$count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/blocks/$count' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/blocks/$count", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/blocks/$count"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/blocks/$count"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/blocks/$count")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/blocks/$count') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/blocks/$count";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/booking/v0/blocks/$count' \
  --header 'app-id: ' \
  --header 'app-key: '
http GET '{{baseUrl}}/api/booking/v0/blocks/$count' \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - '{{baseUrl}}/api/booking/v0/blocks/$count'
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/blocks/$count")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Gets a list of blocks.
{{baseUrl}}/api/booking/v0/blocks
HEADERS

App-Id
App-Key
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/blocks");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/blocks" {:headers {:app-id ""
                                                                           :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/blocks"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/blocks"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/blocks HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/blocks"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/blocks")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/blocks")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/blocks');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/blocks',
  headers: {'app-id': '', 'app-key': ''}
};

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

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}}/api/booking/v0/blocks',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/blocks")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/blocks',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/blocks',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/blocks');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/blocks',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/blocks';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/blocks" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/blocks');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/blocks');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

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

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/blocks", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/blocks"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/blocks"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/blocks")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/blocks') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

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

let headers = [
  "app-id": "",
  "app-key": ""
]

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

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

dataTask.resume()
GET Gets the details for a specific block.
{{baseUrl}}/api/booking/v0/blocks/:blockCode
HEADERS

App-Id
App-Key
QUERY PARAMS

blockCode
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/blocks/:blockCode");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/blocks/:blockCode" {:headers {:app-id ""
                                                                                      :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/blocks/:blockCode"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/blocks/:blockCode"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/blocks/:blockCode HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/blocks/:blockCode")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/blocks/:blockCode"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/blocks/:blockCode")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/blocks/:blockCode")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/blocks/:blockCode');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/blocks/:blockCode',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/blocks/:blockCode';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/blocks/:blockCode',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/blocks/:blockCode")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/blocks/:blockCode',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/blocks/:blockCode',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/blocks/:blockCode');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/blocks/:blockCode',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/blocks/:blockCode';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/blocks/:blockCode"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/blocks/:blockCode" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/blocks/:blockCode');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/blocks/:blockCode');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

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

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/blocks/:blockCode", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/blocks/:blockCode"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/blocks/:blockCode"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/blocks/:blockCode")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/blocks/:blockCode') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/blocks/:blockCode";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/booking/v0/blocks/:blockCode \
  --header 'app-id: ' \
  --header 'app-key: '
http GET {{baseUrl}}/api/booking/v0/blocks/:blockCode \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/blocks/:blockCode
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

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

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

dataTask.resume()
POST Assign a room to a reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room" {:headers {:app-id ""
                                                                                                                                          :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room");
var request = new RestRequest("", Method.Post);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
POST /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"))
    .header("app-id", "")
    .header("app-key", "")
    .method("POST", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room")
  .header("app-id", "")
  .header("app-key", "")
  .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('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room',
  method: 'POST',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room');
$request->setRequestMethod('POST');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room' -Method POST -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room' -Method POST -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("POST", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room"

response <- VERB("POST", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room")

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

request = Net::HTTP::Post.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.post('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room \
  --header 'app-id: ' \
  --header 'app-key: '
http POST {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room \
  app-id:'' \
  app-key:''
wget --quiet \
  --method POST \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/assign_room")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
POST Cancel one reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel" {:headers {:app-id ""
                                                                                                                                     :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel");
var request = new RestRequest("", Method.Post);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
POST /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"))
    .header("app-id", "")
    .header("app-key", "")
    .method("POST", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel")
  .header("app-id", "")
  .header("app-key", "")
  .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('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel',
  method: 'POST',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel');
$request->setRequestMethod('POST');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel' -Method POST -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel' -Method POST -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("POST", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel"

response <- VERB("POST", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel")

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

request = Net::HTTP::Post.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.post('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel \
  --header 'app-id: ' \
  --header 'app-key: '
http POST {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel \
  app-id:'' \
  app-key:''
wget --quiet \
  --method POST \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/cancel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
POST Create a new booking.
{{baseUrl}}/api/booking/v0/bookings
HEADERS

App-Id
App-Key
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/booking/v0/bookings" {:headers {:app-id ""
                                                                              :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
POST /baseUrl/api/booking/v0/bookings HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/booking/v0/bookings")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings"))
    .header("app-id", "")
    .header("app-key", "")
    .method("POST", 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}}/api/booking/v0/bookings")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/booking/v0/bookings")
  .header("app-id", "")
  .header("app-key", "")
  .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('POST', '{{baseUrl}}/api/booking/v0/bookings');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings',
  method: 'POST',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/booking/v0/bookings');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/booking/v0/bookings', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings');
$request->setRequestMethod('POST');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings' -Method POST -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings' -Method POST -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("POST", "/baseUrl/api/booking/v0/bookings", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings"

response <- VERB("POST", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings")

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

request = Net::HTTP::Post.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.post('/baseUrl/api/booking/v0/bookings') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/booking/v0/bookings \
  --header 'app-id: ' \
  --header 'app-key: '
http POST {{baseUrl}}/api/booking/v0/bookings \
  app-id:'' \
  app-key:''
wget --quiet \
  --method POST \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Find bookings matching the given filter criteria.
{{baseUrl}}/api/booking/v0/bookings
HEADERS

App-Id
App-Key
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/bookings" {:headers {:app-id ""
                                                                             :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/bookings HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/bookings")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/bookings")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/bookings');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/bookings',
  headers: {'app-id': '', 'app-key': ''}
};

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

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}}/api/booking/v0/bookings',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/bookings',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/bookings');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

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

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/bookings", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/bookings') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

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

let headers = [
  "app-id": "",
  "app-key": ""
]

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

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

dataTask.resume()
GET Get total count of bookings matchung the given filter criteria.
{{baseUrl}}/api/booking/v0/bookings/$count
HEADERS

App-Id
App-Key
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/$count");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/bookings/$count" {:headers {:app-id ""
                                                                                    :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/$count"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/$count"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/bookings/$count HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/bookings/$count")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/$count"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/bookings/$count")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/bookings/$count")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/bookings/$count');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/bookings/$count',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/$count';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/$count',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/$count")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/$count',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/bookings/$count',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/bookings/$count');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/$count',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/$count';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/$count"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/$count" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/$count');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/$count');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/$count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/$count' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/bookings/$count", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/$count"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/$count"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/$count")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/bookings/$count') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/$count";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/booking/v0/bookings/$count' \
  --header 'app-id: ' \
  --header 'app-key: '
http GET '{{baseUrl}}/api/booking/v0/bookings/$count' \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - '{{baseUrl}}/api/booking/v0/bookings/$count'
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/$count")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Load a specific reservation from a booking.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber" {:headers {:app-id ""
                                                                                                                             :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber \
  --header 'app-id: ' \
  --header 'app-key: '
http GET {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Load all reservations for one booking by confirmation id.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/bookings/:confirmationId" {:headers {:app-id ""
                                                                                             :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/bookings/:confirmationId HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId"))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/bookings/:confirmationId")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/bookings/:confirmationId")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/bookings/:confirmationId');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/bookings/:confirmationId',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

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

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

curl_close($curl);

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

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId');
$request->setRequestMethod('GET');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

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

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/bookings/:confirmationId", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId"

response <- VERB("GET", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/bookings/:confirmationId') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId \
  --header 'app-id: ' \
  --header 'app-key: '
http GET {{baseUrl}}/api/booking/v0/bookings/:confirmationId \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

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

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

dataTask.resume()
PATCH Partially updates a reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/patch "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber" {:headers {:app-id ""
                                                                                                                               :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.patch url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber");
var request = new RestRequest("", Method.Patch);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
PATCH /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"))
    .header("app-id", "")
    .header("app-key", "")
    .method("PATCH", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .patch(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .header("app-id", "")
  .header("app-key", "")
  .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('PATCH', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber';
const options = {method: 'PATCH', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  method: 'PATCH',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")
  .patch(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'PATCH',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');

req.headers({
  'app-id': '',
  'app-key': ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber';
const options = {method: 'PATCH', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber');
$request->setRequestMethod('PATCH');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber' -Method PATCH -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber' -Method PATCH -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("PATCH", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber"

response <- VERB("PATCH", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")

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

request = Net::HTTP::Patch.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.patch('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber \
  --header 'app-id: ' \
  --header 'app-key: '
http PATCH {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber \
  app-id:'' \
  app-key:''
wget --quiet \
  --method PATCH \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
POST Performs a check in operation for a reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in" {:headers {:app-id ""
                                                                                                                                       :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in");
var request = new RestRequest("", Method.Post);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
POST /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"))
    .header("app-id", "")
    .header("app-key", "")
    .method("POST", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in")
  .header("app-id", "")
  .header("app-key", "")
  .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('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in',
  method: 'POST',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in');
$request->setRequestMethod('POST');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in' -Method POST -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in' -Method POST -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("POST", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in"

response <- VERB("POST", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in")

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

request = Net::HTTP::Post.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.post('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in \
  --header 'app-id: ' \
  --header 'app-key: '
http POST {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in \
  app-id:'' \
  app-key:''
wget --quiet \
  --method POST \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_in")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
POST Performs a check out operation for a reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out" {:headers {:app-id ""
                                                                                                                                        :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out");
var request = new RestRequest("", Method.Post);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
POST /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"))
    .header("app-id", "")
    .header("app-key", "")
    .method("POST", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out")
  .header("app-id", "")
  .header("app-key", "")
  .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('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out',
  method: 'POST',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out');
$request->setRequestMethod('POST');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out' -Method POST -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out' -Method POST -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("POST", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out"

response <- VERB("POST", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out")

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

request = Net::HTTP::Post.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.post('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out \
  --header 'app-id: ' \
  --header 'app-key: '
http POST {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out \
  app-id:'' \
  app-key:''
wget --quiet \
  --method POST \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/check_out")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
POST Performs a chip and pin credit card authorization for a reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize" {:headers {:app-id ""
                                                                                                                                            :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize");
var request = new RestRequest("", Method.Post);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
POST /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"))
    .header("app-id", "")
    .header("app-key", "")
    .method("POST", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize")
  .header("app-id", "")
  .header("app-key", "")
  .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('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize',
  method: 'POST',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize")
  .post(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'POST',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize');

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize';
const options = {method: 'POST', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize');
$request->setRequestMethod('POST');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize' -Method POST -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize' -Method POST -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("POST", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize"

response <- VERB("POST", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize")

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

request = Net::HTTP::Post.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.post('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize \
  --header 'app-id: ' \
  --header 'app-key: '
http POST {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize \
  app-id:'' \
  app-key:''
wget --quiet \
  --method POST \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/pre_authorize")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
PUT Post a payment token for a reservation.
{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token
HEADERS

App-Id
App-Key
QUERY PARAMS

confirmationId
reservationNumber
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/put "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token" {:headers {:app-id ""
                                                                                                                                           :app-key ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token");
var request = new RestRequest("", Method.Put);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
PUT /baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"))
    .header("app-id", "")
    .header("app-key", "")
    .method("PUT", 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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token")
  .put(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token")
  .header("app-id", "")
  .header("app-key", "")
  .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('PUT', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token',
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token';
const options = {method: 'PUT', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token',
  method: 'PUT',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token")
  .put(null)
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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: 'PUT',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token',
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('PUT', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token');

req.headers({
  'app-id': '',
  'app-key': ''
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token',
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token';
const options = {method: 'PUT', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token');
$request->setRequestMethod('PUT');
$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token' -Method PUT -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("PUT", "/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token"

response <- VERB("PUT", url, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token")

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

request = Net::HTTP::Put.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.put('/baseUrl/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token \
  --header 'app-id: ' \
  --header 'app-key: '
http PUT {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token \
  app-id:'' \
  app-key:''
wget --quiet \
  --method PUT \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - {{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/bookings/:confirmationId/reservations/:reservationNumber/payment_token")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Get a list of daily rates given a hotel Id, a channel code and a date range.
{{baseUrl}}/api/booking/v0/daily_rates
HEADERS

App-Id
App-Key
QUERY PARAMS

hotelId
from
to
channelCode
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/daily_rates" {:headers {:app-id ""
                                                                                :app-key ""}
                                                                      :query-params {:hotelId ""
                                                                                     :from ""
                                                                                     :to ""
                                                                                     :channelCode ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode="
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode="

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode= HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode="))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/daily_rates',
  params: {hotelId: '', from: '', to: '', channelCode: ''},
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/daily_rates',
  qs: {hotelId: '', from: '', to: '', channelCode: ''},
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/daily_rates');

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

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/daily_rates',
  params: {hotelId: '', from: '', to: '', channelCode: ''},
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/daily_rates');
$request->setMethod(HTTP_METH_GET);

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

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/daily_rates');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'hotelId' => '',
  'from' => '',
  'to' => '',
  'channelCode' => ''
]));

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/daily_rates"

querystring = {"hotelId":"","from":"","to":"","channelCode":""}

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/daily_rates"

queryString <- list(
  hotelId = "",
  from = "",
  to = "",
  channelCode = ""
)

response <- VERB("GET", url, query = queryString, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/daily_rates') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
  req.params['hotelId'] = ''
  req.params['from'] = ''
  req.params['to'] = ''
  req.params['channelCode'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=' \
  --header 'app-id: ' \
  --header 'app-key: '
http GET '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=' \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - '{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode='
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/daily_rates?hotelId=&from=&to=&channelCode=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Get a list of room offers for the specified guest stay details.
{{baseUrl}}/api/booking/v0/rates
HEADERS

App-Id
App-Key
QUERY PARAMS

hotelId
arrivalDate
departureDate
channelCode
adults
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "app-id: ");
headers = curl_slist_append(headers, "app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/booking/v0/rates" {:headers {:app-id ""
                                                                          :app-key ""}
                                                                :query-params {:hotelId ""
                                                                               :arrivalDate ""
                                                                               :departureDate ""
                                                                               :channelCode ""
                                                                               :adults ""}})
require "http/client"

url = "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults="
headers = HTTP::Headers{
  "app-id" => ""
  "app-key" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults="),
    Headers =
    {
        { "app-id", "" },
        { "app-key", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=");
var request = new RestRequest("", Method.Get);
request.AddHeader("app-id", "");
request.AddHeader("app-key", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults="

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

	req.Header.Add("app-id", "")
	req.Header.Add("app-key", "")

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

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

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

}
GET /baseUrl/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults= HTTP/1.1
App-Id: 
App-Key: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=")
  .setHeader("app-id", "")
  .setHeader("app-key", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults="))
    .header("app-id", "")
    .header("app-key", "")
    .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}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=")
  .header("app-id", "")
  .header("app-key", "")
  .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}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=');
xhr.setRequestHeader('app-id', '');
xhr.setRequestHeader('app-key', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/booking/v0/rates',
  params: {hotelId: '', arrivalDate: '', departureDate: '', channelCode: '', adults: ''},
  headers: {'app-id': '', 'app-key': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=',
  method: 'GET',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=")
  .get()
  .addHeader("app-id", "")
  .addHeader("app-key", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=',
  headers: {
    'app-id': '',
    'app-key': ''
  }
};

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}}/api/booking/v0/rates',
  qs: {hotelId: '', arrivalDate: '', departureDate: '', channelCode: '', adults: ''},
  headers: {'app-id': '', 'app-key': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/booking/v0/rates');

req.query({
  hotelId: '',
  arrivalDate: '',
  departureDate: '',
  channelCode: '',
  adults: ''
});

req.headers({
  'app-id': '',
  'app-key': ''
});

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}}/api/booking/v0/rates',
  params: {hotelId: '', arrivalDate: '', departureDate: '', channelCode: '', adults: ''},
  headers: {'app-id': '', 'app-key': ''}
};

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

const url = '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=';
const options = {method: 'GET', headers: {'app-id': '', 'app-key': ''}};

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

NSDictionary *headers = @{ @"app-id": @"",
                           @"app-key": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=" in
let headers = Header.add_list (Header.init ()) [
  ("app-id", "");
  ("app-key", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "app-id: ",
    "app-key: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=', [
  'headers' => [
    'app-id' => '',
    'app-key' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/booking/v0/rates');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'hotelId' => '',
  'arrivalDate' => '',
  'departureDate' => '',
  'channelCode' => '',
  'adults' => ''
]);

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/booking/v0/rates');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'hotelId' => '',
  'arrivalDate' => '',
  'departureDate' => '',
  'channelCode' => '',
  'adults' => ''
]));

$request->setHeaders([
  'app-id' => '',
  'app-key' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("app-id", "")
$headers.Add("app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=' -Method GET -Headers $headers
import http.client

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

headers = {
    'app-id': "",
    'app-key': ""
}

conn.request("GET", "/baseUrl/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=", headers=headers)

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

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

url = "{{baseUrl}}/api/booking/v0/rates"

querystring = {"hotelId":"","arrivalDate":"","departureDate":"","channelCode":"","adults":""}

headers = {
    "app-id": "",
    "app-key": ""
}

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

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

url <- "{{baseUrl}}/api/booking/v0/rates"

queryString <- list(
  hotelId = "",
  arrivalDate = "",
  departureDate = "",
  channelCode = "",
  adults = ""
)

response <- VERB("GET", url, query = queryString, add_headers('app-id' = '', 'app-key' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=")

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

request = Net::HTTP::Get.new(url)
request["app-id"] = ''
request["app-key"] = ''

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

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

response = conn.get('/baseUrl/api/booking/v0/rates') do |req|
  req.headers['app-id'] = ''
  req.headers['app-key'] = ''
  req.params['hotelId'] = ''
  req.params['arrivalDate'] = ''
  req.params['departureDate'] = ''
  req.params['channelCode'] = ''
  req.params['adults'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("hotelId", ""),
        ("arrivalDate", ""),
        ("departureDate", ""),
        ("channelCode", ""),
        ("adults", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("app-id", "".parse().unwrap());
    headers.insert("app-key", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=' \
  --header 'app-id: ' \
  --header 'app-key: '
http GET '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=' \
  app-id:'' \
  app-key:''
wget --quiet \
  --method GET \
  --header 'app-id: ' \
  --header 'app-key: ' \
  --output-document \
  - '{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults='
import Foundation

let headers = [
  "app-id": "",
  "app-key": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/booking/v0/rates?hotelId=&arrivalDate=&departureDate=&channelCode=&adults=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()