CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU");

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

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

(client/get "https://api.onegov.nsw.gov.au/propertyregister/v1/details" {:headers {:content-type "application/json"
                                                                                   :Authorization "<SOME_STRING_VALUE>"
                                                                                   :apikey "<SOME_STRING_VALUE>"}
                                                                         :query-params {:licenceid "1-17YIOEU"}})
require "http/client"

url = "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU"
headers = HTTP::Headers{
  "content-type" => "application/json"
  "Authorization" => "<SOME_STRING_VALUE>"
  "apikey" => "<SOME_STRING_VALUE>"
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU"),
    Headers =
    {
        { "Authorization", "<SOME_STRING_VALUE>" },
        { "apikey", "<SOME_STRING_VALUE>" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU");
var request = new RestRequest("", Method.Get);
request.AddHeader("content-type", "application/json");
request.AddHeader("Authorization", "<SOME_STRING_VALUE>");
request.AddHeader("apikey", "<SOME_STRING_VALUE>");
var response = client.Execute(request);
package main

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

func main() {

	url := "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU"

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

	req.Header.Add("content-type", "application/json")
	req.Header.Add("Authorization", "<SOME_STRING_VALUE>")
	req.Header.Add("apikey", "<SOME_STRING_VALUE>")

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

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

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

}
GET /propertyregister/v1/details?licenceid=1-17YIOEU HTTP/1.1
Content-Type: application/json
Authorization: <SOME_STRING_VALUE>
Apikey: <SOME_STRING_VALUE>
Host: api.onegov.nsw.gov.au

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU")
  .setHeader("content-type", "application/json")
  .setHeader("Authorization", "<SOME_STRING_VALUE>")
  .setHeader("apikey", "<SOME_STRING_VALUE>")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU"))
    .header("content-type", "application/json")
    .header("Authorization", "<SOME_STRING_VALUE>")
    .header("apikey", "<SOME_STRING_VALUE>")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU")
  .get()
  .addHeader("content-type", "application/json")
  .addHeader("Authorization", "<SOME_STRING_VALUE>")
  .addHeader("apikey", "<SOME_STRING_VALUE>")
  .build();

Response response = client.newCall(request).execute();
HttpResponse<String> response = Unirest.get("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU")
  .header("content-type", "application/json")
  .header("Authorization", "<SOME_STRING_VALUE>")
  .header("apikey", "<SOME_STRING_VALUE>")
  .asString();
const data = null;

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

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

xhr.open('GET', 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU');
xhr.setRequestHeader('content-type', 'application/json');
xhr.setRequestHeader('Authorization', '<SOME_STRING_VALUE>');
xhr.setRequestHeader('apikey', '<SOME_STRING_VALUE>');

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

const options = {
  method: 'GET',
  url: 'https://api.onegov.nsw.gov.au/propertyregister/v1/details',
  params: {licenceid: '1-17YIOEU'},
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU';
const options = {
  method: 'GET',
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

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: 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU',
  method: 'GET',
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

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

val request = Request.Builder()
  .url("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU")
  .get()
  .addHeader("content-type", "application/json")
  .addHeader("Authorization", "<SOME_STRING_VALUE>")
  .addHeader("apikey", "<SOME_STRING_VALUE>")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'api.onegov.nsw.gov.au',
  port: null,
  path: '/propertyregister/v1/details?licenceid=1-17YIOEU',
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

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: 'https://api.onegov.nsw.gov.au/propertyregister/v1/details',
  qs: {licenceid: '1-17YIOEU'},
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

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

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

const req = unirest('GET', 'https://api.onegov.nsw.gov.au/propertyregister/v1/details');

req.query({
  licenceid: '1-17YIOEU'
});

req.headers({
  'content-type': 'application/json',
  Authorization: '<SOME_STRING_VALUE>',
  apikey: '<SOME_STRING_VALUE>'
});

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

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

const options = {
  method: 'GET',
  url: 'https://api.onegov.nsw.gov.au/propertyregister/v1/details',
  params: {licenceid: '1-17YIOEU'},
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

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

const url = 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU';
const options = {
  method: 'GET',
  headers: {
    'content-type': 'application/json',
    Authorization: '<SOME_STRING_VALUE>',
    apikey: '<SOME_STRING_VALUE>'
  }
};

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

NSDictionary *headers = @{ @"content-type": @"application/json",
                           @"Authorization": @"<SOME_STRING_VALUE>",
                           @"apikey": @"<SOME_STRING_VALUE>" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "application/json");
  ("Authorization", "<SOME_STRING_VALUE>");
  ("apikey", "<SOME_STRING_VALUE>");
] in

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

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: <SOME_STRING_VALUE>",
    "apikey: <SOME_STRING_VALUE>",
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU', [
  'headers' => [
    'Authorization' => '<SOME_STRING_VALUE>',
    'apikey' => '<SOME_STRING_VALUE>',
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
<?php

$request = new HttpRequest();
$request->setUrl('https://api.onegov.nsw.gov.au/propertyregister/v1/details');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'licenceid' => '1-17YIOEU'
]);

$request->setHeaders([
  'content-type' => 'application/json',
  'Authorization' => '<SOME_STRING_VALUE>',
  'apikey' => '<SOME_STRING_VALUE>'
]);

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

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

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

$request->setRequestUrl('https://api.onegov.nsw.gov.au/propertyregister/v1/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'licenceid' => '1-17YIOEU'
]));

$request->setHeaders([
  'content-type' => 'application/json',
  'Authorization' => '<SOME_STRING_VALUE>',
  'apikey' => '<SOME_STRING_VALUE>'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("Authorization", "<SOME_STRING_VALUE>")
$headers.Add("apikey", "<SOME_STRING_VALUE>")
$response = Invoke-WebRequest -Uri 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU' -Method GET -Headers $headers
$headers=@{}
$headers.Add("content-type", "application/json")
$headers.Add("Authorization", "<SOME_STRING_VALUE>")
$headers.Add("apikey", "<SOME_STRING_VALUE>")
$response = Invoke-RestMethod -Uri 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("api.onegov.nsw.gov.au")

headers = {
    'content-type': "application/json",
    'Authorization': "<SOME_STRING_VALUE>",
    'apikey': "<SOME_STRING_VALUE>"
}

conn.request("GET", "/propertyregister/v1/details?licenceid=1-17YIOEU", headers=headers)

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

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

url = "https://api.onegov.nsw.gov.au/propertyregister/v1/details"

querystring = {"licenceid":"1-17YIOEU"}

headers = {
    "content-type": "application/json",
    "Authorization": "<SOME_STRING_VALUE>",
    "apikey": "<SOME_STRING_VALUE>"
}

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

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

url <- "https://api.onegov.nsw.gov.au/propertyregister/v1/details"

queryString <- list(licenceid = "1-17YIOEU")

response <- VERB("GET", url, query = queryString, add_headers('Authorization' = '<SOME_STRING_VALUE>', 'apikey' = '<SOME_STRING_VALUE>'), content_type("application/octet-stream"))

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

url = URI("https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU")

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

request = Net::HTTP::Get.new(url)
request["content-type"] = 'application/json'
request["Authorization"] = '<SOME_STRING_VALUE>'
request["apikey"] = '<SOME_STRING_VALUE>'

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

conn = Faraday.new(
  url: 'https://api.onegov.nsw.gov.au',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.get('/propertyregister/v1/details') do |req|
  req.headers['Authorization'] = '<SOME_STRING_VALUE>'
  req.headers['apikey'] = '<SOME_STRING_VALUE>'
  req.params['licenceid'] = '1-17YIOEU'
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "https://api.onegov.nsw.gov.au/propertyregister/v1/details";

    let querystring = [
        ("licenceid", "1-17YIOEU"),
    ];

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

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

    let results = response.unwrap()
        .json::<serde_json::Value>()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU' \
  --header 'Authorization: <SOME_STRING_VALUE>' \
  --header 'apikey: <SOME_STRING_VALUE>' \
  --header 'content-type: application/json'
http GET 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU' \
  Authorization:'<SOME_STRING_VALUE>' \
  apikey:'<SOME_STRING_VALUE>' \
  content-type:application/json
wget --quiet \
  --method GET \
  --header 'content-type: application/json' \
  --header 'Authorization: <SOME_STRING_VALUE>' \
  --header 'apikey: <SOME_STRING_VALUE>' \
  --output-document \
  - 'https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU'
import Foundation

let headers = [
  "content-type": "application/json",
  "Authorization": "<SOME_STRING_VALUE>",
  "apikey": "<SOME_STRING_VALUE>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.onegov.nsw.gov.au/propertyregister/v1/details?licenceid=1-17YIOEU")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()