Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/accountLinks");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/:parent/accountLinks" {:content-type :json
                                                                    :form-params {:accountLinkTarget {:allHotels false
                                                                                                      :hotelList {:partnerHotelIds []}}
                                                                                  :googleAdsCustomerName ""
                                                                                  :name ""
                                                                                  :status ""}})
require "http/client"

url = "{{baseUrl}}/v3/:parent/accountLinks"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/accountLinks"),
    Content = new StringContent("{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/accountLinks");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:parent/accountLinks"

	payload := strings.NewReader("{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v3/:parent/accountLinks HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 170

{
  "accountLinkTarget": {
    "allHotels": false,
    "hotelList": {
      "partnerHotelIds": []
    }
  },
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:parent/accountLinks")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/accountLinks"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:parent/accountLinks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:parent/accountLinks")
  .header("content-type", "application/json")
  .body("{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountLinkTarget: {
    allHotels: false,
    hotelList: {
      partnerHotelIds: []
    }
  },
  googleAdsCustomerName: '',
  name: '',
  status: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/:parent/accountLinks');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/accountLinks',
  headers: {'content-type': 'application/json'},
  data: {
    accountLinkTarget: {allHotels: false, hotelList: {partnerHotelIds: []}},
    googleAdsCustomerName: '',
    name: '',
    status: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/accountLinks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountLinkTarget":{"allHotels":false,"hotelList":{"partnerHotelIds":[]}},"googleAdsCustomerName":"","name":"","status":""}'
};

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}}/v3/:parent/accountLinks',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountLinkTarget": {\n    "allHotels": false,\n    "hotelList": {\n      "partnerHotelIds": []\n    }\n  },\n  "googleAdsCustomerName": "",\n  "name": "",\n  "status": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/accountLinks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/accountLinks',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  accountLinkTarget: {allHotels: false, hotelList: {partnerHotelIds: []}},
  googleAdsCustomerName: '',
  name: '',
  status: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/accountLinks',
  headers: {'content-type': 'application/json'},
  body: {
    accountLinkTarget: {allHotels: false, hotelList: {partnerHotelIds: []}},
    googleAdsCustomerName: '',
    name: '',
    status: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/:parent/accountLinks');

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

req.type('json');
req.send({
  accountLinkTarget: {
    allHotels: false,
    hotelList: {
      partnerHotelIds: []
    }
  },
  googleAdsCustomerName: '',
  name: '',
  status: ''
});

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}}/v3/:parent/accountLinks',
  headers: {'content-type': 'application/json'},
  data: {
    accountLinkTarget: {allHotels: false, hotelList: {partnerHotelIds: []}},
    googleAdsCustomerName: '',
    name: '',
    status: ''
  }
};

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

const url = '{{baseUrl}}/v3/:parent/accountLinks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountLinkTarget":{"allHotels":false,"hotelList":{"partnerHotelIds":[]}},"googleAdsCustomerName":"","name":"","status":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountLinkTarget": @{ @"allHotels": @NO, @"hotelList": @{ @"partnerHotelIds": @[  ] } },
                              @"googleAdsCustomerName": @"",
                              @"name": @"",
                              @"status": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/accountLinks" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/accountLinks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'accountLinkTarget' => [
        'allHotels' => null,
        'hotelList' => [
                'partnerHotelIds' => [
                                
                ]
        ]
    ],
    'googleAdsCustomerName' => '',
    'name' => '',
    'status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:parent/accountLinks', [
  'body' => '{
  "accountLinkTarget": {
    "allHotels": false,
    "hotelList": {
      "partnerHotelIds": []
    }
  },
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/accountLinks');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountLinkTarget' => [
    'allHotels' => null,
    'hotelList' => [
        'partnerHotelIds' => [
                
        ]
    ]
  ],
  'googleAdsCustomerName' => '',
  'name' => '',
  'status' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountLinkTarget' => [
    'allHotels' => null,
    'hotelList' => [
        'partnerHotelIds' => [
                
        ]
    ]
  ],
  'googleAdsCustomerName' => '',
  'name' => '',
  'status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:parent/accountLinks');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/accountLinks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountLinkTarget": {
    "allHotels": false,
    "hotelList": {
      "partnerHotelIds": []
    }
  },
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/accountLinks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountLinkTarget": {
    "allHotels": false,
    "hotelList": {
      "partnerHotelIds": []
    }
  },
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
}'
import http.client

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

payload = "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/:parent/accountLinks", payload, headers)

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

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

url = "{{baseUrl}}/v3/:parent/accountLinks"

payload = {
    "accountLinkTarget": {
        "allHotels": False,
        "hotelList": { "partnerHotelIds": [] }
    },
    "googleAdsCustomerName": "",
    "name": "",
    "status": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/:parent/accountLinks"

payload <- "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:parent/accountLinks")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v3/:parent/accountLinks') do |req|
  req.body = "{\n  \"accountLinkTarget\": {\n    \"allHotels\": false,\n    \"hotelList\": {\n      \"partnerHotelIds\": []\n    }\n  },\n  \"googleAdsCustomerName\": \"\",\n  \"name\": \"\",\n  \"status\": \"\"\n}"
end

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

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

    let payload = json!({
        "accountLinkTarget": json!({
            "allHotels": false,
            "hotelList": json!({"partnerHotelIds": ()})
        }),
        "googleAdsCustomerName": "",
        "name": "",
        "status": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:parent/accountLinks \
  --header 'content-type: application/json' \
  --data '{
  "accountLinkTarget": {
    "allHotels": false,
    "hotelList": {
      "partnerHotelIds": []
    }
  },
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
}'
echo '{
  "accountLinkTarget": {
    "allHotels": false,
    "hotelList": {
      "partnerHotelIds": []
    }
  },
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
}' |  \
  http POST {{baseUrl}}/v3/:parent/accountLinks \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountLinkTarget": {\n    "allHotels": false,\n    "hotelList": {\n      "partnerHotelIds": []\n    }\n  },\n  "googleAdsCustomerName": "",\n  "name": "",\n  "status": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:parent/accountLinks
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountLinkTarget": [
    "allHotels": false,
    "hotelList": ["partnerHotelIds": []]
  ],
  "googleAdsCustomerName": "",
  "name": "",
  "status": ""
] as [String : Any]

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

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

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

dataTask.resume()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:name");

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

(client/delete "{{baseUrl}}/v3/:name")
require "http/client"

url = "{{baseUrl}}/v3/:name"

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

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

func main() {

	url := "{{baseUrl}}/v3/:name"

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

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

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

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

}
DELETE /baseUrl/v3/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v3/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:name"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v3/:name")
  .asString();
const data = null;

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

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

xhr.open('DELETE', '{{baseUrl}}/v3/:name');

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

const options = {method: 'DELETE', url: '{{baseUrl}}/v3/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:name';
const options = {method: 'DELETE'};

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}}/v3/:name',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:name")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:name',
  headers: {}
};

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

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

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/v3/:name'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v3/:name');

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/v3/:name'};

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

const url = '{{baseUrl}}/v3/:name';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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}}/v3/:name" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/v3/:name');

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:name' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v3/:name")

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

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

url = "{{baseUrl}}/v3/:name"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v3/:name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/v3/:name")

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

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

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

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

response = conn.delete('/baseUrl/v3/:name') do |req|
end

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

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

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

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

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/v3/:name
http DELETE {{baseUrl}}/v3/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v3/:name
import Foundation

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

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

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/accountLinks");

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

(client/get "{{baseUrl}}/v3/:parent/accountLinks")
require "http/client"

url = "{{baseUrl}}/v3/:parent/accountLinks"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/accountLinks"

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

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

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

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

}
GET /baseUrl/v3/:parent/accountLinks HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/accountLinks")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/accountLinks"))
    .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}}/v3/:parent/accountLinks")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/accountLinks")
  .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}}/v3/:parent/accountLinks');

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/accountLinks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/accountLinks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/accountLinks',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/accountLinks")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/accountLinks',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/accountLinks'};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/accountLinks');

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}}/v3/:parent/accountLinks'};

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

const url = '{{baseUrl}}/v3/:parent/accountLinks';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/accountLinks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/accountLinks" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/accountLinks');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/accountLinks');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/accountLinks');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/accountLinks' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/accountLinks' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/accountLinks")

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

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

url = "{{baseUrl}}/v3/:parent/accountLinks"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/accountLinks"

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

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

url = URI("{{baseUrl}}/v3/:parent/accountLinks")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/accountLinks') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/accountLinks
http GET {{baseUrl}}/v3/:parent/accountLinks
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/accountLinks
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/accountLinks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST travelpartner.accounts.brands.create
{{baseUrl}}/v3/:parent/brands
QUERY PARAMS

parent
BODY json

{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/brands");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/:parent/brands" {:content-type :json
                                                              :form-params {:activeDisplayNames [{:languageCode ""
                                                                                                  :text ""}]
                                                                            :activeIcon ""
                                                                            :activeIconUri ""
                                                                            :displayNameDisapprovalReason [{:disapprovalReason ""
                                                                                                            :languageCode ""}]
                                                                            :displayNameState ""
                                                                            :displayNames [{}]
                                                                            :icon ""
                                                                            :iconDisapprovalReasons []
                                                                            :iconState ""
                                                                            :name ""
                                                                            :propertyCount ""
                                                                            :submittedDisplayNames [{}]
                                                                            :submittedIcon ""}})
require "http/client"

url = "{{baseUrl}}/v3/:parent/brands"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/brands"),
    Content = new StringContent("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/brands");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:parent/brands"

	payload := strings.NewReader("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v3/:parent/brands HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 464

{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:parent/brands")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/brands"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:parent/brands")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:parent/brands")
  .header("content-type", "application/json")
  .body("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  activeDisplayNames: [
    {
      languageCode: '',
      text: ''
    }
  ],
  activeIcon: '',
  activeIconUri: '',
  displayNameDisapprovalReason: [
    {
      disapprovalReason: '',
      languageCode: ''
    }
  ],
  displayNameState: '',
  displayNames: [
    {}
  ],
  icon: '',
  iconDisapprovalReasons: [],
  iconState: '',
  name: '',
  propertyCount: '',
  submittedDisplayNames: [
    {}
  ],
  submittedIcon: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/:parent/brands');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/brands',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayNames: [{languageCode: '', text: ''}],
    activeIcon: '',
    activeIconUri: '',
    displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
    displayNameState: '',
    displayNames: [{}],
    icon: '',
    iconDisapprovalReasons: [],
    iconState: '',
    name: '',
    propertyCount: '',
    submittedDisplayNames: [{}],
    submittedIcon: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/brands';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayNames":[{"languageCode":"","text":""}],"activeIcon":"","activeIconUri":"","displayNameDisapprovalReason":[{"disapprovalReason":"","languageCode":""}],"displayNameState":"","displayNames":[{}],"icon":"","iconDisapprovalReasons":[],"iconState":"","name":"","propertyCount":"","submittedDisplayNames":[{}],"submittedIcon":""}'
};

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}}/v3/:parent/brands',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "activeDisplayNames": [\n    {\n      "languageCode": "",\n      "text": ""\n    }\n  ],\n  "activeIcon": "",\n  "activeIconUri": "",\n  "displayNameDisapprovalReason": [\n    {\n      "disapprovalReason": "",\n      "languageCode": ""\n    }\n  ],\n  "displayNameState": "",\n  "displayNames": [\n    {}\n  ],\n  "icon": "",\n  "iconDisapprovalReasons": [],\n  "iconState": "",\n  "name": "",\n  "propertyCount": "",\n  "submittedDisplayNames": [\n    {}\n  ],\n  "submittedIcon": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/brands")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/brands',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  activeDisplayNames: [{languageCode: '', text: ''}],
  activeIcon: '',
  activeIconUri: '',
  displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
  displayNameState: '',
  displayNames: [{}],
  icon: '',
  iconDisapprovalReasons: [],
  iconState: '',
  name: '',
  propertyCount: '',
  submittedDisplayNames: [{}],
  submittedIcon: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/brands',
  headers: {'content-type': 'application/json'},
  body: {
    activeDisplayNames: [{languageCode: '', text: ''}],
    activeIcon: '',
    activeIconUri: '',
    displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
    displayNameState: '',
    displayNames: [{}],
    icon: '',
    iconDisapprovalReasons: [],
    iconState: '',
    name: '',
    propertyCount: '',
    submittedDisplayNames: [{}],
    submittedIcon: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/:parent/brands');

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

req.type('json');
req.send({
  activeDisplayNames: [
    {
      languageCode: '',
      text: ''
    }
  ],
  activeIcon: '',
  activeIconUri: '',
  displayNameDisapprovalReason: [
    {
      disapprovalReason: '',
      languageCode: ''
    }
  ],
  displayNameState: '',
  displayNames: [
    {}
  ],
  icon: '',
  iconDisapprovalReasons: [],
  iconState: '',
  name: '',
  propertyCount: '',
  submittedDisplayNames: [
    {}
  ],
  submittedIcon: ''
});

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}}/v3/:parent/brands',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayNames: [{languageCode: '', text: ''}],
    activeIcon: '',
    activeIconUri: '',
    displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
    displayNameState: '',
    displayNames: [{}],
    icon: '',
    iconDisapprovalReasons: [],
    iconState: '',
    name: '',
    propertyCount: '',
    submittedDisplayNames: [{}],
    submittedIcon: ''
  }
};

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

const url = '{{baseUrl}}/v3/:parent/brands';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayNames":[{"languageCode":"","text":""}],"activeIcon":"","activeIconUri":"","displayNameDisapprovalReason":[{"disapprovalReason":"","languageCode":""}],"displayNameState":"","displayNames":[{}],"icon":"","iconDisapprovalReasons":[],"iconState":"","name":"","propertyCount":"","submittedDisplayNames":[{}],"submittedIcon":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"activeDisplayNames": @[ @{ @"languageCode": @"", @"text": @"" } ],
                              @"activeIcon": @"",
                              @"activeIconUri": @"",
                              @"displayNameDisapprovalReason": @[ @{ @"disapprovalReason": @"", @"languageCode": @"" } ],
                              @"displayNameState": @"",
                              @"displayNames": @[ @{  } ],
                              @"icon": @"",
                              @"iconDisapprovalReasons": @[  ],
                              @"iconState": @"",
                              @"name": @"",
                              @"propertyCount": @"",
                              @"submittedDisplayNames": @[ @{  } ],
                              @"submittedIcon": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/brands" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/brands",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'activeDisplayNames' => [
        [
                'languageCode' => '',
                'text' => ''
        ]
    ],
    'activeIcon' => '',
    'activeIconUri' => '',
    'displayNameDisapprovalReason' => [
        [
                'disapprovalReason' => '',
                'languageCode' => ''
        ]
    ],
    'displayNameState' => '',
    'displayNames' => [
        [
                
        ]
    ],
    'icon' => '',
    'iconDisapprovalReasons' => [
        
    ],
    'iconState' => '',
    'name' => '',
    'propertyCount' => '',
    'submittedDisplayNames' => [
        [
                
        ]
    ],
    'submittedIcon' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:parent/brands', [
  'body' => '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/brands');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'activeDisplayNames' => [
    [
        'languageCode' => '',
        'text' => ''
    ]
  ],
  'activeIcon' => '',
  'activeIconUri' => '',
  'displayNameDisapprovalReason' => [
    [
        'disapprovalReason' => '',
        'languageCode' => ''
    ]
  ],
  'displayNameState' => '',
  'displayNames' => [
    [
        
    ]
  ],
  'icon' => '',
  'iconDisapprovalReasons' => [
    
  ],
  'iconState' => '',
  'name' => '',
  'propertyCount' => '',
  'submittedDisplayNames' => [
    [
        
    ]
  ],
  'submittedIcon' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'activeDisplayNames' => [
    [
        'languageCode' => '',
        'text' => ''
    ]
  ],
  'activeIcon' => '',
  'activeIconUri' => '',
  'displayNameDisapprovalReason' => [
    [
        'disapprovalReason' => '',
        'languageCode' => ''
    ]
  ],
  'displayNameState' => '',
  'displayNames' => [
    [
        
    ]
  ],
  'icon' => '',
  'iconDisapprovalReasons' => [
    
  ],
  'iconState' => '',
  'name' => '',
  'propertyCount' => '',
  'submittedDisplayNames' => [
    [
        
    ]
  ],
  'submittedIcon' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:parent/brands');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/brands' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/brands' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}'
import http.client

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

payload = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/:parent/brands", payload, headers)

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

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

url = "{{baseUrl}}/v3/:parent/brands"

payload = {
    "activeDisplayNames": [
        {
            "languageCode": "",
            "text": ""
        }
    ],
    "activeIcon": "",
    "activeIconUri": "",
    "displayNameDisapprovalReason": [
        {
            "disapprovalReason": "",
            "languageCode": ""
        }
    ],
    "displayNameState": "",
    "displayNames": [{}],
    "icon": "",
    "iconDisapprovalReasons": [],
    "iconState": "",
    "name": "",
    "propertyCount": "",
    "submittedDisplayNames": [{}],
    "submittedIcon": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/:parent/brands"

payload <- "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:parent/brands")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v3/:parent/brands') do |req|
  req.body = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"
end

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

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

    let payload = json!({
        "activeDisplayNames": (
            json!({
                "languageCode": "",
                "text": ""
            })
        ),
        "activeIcon": "",
        "activeIconUri": "",
        "displayNameDisapprovalReason": (
            json!({
                "disapprovalReason": "",
                "languageCode": ""
            })
        ),
        "displayNameState": "",
        "displayNames": (json!({})),
        "icon": "",
        "iconDisapprovalReasons": (),
        "iconState": "",
        "name": "",
        "propertyCount": "",
        "submittedDisplayNames": (json!({})),
        "submittedIcon": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:parent/brands \
  --header 'content-type: application/json' \
  --data '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}'
echo '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}' |  \
  http POST {{baseUrl}}/v3/:parent/brands \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "activeDisplayNames": [\n    {\n      "languageCode": "",\n      "text": ""\n    }\n  ],\n  "activeIcon": "",\n  "activeIconUri": "",\n  "displayNameDisapprovalReason": [\n    {\n      "disapprovalReason": "",\n      "languageCode": ""\n    }\n  ],\n  "displayNameState": "",\n  "displayNames": [\n    {}\n  ],\n  "icon": "",\n  "iconDisapprovalReasons": [],\n  "iconState": "",\n  "name": "",\n  "propertyCount": "",\n  "submittedDisplayNames": [\n    {}\n  ],\n  "submittedIcon": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:parent/brands
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "activeDisplayNames": [
    [
      "languageCode": "",
      "text": ""
    ]
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    [
      "disapprovalReason": "",
      "languageCode": ""
    ]
  ],
  "displayNameState": "",
  "displayNames": [[]],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [[]],
  "submittedIcon": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET travelpartner.accounts.brands.list
{{baseUrl}}/v3/:parent/brands
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/brands");

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

(client/get "{{baseUrl}}/v3/:parent/brands")
require "http/client"

url = "{{baseUrl}}/v3/:parent/brands"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/brands"

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

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

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

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

}
GET /baseUrl/v3/:parent/brands HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/brands")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/brands"))
    .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}}/v3/:parent/brands")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/brands")
  .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}}/v3/:parent/brands');

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/brands'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/brands';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/brands',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/brands")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/brands',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/brands'};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/brands');

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}}/v3/:parent/brands'};

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

const url = '{{baseUrl}}/v3/:parent/brands';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/brands"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/brands" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/brands');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/brands');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/brands');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/brands' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/brands' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/brands")

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

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

url = "{{baseUrl}}/v3/:parent/brands"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/brands"

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

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

url = URI("{{baseUrl}}/v3/:parent/brands")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/brands') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/brands
http GET {{baseUrl}}/v3/:parent/brands
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/brands
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/brands")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
PATCH travelpartner.accounts.brands.patch
{{baseUrl}}/v3/:name
QUERY PARAMS

name
BODY json

{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:name");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v3/:name" {:content-type :json
                                                      :form-params {:activeDisplayNames [{:languageCode ""
                                                                                          :text ""}]
                                                                    :activeIcon ""
                                                                    :activeIconUri ""
                                                                    :displayNameDisapprovalReason [{:disapprovalReason ""
                                                                                                    :languageCode ""}]
                                                                    :displayNameState ""
                                                                    :displayNames [{}]
                                                                    :icon ""
                                                                    :iconDisapprovalReasons []
                                                                    :iconState ""
                                                                    :name ""
                                                                    :propertyCount ""
                                                                    :submittedDisplayNames [{}]
                                                                    :submittedIcon ""}})
require "http/client"

url = "{{baseUrl}}/v3/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v3/:name"),
    Content = new StringContent("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:name"

	payload := strings.NewReader("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")

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

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

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

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

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

}
PATCH /baseUrl/v3/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 464

{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v3/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v3/:name")
  .header("content-type", "application/json")
  .body("{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  activeDisplayNames: [
    {
      languageCode: '',
      text: ''
    }
  ],
  activeIcon: '',
  activeIconUri: '',
  displayNameDisapprovalReason: [
    {
      disapprovalReason: '',
      languageCode: ''
    }
  ],
  displayNameState: '',
  displayNames: [
    {}
  ],
  icon: '',
  iconDisapprovalReasons: [],
  iconState: '',
  name: '',
  propertyCount: '',
  submittedDisplayNames: [
    {}
  ],
  submittedIcon: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v3/:name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/:name',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayNames: [{languageCode: '', text: ''}],
    activeIcon: '',
    activeIconUri: '',
    displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
    displayNameState: '',
    displayNames: [{}],
    icon: '',
    iconDisapprovalReasons: [],
    iconState: '',
    name: '',
    propertyCount: '',
    submittedDisplayNames: [{}],
    submittedIcon: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayNames":[{"languageCode":"","text":""}],"activeIcon":"","activeIconUri":"","displayNameDisapprovalReason":[{"disapprovalReason":"","languageCode":""}],"displayNameState":"","displayNames":[{}],"icon":"","iconDisapprovalReasons":[],"iconState":"","name":"","propertyCount":"","submittedDisplayNames":[{}],"submittedIcon":""}'
};

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}}/v3/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "activeDisplayNames": [\n    {\n      "languageCode": "",\n      "text": ""\n    }\n  ],\n  "activeIcon": "",\n  "activeIconUri": "",\n  "displayNameDisapprovalReason": [\n    {\n      "disapprovalReason": "",\n      "languageCode": ""\n    }\n  ],\n  "displayNameState": "",\n  "displayNames": [\n    {}\n  ],\n  "icon": "",\n  "iconDisapprovalReasons": [],\n  "iconState": "",\n  "name": "",\n  "propertyCount": "",\n  "submittedDisplayNames": [\n    {}\n  ],\n  "submittedIcon": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:name',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  activeDisplayNames: [{languageCode: '', text: ''}],
  activeIcon: '',
  activeIconUri: '',
  displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
  displayNameState: '',
  displayNames: [{}],
  icon: '',
  iconDisapprovalReasons: [],
  iconState: '',
  name: '',
  propertyCount: '',
  submittedDisplayNames: [{}],
  submittedIcon: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/:name',
  headers: {'content-type': 'application/json'},
  body: {
    activeDisplayNames: [{languageCode: '', text: ''}],
    activeIcon: '',
    activeIconUri: '',
    displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
    displayNameState: '',
    displayNames: [{}],
    icon: '',
    iconDisapprovalReasons: [],
    iconState: '',
    name: '',
    propertyCount: '',
    submittedDisplayNames: [{}],
    submittedIcon: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v3/:name');

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

req.type('json');
req.send({
  activeDisplayNames: [
    {
      languageCode: '',
      text: ''
    }
  ],
  activeIcon: '',
  activeIconUri: '',
  displayNameDisapprovalReason: [
    {
      disapprovalReason: '',
      languageCode: ''
    }
  ],
  displayNameState: '',
  displayNames: [
    {}
  ],
  icon: '',
  iconDisapprovalReasons: [],
  iconState: '',
  name: '',
  propertyCount: '',
  submittedDisplayNames: [
    {}
  ],
  submittedIcon: ''
});

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}}/v3/:name',
  headers: {'content-type': 'application/json'},
  data: {
    activeDisplayNames: [{languageCode: '', text: ''}],
    activeIcon: '',
    activeIconUri: '',
    displayNameDisapprovalReason: [{disapprovalReason: '', languageCode: ''}],
    displayNameState: '',
    displayNames: [{}],
    icon: '',
    iconDisapprovalReasons: [],
    iconState: '',
    name: '',
    propertyCount: '',
    submittedDisplayNames: [{}],
    submittedIcon: ''
  }
};

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

const url = '{{baseUrl}}/v3/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"activeDisplayNames":[{"languageCode":"","text":""}],"activeIcon":"","activeIconUri":"","displayNameDisapprovalReason":[{"disapprovalReason":"","languageCode":""}],"displayNameState":"","displayNames":[{}],"icon":"","iconDisapprovalReasons":[],"iconState":"","name":"","propertyCount":"","submittedDisplayNames":[{}],"submittedIcon":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"activeDisplayNames": @[ @{ @"languageCode": @"", @"text": @"" } ],
                              @"activeIcon": @"",
                              @"activeIconUri": @"",
                              @"displayNameDisapprovalReason": @[ @{ @"disapprovalReason": @"", @"languageCode": @"" } ],
                              @"displayNameState": @"",
                              @"displayNames": @[ @{  } ],
                              @"icon": @"",
                              @"iconDisapprovalReasons": @[  ],
                              @"iconState": @"",
                              @"name": @"",
                              @"propertyCount": @"",
                              @"submittedDisplayNames": @[ @{  } ],
                              @"submittedIcon": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'activeDisplayNames' => [
        [
                'languageCode' => '',
                'text' => ''
        ]
    ],
    'activeIcon' => '',
    'activeIconUri' => '',
    'displayNameDisapprovalReason' => [
        [
                'disapprovalReason' => '',
                'languageCode' => ''
        ]
    ],
    'displayNameState' => '',
    'displayNames' => [
        [
                
        ]
    ],
    'icon' => '',
    'iconDisapprovalReasons' => [
        
    ],
    'iconState' => '',
    'name' => '',
    'propertyCount' => '',
    'submittedDisplayNames' => [
        [
                
        ]
    ],
    'submittedIcon' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/v3/:name', [
  'body' => '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'activeDisplayNames' => [
    [
        'languageCode' => '',
        'text' => ''
    ]
  ],
  'activeIcon' => '',
  'activeIconUri' => '',
  'displayNameDisapprovalReason' => [
    [
        'disapprovalReason' => '',
        'languageCode' => ''
    ]
  ],
  'displayNameState' => '',
  'displayNames' => [
    [
        
    ]
  ],
  'icon' => '',
  'iconDisapprovalReasons' => [
    
  ],
  'iconState' => '',
  'name' => '',
  'propertyCount' => '',
  'submittedDisplayNames' => [
    [
        
    ]
  ],
  'submittedIcon' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'activeDisplayNames' => [
    [
        'languageCode' => '',
        'text' => ''
    ]
  ],
  'activeIcon' => '',
  'activeIconUri' => '',
  'displayNameDisapprovalReason' => [
    [
        'disapprovalReason' => '',
        'languageCode' => ''
    ]
  ],
  'displayNameState' => '',
  'displayNames' => [
    [
        
    ]
  ],
  'icon' => '',
  'iconDisapprovalReasons' => [
    
  ],
  'iconState' => '',
  'name' => '',
  'propertyCount' => '',
  'submittedDisplayNames' => [
    [
        
    ]
  ],
  'submittedIcon' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:name');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}'
import http.client

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

payload = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v3/:name", payload, headers)

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

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

url = "{{baseUrl}}/v3/:name"

payload = {
    "activeDisplayNames": [
        {
            "languageCode": "",
            "text": ""
        }
    ],
    "activeIcon": "",
    "activeIconUri": "",
    "displayNameDisapprovalReason": [
        {
            "disapprovalReason": "",
            "languageCode": ""
        }
    ],
    "displayNameState": "",
    "displayNames": [{}],
    "icon": "",
    "iconDisapprovalReasons": [],
    "iconState": "",
    "name": "",
    "propertyCount": "",
    "submittedDisplayNames": [{}],
    "submittedIcon": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/:name"

payload <- "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:name")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"

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

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

response = conn.patch('/baseUrl/v3/:name') do |req|
  req.body = "{\n  \"activeDisplayNames\": [\n    {\n      \"languageCode\": \"\",\n      \"text\": \"\"\n    }\n  ],\n  \"activeIcon\": \"\",\n  \"activeIconUri\": \"\",\n  \"displayNameDisapprovalReason\": [\n    {\n      \"disapprovalReason\": \"\",\n      \"languageCode\": \"\"\n    }\n  ],\n  \"displayNameState\": \"\",\n  \"displayNames\": [\n    {}\n  ],\n  \"icon\": \"\",\n  \"iconDisapprovalReasons\": [],\n  \"iconState\": \"\",\n  \"name\": \"\",\n  \"propertyCount\": \"\",\n  \"submittedDisplayNames\": [\n    {}\n  ],\n  \"submittedIcon\": \"\"\n}"
end

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

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

    let payload = json!({
        "activeDisplayNames": (
            json!({
                "languageCode": "",
                "text": ""
            })
        ),
        "activeIcon": "",
        "activeIconUri": "",
        "displayNameDisapprovalReason": (
            json!({
                "disapprovalReason": "",
                "languageCode": ""
            })
        ),
        "displayNameState": "",
        "displayNames": (json!({})),
        "icon": "",
        "iconDisapprovalReasons": (),
        "iconState": "",
        "name": "",
        "propertyCount": "",
        "submittedDisplayNames": (json!({})),
        "submittedIcon": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v3/:name \
  --header 'content-type: application/json' \
  --data '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}'
echo '{
  "activeDisplayNames": [
    {
      "languageCode": "",
      "text": ""
    }
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    {
      "disapprovalReason": "",
      "languageCode": ""
    }
  ],
  "displayNameState": "",
  "displayNames": [
    {}
  ],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [
    {}
  ],
  "submittedIcon": ""
}' |  \
  http PATCH {{baseUrl}}/v3/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "activeDisplayNames": [\n    {\n      "languageCode": "",\n      "text": ""\n    }\n  ],\n  "activeIcon": "",\n  "activeIconUri": "",\n  "displayNameDisapprovalReason": [\n    {\n      "disapprovalReason": "",\n      "languageCode": ""\n    }\n  ],\n  "displayNameState": "",\n  "displayNames": [\n    {}\n  ],\n  "icon": "",\n  "iconDisapprovalReasons": [],\n  "iconState": "",\n  "name": "",\n  "propertyCount": "",\n  "submittedDisplayNames": [\n    {}\n  ],\n  "submittedIcon": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "activeDisplayNames": [
    [
      "languageCode": "",
      "text": ""
    ]
  ],
  "activeIcon": "",
  "activeIconUri": "",
  "displayNameDisapprovalReason": [
    [
      "disapprovalReason": "",
      "languageCode": ""
    ]
  ],
  "displayNameState": "",
  "displayNames": [[]],
  "icon": "",
  "iconDisapprovalReasons": [],
  "iconState": "",
  "name": "",
  "propertyCount": "",
  "submittedDisplayNames": [[]],
  "submittedIcon": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET travelpartner.accounts.freeBookingLinksReportViews.query
{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query");

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

(client/get "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query")
require "http/client"

url = "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query"

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

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

func main() {

	url := "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query"

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

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

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

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

}
GET /baseUrl/v3/:name/freeBookingLinksReportViews:query HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query"))
    .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}}/v3/:name/freeBookingLinksReportViews:query")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query")
  .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}}/v3/:name/freeBookingLinksReportViews:query');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:name/freeBookingLinksReportViews:query',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query');

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}}/v3/:name/freeBookingLinksReportViews:query'
};

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

const url = '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:name/freeBookingLinksReportViews:query")

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

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

url = "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query"

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

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

url = URI("{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query")

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

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

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

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

response = conn.get('/baseUrl/v3/:name/freeBookingLinksReportViews:query') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:name/freeBookingLinksReportViews:query
http GET {{baseUrl}}/v3/:name/freeBookingLinksReportViews:query
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:name/freeBookingLinksReportViews:query
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:name/freeBookingLinksReportViews:query")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.hotelViews.list
{{baseUrl}}/v3/:parent/hotelViews
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/hotelViews");

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

(client/get "{{baseUrl}}/v3/:parent/hotelViews")
require "http/client"

url = "{{baseUrl}}/v3/:parent/hotelViews"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/hotelViews"

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

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

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

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

}
GET /baseUrl/v3/:parent/hotelViews HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/hotelViews")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/hotelViews"))
    .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}}/v3/:parent/hotelViews")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/hotelViews")
  .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}}/v3/:parent/hotelViews');

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/hotelViews'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/hotelViews';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/hotelViews',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/hotelViews")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/hotelViews',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/hotelViews'};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/hotelViews');

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}}/v3/:parent/hotelViews'};

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

const url = '{{baseUrl}}/v3/:parent/hotelViews';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/hotelViews"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/hotelViews" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/hotelViews');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/hotelViews');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/hotelViews');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/hotelViews' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/hotelViews' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/hotelViews")

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

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

url = "{{baseUrl}}/v3/:parent/hotelViews"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/hotelViews"

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

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

url = URI("{{baseUrl}}/v3/:parent/hotelViews")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/hotelViews') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/hotelViews
http GET {{baseUrl}}/v3/:parent/hotelViews
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/hotelViews
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/hotelViews")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.hotelViews.summarize
{{baseUrl}}/v3/:parent/hotelViews:summarize
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/hotelViews:summarize");

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

(client/get "{{baseUrl}}/v3/:parent/hotelViews:summarize")
require "http/client"

url = "{{baseUrl}}/v3/:parent/hotelViews:summarize"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/hotelViews:summarize"

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

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

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

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

}
GET /baseUrl/v3/:parent/hotelViews:summarize HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/hotelViews:summarize")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/hotelViews:summarize"))
    .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}}/v3/:parent/hotelViews:summarize")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/hotelViews:summarize")
  .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}}/v3/:parent/hotelViews:summarize');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/hotelViews:summarize'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/hotelViews:summarize';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/hotelViews:summarize',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/hotelViews:summarize")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/hotelViews:summarize',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/hotelViews:summarize'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/hotelViews:summarize');

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}}/v3/:parent/hotelViews:summarize'
};

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

const url = '{{baseUrl}}/v3/:parent/hotelViews:summarize';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/hotelViews:summarize"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/hotelViews:summarize" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/hotelViews:summarize');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/hotelViews:summarize');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/hotelViews:summarize');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/hotelViews:summarize' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/hotelViews:summarize' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/hotelViews:summarize")

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

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

url = "{{baseUrl}}/v3/:parent/hotelViews:summarize"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/hotelViews:summarize"

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

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

url = URI("{{baseUrl}}/v3/:parent/hotelViews:summarize")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/hotelViews:summarize') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/hotelViews:summarize
http GET {{baseUrl}}/v3/:parent/hotelViews:summarize
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/hotelViews:summarize
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/hotelViews:summarize")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST travelpartner.accounts.hotels.setLiveOnGoogle
{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle
QUERY PARAMS

account
BODY json

{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}");

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

(client/post "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle" {:content-type :json
                                                                               :form-params {:liveOnGoogle false
                                                                                             :partnerHotelIds []}})
require "http/client"

url = "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle"),
    Content = new StringContent("{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle"

	payload := strings.NewReader("{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}")

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

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

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

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

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

}
POST /baseUrl/v3/:account/hotels:setLiveOnGoogle HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 52

{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle")
  .header("content-type", "application/json")
  .body("{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}")
  .asString();
const data = JSON.stringify({
  liveOnGoogle: false,
  partnerHotelIds: []
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle',
  headers: {'content-type': 'application/json'},
  data: {liveOnGoogle: false, partnerHotelIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"liveOnGoogle":false,"partnerHotelIds":[]}'
};

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}}/v3/:account/hotels:setLiveOnGoogle',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "liveOnGoogle": false,\n  "partnerHotelIds": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:account/hotels:setLiveOnGoogle',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({liveOnGoogle: false, partnerHotelIds: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle',
  headers: {'content-type': 'application/json'},
  body: {liveOnGoogle: false, partnerHotelIds: []},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle');

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

req.type('json');
req.send({
  liveOnGoogle: false,
  partnerHotelIds: []
});

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}}/v3/:account/hotels:setLiveOnGoogle',
  headers: {'content-type': 'application/json'},
  data: {liveOnGoogle: false, partnerHotelIds: []}
};

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

const url = '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"liveOnGoogle":false,"partnerHotelIds":[]}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"liveOnGoogle": @NO,
                              @"partnerHotelIds": @[  ] };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'liveOnGoogle' => null,
    'partnerHotelIds' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle', [
  'body' => '{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'liveOnGoogle' => null,
  'partnerHotelIds' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'liveOnGoogle' => null,
  'partnerHotelIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}'
import http.client

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

payload = "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}"

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

conn.request("POST", "/baseUrl/v3/:account/hotels:setLiveOnGoogle", payload, headers)

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

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

url = "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle"

payload = {
    "liveOnGoogle": False,
    "partnerHotelIds": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle"

payload <- "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:account/hotels:setLiveOnGoogle")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}"

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

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

response = conn.post('/baseUrl/v3/:account/hotels:setLiveOnGoogle') do |req|
  req.body = "{\n  \"liveOnGoogle\": false,\n  \"partnerHotelIds\": []\n}"
end

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

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

    let payload = json!({
        "liveOnGoogle": false,
        "partnerHotelIds": ()
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:account/hotels:setLiveOnGoogle \
  --header 'content-type: application/json' \
  --data '{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}'
echo '{
  "liveOnGoogle": false,
  "partnerHotelIds": []
}' |  \
  http POST {{baseUrl}}/v3/:account/hotels:setLiveOnGoogle \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "liveOnGoogle": false,\n  "partnerHotelIds": []\n}' \
  --output-document \
  - {{baseUrl}}/v3/:account/hotels:setLiveOnGoogle
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "liveOnGoogle": false,
  "partnerHotelIds": []
] as [String : Any]

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

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

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

dataTask.resume()
POST travelpartner.accounts.icons.create
{{baseUrl}}/v3/:parent/icons
QUERY PARAMS

parent
BODY json

{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/icons");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/:parent/icons" {:content-type :json
                                                             :form-params {:disapprovalReasons []
                                                                           :iconUri ""
                                                                           :imageData ""
                                                                           :name ""
                                                                           :reference ""
                                                                           :state ""}})
require "http/client"

url = "{{baseUrl}}/v3/:parent/icons"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/icons"),
    Content = new StringContent("{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/icons");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:parent/icons"

	payload := strings.NewReader("{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v3/:parent/icons HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 114

{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:parent/icons")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/icons"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:parent/icons")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:parent/icons")
  .header("content-type", "application/json")
  .body("{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  disapprovalReasons: [],
  iconUri: '',
  imageData: '',
  name: '',
  reference: '',
  state: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/:parent/icons');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/icons',
  headers: {'content-type': 'application/json'},
  data: {
    disapprovalReasons: [],
    iconUri: '',
    imageData: '',
    name: '',
    reference: '',
    state: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/icons';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"disapprovalReasons":[],"iconUri":"","imageData":"","name":"","reference":"","state":""}'
};

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}}/v3/:parent/icons',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "disapprovalReasons": [],\n  "iconUri": "",\n  "imageData": "",\n  "name": "",\n  "reference": "",\n  "state": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/icons")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/icons',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  disapprovalReasons: [],
  iconUri: '',
  imageData: '',
  name: '',
  reference: '',
  state: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/icons',
  headers: {'content-type': 'application/json'},
  body: {
    disapprovalReasons: [],
    iconUri: '',
    imageData: '',
    name: '',
    reference: '',
    state: ''
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/:parent/icons');

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

req.type('json');
req.send({
  disapprovalReasons: [],
  iconUri: '',
  imageData: '',
  name: '',
  reference: '',
  state: ''
});

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}}/v3/:parent/icons',
  headers: {'content-type': 'application/json'},
  data: {
    disapprovalReasons: [],
    iconUri: '',
    imageData: '',
    name: '',
    reference: '',
    state: ''
  }
};

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

const url = '{{baseUrl}}/v3/:parent/icons';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"disapprovalReasons":[],"iconUri":"","imageData":"","name":"","reference":"","state":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"disapprovalReasons": @[  ],
                              @"iconUri": @"",
                              @"imageData": @"",
                              @"name": @"",
                              @"reference": @"",
                              @"state": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/icons" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/icons",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'disapprovalReasons' => [
        
    ],
    'iconUri' => '',
    'imageData' => '',
    'name' => '',
    'reference' => '',
    'state' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:parent/icons', [
  'body' => '{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/icons');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'disapprovalReasons' => [
    
  ],
  'iconUri' => '',
  'imageData' => '',
  'name' => '',
  'reference' => '',
  'state' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'disapprovalReasons' => [
    
  ],
  'iconUri' => '',
  'imageData' => '',
  'name' => '',
  'reference' => '',
  'state' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:parent/icons');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/icons' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/icons' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}'
import http.client

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

payload = "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/:parent/icons", payload, headers)

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

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

url = "{{baseUrl}}/v3/:parent/icons"

payload = {
    "disapprovalReasons": [],
    "iconUri": "",
    "imageData": "",
    "name": "",
    "reference": "",
    "state": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/:parent/icons"

payload <- "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:parent/icons")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v3/:parent/icons') do |req|
  req.body = "{\n  \"disapprovalReasons\": [],\n  \"iconUri\": \"\",\n  \"imageData\": \"\",\n  \"name\": \"\",\n  \"reference\": \"\",\n  \"state\": \"\"\n}"
end

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

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

    let payload = json!({
        "disapprovalReasons": (),
        "iconUri": "",
        "imageData": "",
        "name": "",
        "reference": "",
        "state": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:parent/icons \
  --header 'content-type: application/json' \
  --data '{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}'
echo '{
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
}' |  \
  http POST {{baseUrl}}/v3/:parent/icons \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "disapprovalReasons": [],\n  "iconUri": "",\n  "imageData": "",\n  "name": "",\n  "reference": "",\n  "state": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:parent/icons
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "disapprovalReasons": [],
  "iconUri": "",
  "imageData": "",
  "name": "",
  "reference": "",
  "state": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET travelpartner.accounts.icons.list
{{baseUrl}}/v3/:parent/icons
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/icons");

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

(client/get "{{baseUrl}}/v3/:parent/icons")
require "http/client"

url = "{{baseUrl}}/v3/:parent/icons"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/icons"

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

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

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

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

}
GET /baseUrl/v3/:parent/icons HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/icons")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/icons"))
    .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}}/v3/:parent/icons")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/icons")
  .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}}/v3/:parent/icons');

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/icons'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/icons';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/icons',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/icons")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/icons',
  headers: {}
};

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/:parent/icons'};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/icons');

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}}/v3/:parent/icons'};

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

const url = '{{baseUrl}}/v3/:parent/icons';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/icons"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/icons" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/icons');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/icons');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/icons');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/icons' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/icons' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/icons")

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

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

url = "{{baseUrl}}/v3/:parent/icons"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/icons"

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

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

url = URI("{{baseUrl}}/v3/:parent/icons")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/icons') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/icons
http GET {{baseUrl}}/v3/:parent/icons
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/icons
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/icons")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST travelpartner.accounts.listings.verify
{{baseUrl}}/v3/:parent/listings:verify
QUERY PARAMS

parent
BODY json

{
  "xmlListing": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/listings:verify");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"xmlListing\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/:parent/listings:verify" {:content-type :json
                                                                       :form-params {:xmlListing ""}})
require "http/client"

url = "{{baseUrl}}/v3/:parent/listings:verify"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"xmlListing\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/listings:verify"),
    Content = new StringContent("{\n  \"xmlListing\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/listings:verify");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"xmlListing\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:parent/listings:verify"

	payload := strings.NewReader("{\n  \"xmlListing\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v3/:parent/listings:verify HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22

{
  "xmlListing": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:parent/listings:verify")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"xmlListing\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/listings:verify"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"xmlListing\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"xmlListing\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:parent/listings:verify")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:parent/listings:verify")
  .header("content-type", "application/json")
  .body("{\n  \"xmlListing\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  xmlListing: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/:parent/listings:verify');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/listings:verify',
  headers: {'content-type': 'application/json'},
  data: {xmlListing: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/listings:verify';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"xmlListing":""}'
};

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}}/v3/:parent/listings:verify',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "xmlListing": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"xmlListing\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/listings:verify")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/listings:verify',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({xmlListing: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/listings:verify',
  headers: {'content-type': 'application/json'},
  body: {xmlListing: ''},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/:parent/listings:verify');

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

req.type('json');
req.send({
  xmlListing: ''
});

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}}/v3/:parent/listings:verify',
  headers: {'content-type': 'application/json'},
  data: {xmlListing: ''}
};

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

const url = '{{baseUrl}}/v3/:parent/listings:verify';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"xmlListing":""}'
};

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

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

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/listings:verify" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"xmlListing\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/listings:verify",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'xmlListing' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:parent/listings:verify', [
  'body' => '{
  "xmlListing": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/listings:verify');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'xmlListing' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'xmlListing' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:parent/listings:verify');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/listings:verify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "xmlListing": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/listings:verify' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "xmlListing": ""
}'
import http.client

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

payload = "{\n  \"xmlListing\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/:parent/listings:verify", payload, headers)

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

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

url = "{{baseUrl}}/v3/:parent/listings:verify"

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

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

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

url <- "{{baseUrl}}/v3/:parent/listings:verify"

payload <- "{\n  \"xmlListing\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:parent/listings:verify")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"xmlListing\": \"\"\n}"

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

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

response = conn.post('/baseUrl/v3/:parent/listings:verify') do |req|
  req.body = "{\n  \"xmlListing\": \"\"\n}"
end

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

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

    let payload = json!({"xmlListing": ""});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:parent/listings:verify \
  --header 'content-type: application/json' \
  --data '{
  "xmlListing": ""
}'
echo '{
  "xmlListing": ""
}' |  \
  http POST {{baseUrl}}/v3/:parent/listings:verify \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "xmlListing": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:parent/listings:verify
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["xmlListing": ""] as [String : Any]

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

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

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

dataTask.resume()
GET travelpartner.accounts.participationReportViews.query
{{baseUrl}}/v3/:name/participationReportViews:query
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:name/participationReportViews:query");

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

(client/get "{{baseUrl}}/v3/:name/participationReportViews:query")
require "http/client"

url = "{{baseUrl}}/v3/:name/participationReportViews:query"

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

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

func main() {

	url := "{{baseUrl}}/v3/:name/participationReportViews:query"

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

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

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

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

}
GET /baseUrl/v3/:name/participationReportViews:query HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:name/participationReportViews:query")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:name/participationReportViews:query"))
    .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}}/v3/:name/participationReportViews:query")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:name/participationReportViews:query")
  .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}}/v3/:name/participationReportViews:query');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:name/participationReportViews:query'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:name/participationReportViews:query';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:name/participationReportViews:query',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:name/participationReportViews:query")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:name/participationReportViews:query',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:name/participationReportViews:query'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:name/participationReportViews:query');

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}}/v3/:name/participationReportViews:query'
};

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

const url = '{{baseUrl}}/v3/:name/participationReportViews:query';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:name/participationReportViews:query"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:name/participationReportViews:query" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:name/participationReportViews:query');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:name/participationReportViews:query');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:name/participationReportViews:query');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:name/participationReportViews:query' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:name/participationReportViews:query' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:name/participationReportViews:query")

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

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

url = "{{baseUrl}}/v3/:name/participationReportViews:query"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:name/participationReportViews:query"

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

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

url = URI("{{baseUrl}}/v3/:name/participationReportViews:query")

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

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

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

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

response = conn.get('/baseUrl/v3/:name/participationReportViews:query') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:name/participationReportViews:query
http GET {{baseUrl}}/v3/:name/participationReportViews:query
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:name/participationReportViews:query
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:name/participationReportViews:query")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.priceAccuracyViews.list
{{baseUrl}}/v3/:parent/priceAccuracyViews
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/priceAccuracyViews");

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

(client/get "{{baseUrl}}/v3/:parent/priceAccuracyViews")
require "http/client"

url = "{{baseUrl}}/v3/:parent/priceAccuracyViews"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/priceAccuracyViews"

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

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

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

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

}
GET /baseUrl/v3/:parent/priceAccuracyViews HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/priceAccuracyViews")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/priceAccuracyViews"))
    .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}}/v3/:parent/priceAccuracyViews")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/priceAccuracyViews")
  .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}}/v3/:parent/priceAccuracyViews');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceAccuracyViews'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/priceAccuracyViews';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/priceAccuracyViews',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/priceAccuracyViews")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/priceAccuracyViews',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceAccuracyViews'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/priceAccuracyViews');

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}}/v3/:parent/priceAccuracyViews'
};

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

const url = '{{baseUrl}}/v3/:parent/priceAccuracyViews';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/priceAccuracyViews"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/priceAccuracyViews" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/priceAccuracyViews');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/priceAccuracyViews');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/priceAccuracyViews');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/priceAccuracyViews' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/priceAccuracyViews' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/priceAccuracyViews")

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

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

url = "{{baseUrl}}/v3/:parent/priceAccuracyViews"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/priceAccuracyViews"

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

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

url = URI("{{baseUrl}}/v3/:parent/priceAccuracyViews")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/priceAccuracyViews') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/priceAccuracyViews
http GET {{baseUrl}}/v3/:parent/priceAccuracyViews
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/priceAccuracyViews
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/priceAccuracyViews")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.priceAccuracyViews.summarize
{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize");

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

(client/get "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize")
require "http/client"

url = "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize"

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

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

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

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

}
GET /baseUrl/v3/:parent/priceAccuracyViews:summarize HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize"))
    .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}}/v3/:parent/priceAccuracyViews:summarize")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize")
  .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}}/v3/:parent/priceAccuracyViews:summarize');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/priceAccuracyViews:summarize',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize');

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}}/v3/:parent/priceAccuracyViews:summarize'
};

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

const url = '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/priceAccuracyViews:summarize")

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

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

url = "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize"

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

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

url = URI("{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/priceAccuracyViews:summarize') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/priceAccuracyViews:summarize
http GET {{baseUrl}}/v3/:parent/priceAccuracyViews:summarize
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/priceAccuracyViews:summarize
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/priceAccuracyViews:summarize")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.priceCoverageViews.getLatest
{{baseUrl}}/v3/:parent/priceCoverageViews:latest
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/priceCoverageViews:latest");

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

(client/get "{{baseUrl}}/v3/:parent/priceCoverageViews:latest")
require "http/client"

url = "{{baseUrl}}/v3/:parent/priceCoverageViews:latest"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/priceCoverageViews:latest"

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

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

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

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

}
GET /baseUrl/v3/:parent/priceCoverageViews:latest HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/priceCoverageViews:latest")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/priceCoverageViews:latest"))
    .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}}/v3/:parent/priceCoverageViews:latest")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/priceCoverageViews:latest")
  .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}}/v3/:parent/priceCoverageViews:latest');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceCoverageViews:latest'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/priceCoverageViews:latest';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/priceCoverageViews:latest',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/priceCoverageViews:latest")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/priceCoverageViews:latest',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceCoverageViews:latest'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/priceCoverageViews:latest');

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}}/v3/:parent/priceCoverageViews:latest'
};

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

const url = '{{baseUrl}}/v3/:parent/priceCoverageViews:latest';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/priceCoverageViews:latest"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/priceCoverageViews:latest" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/priceCoverageViews:latest');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/priceCoverageViews:latest');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/priceCoverageViews:latest');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/priceCoverageViews:latest' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/priceCoverageViews:latest' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/priceCoverageViews:latest")

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

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

url = "{{baseUrl}}/v3/:parent/priceCoverageViews:latest"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/priceCoverageViews:latest"

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

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

url = URI("{{baseUrl}}/v3/:parent/priceCoverageViews:latest")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/priceCoverageViews:latest') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/priceCoverageViews:latest
http GET {{baseUrl}}/v3/:parent/priceCoverageViews:latest
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/priceCoverageViews:latest
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/priceCoverageViews:latest")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.priceCoverageViews.list
{{baseUrl}}/v3/:parent/priceCoverageViews
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/priceCoverageViews");

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

(client/get "{{baseUrl}}/v3/:parent/priceCoverageViews")
require "http/client"

url = "{{baseUrl}}/v3/:parent/priceCoverageViews"

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

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

func main() {

	url := "{{baseUrl}}/v3/:parent/priceCoverageViews"

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

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

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

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

}
GET /baseUrl/v3/:parent/priceCoverageViews HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/priceCoverageViews")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/priceCoverageViews"))
    .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}}/v3/:parent/priceCoverageViews")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/priceCoverageViews")
  .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}}/v3/:parent/priceCoverageViews');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceCoverageViews'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/priceCoverageViews';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/priceCoverageViews',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/priceCoverageViews")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/priceCoverageViews',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/priceCoverageViews'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:parent/priceCoverageViews');

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}}/v3/:parent/priceCoverageViews'
};

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

const url = '{{baseUrl}}/v3/:parent/priceCoverageViews';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/priceCoverageViews"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/priceCoverageViews" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/priceCoverageViews');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/priceCoverageViews');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/priceCoverageViews');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/priceCoverageViews' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/priceCoverageViews' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:parent/priceCoverageViews")

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

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

url = "{{baseUrl}}/v3/:parent/priceCoverageViews"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:parent/priceCoverageViews"

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

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

url = URI("{{baseUrl}}/v3/:parent/priceCoverageViews")

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

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

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

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

response = conn.get('/baseUrl/v3/:parent/priceCoverageViews') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/priceCoverageViews
http GET {{baseUrl}}/v3/:parent/priceCoverageViews
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/priceCoverageViews
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/priceCoverageViews")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
GET travelpartner.accounts.propertyPerformanceReportViews.query
{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query");

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

(client/get "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query")
require "http/client"

url = "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query"

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

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

func main() {

	url := "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query"

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

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

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

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

}
GET /baseUrl/v3/:name/propertyPerformanceReportViews:query HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query"))
    .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}}/v3/:name/propertyPerformanceReportViews:query")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query")
  .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}}/v3/:name/propertyPerformanceReportViews:query');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:name/propertyPerformanceReportViews:query',
  headers: {}
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query'
};

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

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

const req = unirest('GET', '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query');

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}}/v3/:name/propertyPerformanceReportViews:query'
};

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

const url = '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query';
const options = {method: 'GET'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

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

let uri = Uri.of_string "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/:name/propertyPerformanceReportViews:query")

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

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

url = "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query"

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

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

url = URI("{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query")

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

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

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

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

response = conn.get('/baseUrl/v3/:name/propertyPerformanceReportViews:query') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:name/propertyPerformanceReportViews:query
http GET {{baseUrl}}/v3/:name/propertyPerformanceReportViews:query
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:name/propertyPerformanceReportViews:query
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:name/propertyPerformanceReportViews:query")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST travelpartner.accounts.reconciliationReports.create
{{baseUrl}}/v3/:parent/reconciliationReports
QUERY PARAMS

parent
BODY json

{
  "contents": "",
  "fileName": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/reconciliationReports");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/:parent/reconciliationReports" {:content-type :json
                                                                             :form-params {:contents ""
                                                                                           :fileName ""
                                                                                           :name ""}})
require "http/client"

url = "{{baseUrl}}/v3/:parent/reconciliationReports"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/reconciliationReports"),
    Content = new StringContent("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/reconciliationReports");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/:parent/reconciliationReports"

	payload := strings.NewReader("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/v3/:parent/reconciliationReports HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 52

{
  "contents": "",
  "fileName": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:parent/reconciliationReports")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/reconciliationReports"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:parent/reconciliationReports")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:parent/reconciliationReports")
  .header("content-type", "application/json")
  .body("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contents: '',
  fileName: '',
  name: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/:parent/reconciliationReports');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/reconciliationReports',
  headers: {'content-type': 'application/json'},
  data: {contents: '', fileName: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/reconciliationReports';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contents":"","fileName":"","name":""}'
};

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}}/v3/:parent/reconciliationReports',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contents": "",\n  "fileName": "",\n  "name": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/reconciliationReports")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/reconciliationReports',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({contents: '', fileName: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/reconciliationReports',
  headers: {'content-type': 'application/json'},
  body: {contents: '', fileName: '', name: ''},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/:parent/reconciliationReports');

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

req.type('json');
req.send({
  contents: '',
  fileName: '',
  name: ''
});

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}}/v3/:parent/reconciliationReports',
  headers: {'content-type': 'application/json'},
  data: {contents: '', fileName: '', name: ''}
};

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

const url = '{{baseUrl}}/v3/:parent/reconciliationReports';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contents":"","fileName":"","name":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"contents": @"",
                              @"fileName": @"",
                              @"name": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/reconciliationReports" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/reconciliationReports",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'contents' => '',
    'fileName' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:parent/reconciliationReports', [
  'body' => '{
  "contents": "",
  "fileName": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/reconciliationReports');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contents' => '',
  'fileName' => '',
  'name' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contents' => '',
  'fileName' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:parent/reconciliationReports');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/reconciliationReports' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contents": "",
  "fileName": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/reconciliationReports' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contents": "",
  "fileName": "",
  "name": ""
}'
import http.client

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

payload = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/:parent/reconciliationReports", payload, headers)

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

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

url = "{{baseUrl}}/v3/:parent/reconciliationReports"

payload = {
    "contents": "",
    "fileName": "",
    "name": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/:parent/reconciliationReports"

payload <- "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/:parent/reconciliationReports")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v3/:parent/reconciliationReports') do |req|
  req.body = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/:parent/reconciliationReports";

    let payload = json!({
        "contents": "",
        "fileName": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:parent/reconciliationReports \
  --header 'content-type: application/json' \
  --data '{
  "contents": "",
  "fileName": "",
  "name": ""
}'
echo '{
  "contents": "",
  "fileName": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/v3/:parent/reconciliationReports \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contents": "",\n  "fileName": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:parent/reconciliationReports
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contents": "",
  "fileName": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/reconciliationReports")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET travelpartner.accounts.reconciliationReports.get
{{baseUrl}}/v3/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/:name")
require "http/client"

url = "{{baseUrl}}/v3/:name"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v3/:name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/:name"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v3/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:name"))
    .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}}/v3/:name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:name")
  .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}}/v3/:name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:name',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/v3/:name'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/:name');

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}}/v3/:name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/:name';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v3/:name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:name');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/:name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/:name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/:name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/:name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v3/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/:name";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:name
http GET {{baseUrl}}/v3/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET travelpartner.accounts.reconciliationReports.list
{{baseUrl}}/v3/:parent/reconciliationReports
QUERY PARAMS

parent
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/reconciliationReports");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/:parent/reconciliationReports")
require "http/client"

url = "{{baseUrl}}/v3/:parent/reconciliationReports"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/reconciliationReports"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/reconciliationReports");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/:parent/reconciliationReports"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/v3/:parent/reconciliationReports HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/:parent/reconciliationReports")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/reconciliationReports"))
    .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}}/v3/:parent/reconciliationReports")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/:parent/reconciliationReports")
  .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}}/v3/:parent/reconciliationReports');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/reconciliationReports'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/reconciliationReports';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/v3/:parent/reconciliationReports',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/reconciliationReports")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/reconciliationReports',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/v3/:parent/reconciliationReports'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/:parent/reconciliationReports');

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}}/v3/:parent/reconciliationReports'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/:parent/reconciliationReports';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/reconciliationReports"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/reconciliationReports" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/reconciliationReports",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/v3/:parent/reconciliationReports');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/reconciliationReports');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/:parent/reconciliationReports');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/reconciliationReports' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/reconciliationReports' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/:parent/reconciliationReports")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/:parent/reconciliationReports"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/:parent/reconciliationReports"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/:parent/reconciliationReports")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/v3/:parent/reconciliationReports') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/:parent/reconciliationReports";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/v3/:parent/reconciliationReports
http GET {{baseUrl}}/v3/:parent/reconciliationReports
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/:parent/reconciliationReports
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/reconciliationReports")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST travelpartner.accounts.reconciliationReports.validate
{{baseUrl}}/v3/:parent/reconciliationReports:validate
QUERY PARAMS

parent
BODY json

{
  "contents": "",
  "fileName": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/:parent/reconciliationReports:validate");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v3/:parent/reconciliationReports:validate" {:content-type :json
                                                                                      :form-params {:contents ""
                                                                                                    :fileName ""
                                                                                                    :name ""}})
require "http/client"

url = "{{baseUrl}}/v3/:parent/reconciliationReports:validate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/:parent/reconciliationReports:validate"),
    Content = new StringContent("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/:parent/reconciliationReports:validate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/:parent/reconciliationReports:validate"

	payload := strings.NewReader("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v3/:parent/reconciliationReports:validate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 52

{
  "contents": "",
  "fileName": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/:parent/reconciliationReports:validate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/:parent/reconciliationReports:validate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/:parent/reconciliationReports:validate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/:parent/reconciliationReports:validate")
  .header("content-type", "application/json")
  .body("{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  contents: '',
  fileName: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/v3/:parent/reconciliationReports:validate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/reconciliationReports:validate',
  headers: {'content-type': 'application/json'},
  data: {contents: '', fileName: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/:parent/reconciliationReports:validate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contents":"","fileName":"","name":""}'
};

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}}/v3/:parent/reconciliationReports:validate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "contents": "",\n  "fileName": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/:parent/reconciliationReports:validate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/:parent/reconciliationReports:validate',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({contents: '', fileName: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/:parent/reconciliationReports:validate',
  headers: {'content-type': 'application/json'},
  body: {contents: '', fileName: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v3/:parent/reconciliationReports:validate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  contents: '',
  fileName: '',
  name: ''
});

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}}/v3/:parent/reconciliationReports:validate',
  headers: {'content-type': 'application/json'},
  data: {contents: '', fileName: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/:parent/reconciliationReports:validate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"contents":"","fileName":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"contents": @"",
                              @"fileName": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/:parent/reconciliationReports:validate"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/v3/:parent/reconciliationReports:validate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/:parent/reconciliationReports:validate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'contents' => '',
    'fileName' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/:parent/reconciliationReports:validate', [
  'body' => '{
  "contents": "",
  "fileName": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/:parent/reconciliationReports:validate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'contents' => '',
  'fileName' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'contents' => '',
  'fileName' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/:parent/reconciliationReports:validate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/:parent/reconciliationReports:validate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contents": "",
  "fileName": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/:parent/reconciliationReports:validate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "contents": "",
  "fileName": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/v3/:parent/reconciliationReports:validate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/:parent/reconciliationReports:validate"

payload = {
    "contents": "",
    "fileName": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/:parent/reconciliationReports:validate"

payload <- "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/:parent/reconciliationReports:validate")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/v3/:parent/reconciliationReports:validate') do |req|
  req.body = "{\n  \"contents\": \"\",\n  \"fileName\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/:parent/reconciliationReports:validate";

    let payload = json!({
        "contents": "",
        "fileName": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/:parent/reconciliationReports:validate \
  --header 'content-type: application/json' \
  --data '{
  "contents": "",
  "fileName": "",
  "name": ""
}'
echo '{
  "contents": "",
  "fileName": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/v3/:parent/reconciliationReports:validate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "contents": "",\n  "fileName": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/:parent/reconciliationReports:validate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "contents": "",
  "fileName": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/:parent/reconciliationReports:validate")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()