POST Create a Store JSApp.
{{baseUrl}}/jsapps.json
QUERY PARAMS

login
authtoken
BODY json

{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jsapps.json?login=&authtoken=");

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  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/jsapps.json" {:query-params {:login ""
                                                                       :authtoken ""}
                                                        :content-type :json
                                                        :form-params {:app {:element ""
                                                                            :template ""
                                                                            :url ""}}})
require "http/client"

url = "{{baseUrl}}/jsapps.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\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}}/jsapps.json?login=&authtoken="),
    Content = new StringContent("{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\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}}/jsapps.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/jsapps.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\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/jsapps.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 71

{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/jsapps.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/jsapps.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\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  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/jsapps.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/jsapps.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  app: {
    element: '',
    template: '',
    url: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/jsapps.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/jsapps.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {app: {element: '', template: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/jsapps.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"app":{"element":"","template":"","url":""}}'
};

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}}/jsapps.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "app": {\n    "element": "",\n    "template": "",\n    "url": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/jsapps.json?login=&authtoken=")
  .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/jsapps.json?login=&authtoken=',
  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({app: {element: '', template: '', url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/jsapps.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {app: {element: '', template: '', url: ''}},
  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}}/jsapps.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  app: {
    element: '',
    template: '',
    url: ''
  }
});

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}}/jsapps.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {app: {element: '', template: '', url: ''}}
};

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

const url = '{{baseUrl}}/jsapps.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"app":{"element":"","template":"","url":""}}'
};

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 = @{ @"app": @{ @"element": @"", @"template": @"", @"url": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/jsapps.json?login=&authtoken="]
                                                       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}}/jsapps.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/jsapps.json?login=&authtoken=",
  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([
    'app' => [
        'element' => '',
        'template' => '',
        'url' => ''
    ]
  ]),
  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}}/jsapps.json?login=&authtoken=', [
  'body' => '{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/jsapps.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'app' => [
    'element' => '',
    'template' => '',
    'url' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'app' => [
    'element' => '',
    'template' => '',
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/jsapps.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/jsapps.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jsapps.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}'
import http.client

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

payload = "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/jsapps.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/jsapps.json"

querystring = {"login":"","authtoken":""}

payload = { "app": {
        "element": "",
        "template": "",
        "url": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/jsapps.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/jsapps.json?login=&authtoken=")

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  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\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/jsapps.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"app\": {\n    \"element\": \"\",\n    \"template\": \"\",\n    \"url\": \"\"\n  }\n}"
end

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

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"app": json!({
            "element": "",
            "template": "",
            "url": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/jsapps.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}'
echo '{
  "app": {
    "element": "",
    "template": "",
    "url": ""
  }
}' |  \
  http POST '{{baseUrl}}/jsapps.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "app": {\n    "element": "",\n    "template": "",\n    "url": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/jsapps.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["app": [
    "element": "",
    "template": "",
    "url": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jsapps.json?login=&authtoken=")! 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()
DELETE Delete an existing JSApp.
{{baseUrl}}/jsapps/:code.json
QUERY PARAMS

login
authtoken
code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jsapps/:code.json?login=&authtoken=");

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

(client/delete "{{baseUrl}}/jsapps/:code.json" {:query-params {:login ""
                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/jsapps/:code.json?login=&authtoken="

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}}/jsapps/:code.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jsapps/:code.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/jsapps/:code.json?login=&authtoken="

	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/jsapps/:code.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/jsapps/:code.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/jsapps/:code.json?login=&authtoken="))
    .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}}/jsapps/:code.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/jsapps/:code.json?login=&authtoken=")
  .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}}/jsapps/:code.json?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/jsapps/:code.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/jsapps/:code.json?login=&authtoken=';
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}}/jsapps/:code.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/jsapps/:code.json?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/jsapps/:code.json?login=&authtoken=',
  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}}/jsapps/:code.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/jsapps/:code.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/jsapps/:code.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/jsapps/:code.json?login=&authtoken=';
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}}/jsapps/:code.json?login=&authtoken="]
                                                       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}}/jsapps/:code.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/jsapps/:code.json?login=&authtoken=",
  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}}/jsapps/:code.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/jsapps/:code.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/jsapps/:code.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jsapps/:code.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jsapps/:code.json?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/jsapps/:code.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/jsapps/:code.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/jsapps/:code.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/jsapps/:code.json?login=&authtoken=")

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/jsapps/:code.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/jsapps/:code.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/jsapps/:code.json?login=&authtoken='
http DELETE '{{baseUrl}}/jsapps/:code.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/jsapps/:code.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jsapps/:code.json?login=&authtoken=")! 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()
GET Retrieve a JSApp.
{{baseUrl}}/jsapps/:code.json
QUERY PARAMS

login
authtoken
code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jsapps/:code.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/jsapps/:code.json" {:query-params {:login ""
                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/jsapps/:code.json?login=&authtoken="

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}}/jsapps/:code.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jsapps/:code.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/jsapps/:code.json?login=&authtoken="

	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/jsapps/:code.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/jsapps/:code.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/jsapps/:code.json?login=&authtoken="))
    .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}}/jsapps/:code.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/jsapps/:code.json?login=&authtoken=")
  .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}}/jsapps/:code.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/jsapps/:code.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/jsapps/:code.json?login=&authtoken=';
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}}/jsapps/:code.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/jsapps/:code.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/jsapps/:code.json?login=&authtoken=',
  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}}/jsapps/:code.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/jsapps/:code.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/jsapps/:code.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/jsapps/:code.json?login=&authtoken=';
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}}/jsapps/:code.json?login=&authtoken="]
                                                       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}}/jsapps/:code.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/jsapps/:code.json?login=&authtoken=",
  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}}/jsapps/:code.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/jsapps/:code.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/jsapps/:code.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jsapps/:code.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jsapps/:code.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/jsapps/:code.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/jsapps/:code.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/jsapps/:code.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/jsapps/:code.json?login=&authtoken=")

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/jsapps/:code.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/jsapps/:code.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/jsapps/:code.json?login=&authtoken='
http GET '{{baseUrl}}/jsapps/:code.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/jsapps/:code.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jsapps/:code.json?login=&authtoken=")! 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 Retrieve all the Store's JSApps.
{{baseUrl}}/jsapps.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/jsapps.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/jsapps.json" {:query-params {:login ""
                                                                      :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/jsapps.json?login=&authtoken="

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}}/jsapps.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/jsapps.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/jsapps.json?login=&authtoken="

	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/jsapps.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/jsapps.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/jsapps.json?login=&authtoken="))
    .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}}/jsapps.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/jsapps.json?login=&authtoken=")
  .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}}/jsapps.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/jsapps.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/jsapps.json?login=&authtoken=';
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}}/jsapps.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/jsapps.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/jsapps.json?login=&authtoken=',
  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}}/jsapps.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/jsapps.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/jsapps.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/jsapps.json?login=&authtoken=';
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}}/jsapps.json?login=&authtoken="]
                                                       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}}/jsapps.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/jsapps.json?login=&authtoken=",
  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}}/jsapps.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/jsapps.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/jsapps.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/jsapps.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/jsapps.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/jsapps.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/jsapps.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/jsapps.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/jsapps.json?login=&authtoken=")

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/jsapps.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/jsapps.json?login=&authtoken='
http GET '{{baseUrl}}/jsapps.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/jsapps.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/jsapps.json?login=&authtoken=")! 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 Count all Categories.
{{baseUrl}}/categories/count.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/categories/count.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/categories/count.json" {:query-params {:login ""
                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/categories/count.json?login=&authtoken="

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}}/categories/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/categories/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/categories/count.json?login=&authtoken="

	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/categories/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/categories/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/categories/count.json?login=&authtoken="))
    .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}}/categories/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/categories/count.json?login=&authtoken=")
  .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}}/categories/count.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/categories/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/categories/count.json?login=&authtoken=';
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}}/categories/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/categories/count.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/categories/count.json?login=&authtoken=',
  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}}/categories/count.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/categories/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/categories/count.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/categories/count.json?login=&authtoken=';
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}}/categories/count.json?login=&authtoken="]
                                                       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}}/categories/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/categories/count.json?login=&authtoken=",
  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}}/categories/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/categories/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/categories/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/categories/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/categories/count.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/categories/count.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/categories/count.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/categories/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/categories/count.json?login=&authtoken=")

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/categories/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/categories/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/categories/count.json?login=&authtoken='
http GET '{{baseUrl}}/categories/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/categories/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/categories/count.json?login=&authtoken=")! 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 Create a new Category.
{{baseUrl}}/categories.json
QUERY PARAMS

login
authtoken
BODY json

{
  "category": {
    "name": "",
    "parent_id": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/categories.json?login=&authtoken=");

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  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}");

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

(client/post "{{baseUrl}}/categories.json" {:query-params {:login ""
                                                                           :authtoken ""}
                                                            :content-type :json
                                                            :form-params {:category {:name ""
                                                                                     :parent_id 0}}})
require "http/client"

url = "{{baseUrl}}/categories.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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}}/categories.json?login=&authtoken="),
    Content = new StringContent("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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}}/categories.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/categories.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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/categories.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 58

{
  "category": {
    "name": "",
    "parent_id": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/categories.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/categories.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/categories.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/categories.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  category: {
    name: '',
    parent_id: 0
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/categories.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/categories.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: '', parent_id: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/categories.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"name":"","parent_id":0}}'
};

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}}/categories.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "category": {\n    "name": "",\n    "parent_id": 0\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/categories.json?login=&authtoken=")
  .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/categories.json?login=&authtoken=',
  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({category: {name: '', parent_id: 0}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/categories.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {category: {name: '', parent_id: 0}},
  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}}/categories.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  category: {
    name: '',
    parent_id: 0
  }
});

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}}/categories.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: '', parent_id: 0}}
};

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

const url = '{{baseUrl}}/categories.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"name":"","parent_id":0}}'
};

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 = @{ @"category": @{ @"name": @"", @"parent_id": @0 } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/categories.json?login=&authtoken="]
                                                       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}}/categories.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/categories.json?login=&authtoken=",
  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([
    'category' => [
        'name' => '',
        'parent_id' => 0
    ]
  ]),
  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}}/categories.json?login=&authtoken=', [
  'body' => '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/categories.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'category' => [
    'name' => '',
    'parent_id' => 0
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'category' => [
    'name' => '',
    'parent_id' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/categories.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/categories.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/categories.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}'
import http.client

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

payload = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}"

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

conn.request("POST", "/baseUrl/categories.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/categories.json"

querystring = {"login":"","authtoken":""}

payload = { "category": {
        "name": "",
        "parent_id": 0
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/categories.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/categories.json?login=&authtoken=")

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  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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/categories.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}"
end

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

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"category": json!({
            "name": "",
            "parent_id": 0
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/categories.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}'
echo '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}' |  \
  http POST '{{baseUrl}}/categories.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "category": {\n    "name": "",\n    "parent_id": 0\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/categories.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["category": [
    "name": "",
    "parent_id": 0
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/categories.json?login=&authtoken=")! 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()
DELETE Delete an existing Category.
{{baseUrl}}/categories/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/categories/:id.json?login=&authtoken=");

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

(client/delete "{{baseUrl}}/categories/:id.json" {:query-params {:login ""
                                                                                 :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/categories/:id.json?login=&authtoken="

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}}/categories/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/categories/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/categories/:id.json?login=&authtoken="

	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/categories/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/categories/:id.json?login=&authtoken="))
    .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}}/categories/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .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}}/categories/:id.json?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/categories/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/categories/:id.json?login=&authtoken=';
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}}/categories/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/categories/:id.json?login=&authtoken=',
  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}}/categories/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/categories/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/categories/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/categories/:id.json?login=&authtoken=';
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}}/categories/:id.json?login=&authtoken="]
                                                       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}}/categories/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/categories/:id.json?login=&authtoken=",
  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}}/categories/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/categories/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/categories/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/categories/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/categories/:id.json?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/categories/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/categories/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/categories/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/categories/:id.json?login=&authtoken=")

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/categories/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/categories/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/categories/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/categories/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/categories/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/categories/:id.json?login=&authtoken=")! 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()
PUT Modify an existing Category.
{{baseUrl}}/categories/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "category": {
    "name": "",
    "parent_id": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/categories/:id.json?login=&authtoken=");

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  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}");

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

(client/put "{{baseUrl}}/categories/:id.json" {:query-params {:login ""
                                                                              :authtoken ""}
                                                               :content-type :json
                                                               :form-params {:category {:name ""
                                                                                        :parent_id 0}}})
require "http/client"

url = "{{baseUrl}}/categories/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/categories/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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}}/categories/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/categories/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/categories/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 58

{
  "category": {
    "name": "",
    "parent_id": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/categories/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  category: {
    name: '',
    parent_id: 0
  }
});

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

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

xhr.open('PUT', '{{baseUrl}}/categories/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/categories/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: '', parent_id: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/categories/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"name":"","parent_id":0}}'
};

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}}/categories/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "category": {\n    "name": "",\n    "parent_id": 0\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/categories/:id.json?login=&authtoken=',
  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({category: {name: '', parent_id: 0}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/categories/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {category: {name: '', parent_id: 0}},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/categories/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  category: {
    name: '',
    parent_id: 0
  }
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/categories/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: '', parent_id: 0}}
};

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

const url = '{{baseUrl}}/categories/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"name":"","parent_id":0}}'
};

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 = @{ @"category": @{ @"name": @"", @"parent_id": @0 } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/categories/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/categories/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/categories/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'category' => [
        'name' => '',
        'parent_id' => 0
    ]
  ]),
  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('PUT', '{{baseUrl}}/categories/:id.json?login=&authtoken=', [
  'body' => '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/categories/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'category' => [
    'name' => '',
    'parent_id' => 0
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'category' => [
    'name' => '',
    'parent_id' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/categories/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/categories/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/categories/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}'
import http.client

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

payload = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}"

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

conn.request("PUT", "/baseUrl/categories/:id.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/categories/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "category": {
        "name": "",
        "parent_id": 0
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/categories/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/categories/:id.json?login=&authtoken=")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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.put('/baseUrl/categories/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"category\": {\n    \"name\": \"\",\n    \"parent_id\": 0\n  }\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}}/categories/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"category": json!({
            "name": "",
            "parent_id": 0
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/categories/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}'
echo '{
  "category": {
    "name": "",
    "parent_id": 0
  }
}' |  \
  http PUT '{{baseUrl}}/categories/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "category": {\n    "name": "",\n    "parent_id": 0\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/categories/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["category": [
    "name": "",
    "parent_id": 0
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/categories/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve a single Category.
{{baseUrl}}/categories/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/categories/:id.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/categories/:id.json" {:query-params {:login ""
                                                                              :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/categories/:id.json?login=&authtoken="

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}}/categories/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/categories/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/categories/:id.json?login=&authtoken="

	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/categories/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/categories/:id.json?login=&authtoken="))
    .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}}/categories/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .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}}/categories/:id.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/categories/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/categories/:id.json?login=&authtoken=';
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}}/categories/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/categories/:id.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/categories/:id.json?login=&authtoken=',
  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}}/categories/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/categories/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/categories/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/categories/:id.json?login=&authtoken=';
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}}/categories/:id.json?login=&authtoken="]
                                                       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}}/categories/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/categories/:id.json?login=&authtoken=",
  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}}/categories/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/categories/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/categories/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/categories/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/categories/:id.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/categories/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/categories/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/categories/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/categories/:id.json?login=&authtoken=")

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/categories/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/categories/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/categories/:id.json?login=&authtoken='
http GET '{{baseUrl}}/categories/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/categories/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/categories/:id.json?login=&authtoken=")! 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 Retrieve all Categories.
{{baseUrl}}/categories.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/categories.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/categories.json" {:query-params {:login ""
                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/categories.json?login=&authtoken="

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}}/categories.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/categories.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/categories.json?login=&authtoken="

	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/categories.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/categories.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/categories.json?login=&authtoken="))
    .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}}/categories.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/categories.json?login=&authtoken=")
  .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}}/categories.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/categories.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/categories.json?login=&authtoken=';
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}}/categories.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/categories.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/categories.json?login=&authtoken=',
  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}}/categories.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/categories.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/categories.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/categories.json?login=&authtoken=';
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}}/categories.json?login=&authtoken="]
                                                       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}}/categories.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/categories.json?login=&authtoken=",
  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}}/categories.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/categories.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/categories.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/categories.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/categories.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/categories.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/categories.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/categories.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/categories.json?login=&authtoken=")

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/categories.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/categories.json?login=&authtoken='
http GET '{{baseUrl}}/categories.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/categories.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/categories.json?login=&authtoken=")! 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 Create a new CheckoutCustomField.
{{baseUrl}}/checkout_custom_fields.json
QUERY PARAMS

login
authtoken
BODY json

{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=");

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  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/checkout_custom_fields.json" {:query-params {:login ""
                                                                                       :authtoken ""}
                                                                        :content-type :json
                                                                        :form-params {:checkout_custom_field {:area ""
                                                                                                              :custom_field_select_options []
                                                                                                              :deletable false
                                                                                                              :label ""
                                                                                                              :position 0
                                                                                                              :required false
                                                                                                              :type ""}}})
require "http/client"

url = "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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}}/checkout_custom_fields.json?login=&authtoken="),
    Content = new StringContent("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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}}/checkout_custom_fields.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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/checkout_custom_fields.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 189

{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  checkout_custom_field: {
    area: '',
    custom_field_select_options: [],
    deletable: false,
    label: '',
    position: 0,
    required: false,
    type: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/checkout_custom_fields.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    checkout_custom_field: {
      area: '',
      custom_field_select_options: [],
      deletable: false,
      label: '',
      position: 0,
      required: false,
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"checkout_custom_field":{"area":"","custom_field_select_options":[],"deletable":false,"label":"","position":0,"required":false,"type":""}}'
};

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}}/checkout_custom_fields.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "checkout_custom_field": {\n    "area": "",\n    "custom_field_select_options": [],\n    "deletable": false,\n    "label": "",\n    "position": 0,\n    "required": false,\n    "type": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .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/checkout_custom_fields.json?login=&authtoken=',
  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({
  checkout_custom_field: {
    area: '',
    custom_field_select_options: [],
    deletable: false,
    label: '',
    position: 0,
    required: false,
    type: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/checkout_custom_fields.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    checkout_custom_field: {
      area: '',
      custom_field_select_options: [],
      deletable: false,
      label: '',
      position: 0,
      required: false,
      type: ''
    }
  },
  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}}/checkout_custom_fields.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  checkout_custom_field: {
    area: '',
    custom_field_select_options: [],
    deletable: false,
    label: '',
    position: 0,
    required: false,
    type: ''
  }
});

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}}/checkout_custom_fields.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    checkout_custom_field: {
      area: '',
      custom_field_select_options: [],
      deletable: false,
      label: '',
      position: 0,
      required: false,
      type: ''
    }
  }
};

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

const url = '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"checkout_custom_field":{"area":"","custom_field_select_options":[],"deletable":false,"label":"","position":0,"required":false,"type":""}}'
};

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 = @{ @"checkout_custom_field": @{ @"area": @"", @"custom_field_select_options": @[  ], @"deletable": @NO, @"label": @"", @"position": @0, @"required": @NO, @"type": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="]
                                                       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}}/checkout_custom_fields.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=",
  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([
    'checkout_custom_field' => [
        'area' => '',
        'custom_field_select_options' => [
                
        ],
        'deletable' => null,
        'label' => '',
        'position' => 0,
        'required' => null,
        'type' => ''
    ]
  ]),
  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}}/checkout_custom_fields.json?login=&authtoken=', [
  'body' => '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/checkout_custom_fields.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'checkout_custom_field' => [
    'area' => '',
    'custom_field_select_options' => [
        
    ],
    'deletable' => null,
    'label' => '',
    'position' => 0,
    'required' => null,
    'type' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'checkout_custom_field' => [
    'area' => '',
    'custom_field_select_options' => [
        
    ],
    'deletable' => null,
    'label' => '',
    'position' => 0,
    'required' => null,
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/checkout_custom_fields.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/checkout_custom_fields.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}'
import http.client

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

payload = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/checkout_custom_fields.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/checkout_custom_fields.json"

querystring = {"login":"","authtoken":""}

payload = { "checkout_custom_field": {
        "area": "",
        "custom_field_select_options": [],
        "deletable": False,
        "label": "",
        "position": 0,
        "required": False,
        "type": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/checkout_custom_fields.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")

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  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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/checkout_custom_fields.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}"
end

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

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"checkout_custom_field": json!({
            "area": "",
            "custom_field_select_options": (),
            "deletable": false,
            "label": "",
            "position": 0,
            "required": false,
            "type": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}'
echo '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}' |  \
  http POST '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "checkout_custom_field": {\n    "area": "",\n    "custom_field_select_options": [],\n    "deletable": false,\n    "label": "",\n    "position": 0,\n    "required": false,\n    "type": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["checkout_custom_field": [
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")! 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()
DELETE Delete an existing CheckoutCustomField.
{{baseUrl}}/checkout_custom_fields/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=");

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

(client/delete "{{baseUrl}}/checkout_custom_fields/:id.json" {:query-params {:login ""
                                                                                             :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="

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}}/checkout_custom_fields/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="

	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/checkout_custom_fields/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="))
    .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}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .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}}/checkout_custom_fields/:id.json?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/checkout_custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=';
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}}/checkout_custom_fields/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/checkout_custom_fields/:id.json?login=&authtoken=',
  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}}/checkout_custom_fields/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/checkout_custom_fields/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/checkout_custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=';
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}}/checkout_custom_fields/:id.json?login=&authtoken="]
                                                       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}}/checkout_custom_fields/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=",
  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}}/checkout_custom_fields/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/checkout_custom_fields/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/checkout_custom_fields/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/checkout_custom_fields/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/checkout_custom_fields/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/checkout_custom_fields/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")

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/checkout_custom_fields/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/checkout_custom_fields/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")! 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()
GET Retrieve a single CheckoutCustomField.
{{baseUrl}}/checkout_custom_fields/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/checkout_custom_fields/:id.json" {:query-params {:login ""
                                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="

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}}/checkout_custom_fields/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="

	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/checkout_custom_fields/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="))
    .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}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .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}}/checkout_custom_fields/:id.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/checkout_custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=';
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}}/checkout_custom_fields/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/checkout_custom_fields/:id.json?login=&authtoken=',
  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}}/checkout_custom_fields/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/checkout_custom_fields/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/checkout_custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=';
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}}/checkout_custom_fields/:id.json?login=&authtoken="]
                                                       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}}/checkout_custom_fields/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=",
  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}}/checkout_custom_fields/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/checkout_custom_fields/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/checkout_custom_fields/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/checkout_custom_fields/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/checkout_custom_fields/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/checkout_custom_fields/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")

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/checkout_custom_fields/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/checkout_custom_fields/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
http GET '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")! 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 Retrieve all Checkout Custom Fields.
{{baseUrl}}/checkout_custom_fields.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/checkout_custom_fields.json" {:query-params {:login ""
                                                                                      :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="

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}}/checkout_custom_fields.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="

	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/checkout_custom_fields.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken="))
    .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}}/checkout_custom_fields.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .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}}/checkout_custom_fields.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/checkout_custom_fields.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=';
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}}/checkout_custom_fields.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/checkout_custom_fields.json?login=&authtoken=',
  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}}/checkout_custom_fields.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/checkout_custom_fields.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/checkout_custom_fields.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=';
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}}/checkout_custom_fields.json?login=&authtoken="]
                                                       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}}/checkout_custom_fields.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=",
  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}}/checkout_custom_fields.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/checkout_custom_fields.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/checkout_custom_fields.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/checkout_custom_fields.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/checkout_custom_fields.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/checkout_custom_fields.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")

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/checkout_custom_fields.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken='
http GET '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/checkout_custom_fields.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/checkout_custom_fields.json?login=&authtoken=")! 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()
PUT Update a CheckoutCustomField.
{{baseUrl}}/checkout_custom_fields/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=");

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  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}");

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

(client/put "{{baseUrl}}/checkout_custom_fields/:id.json" {:query-params {:login ""
                                                                                          :authtoken ""}
                                                                           :content-type :json
                                                                           :form-params {:checkout_custom_field {:area ""
                                                                                                                 :custom_field_select_options []
                                                                                                                 :deletable false
                                                                                                                 :label ""
                                                                                                                 :position 0
                                                                                                                 :required false
                                                                                                                 :type ""}}})
require "http/client"

url = "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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}}/checkout_custom_fields/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/checkout_custom_fields/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 189

{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  checkout_custom_field: {
    area: '',
    custom_field_select_options: [],
    deletable: false,
    label: '',
    position: 0,
    required: false,
    type: ''
  }
});

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

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

xhr.open('PUT', '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/checkout_custom_fields/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    checkout_custom_field: {
      area: '',
      custom_field_select_options: [],
      deletable: false,
      label: '',
      position: 0,
      required: false,
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"checkout_custom_field":{"area":"","custom_field_select_options":[],"deletable":false,"label":"","position":0,"required":false,"type":""}}'
};

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}}/checkout_custom_fields/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "checkout_custom_field": {\n    "area": "",\n    "custom_field_select_options": [],\n    "deletable": false,\n    "label": "",\n    "position": 0,\n    "required": false,\n    "type": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/checkout_custom_fields/:id.json?login=&authtoken=',
  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({
  checkout_custom_field: {
    area: '',
    custom_field_select_options: [],
    deletable: false,
    label: '',
    position: 0,
    required: false,
    type: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/checkout_custom_fields/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    checkout_custom_field: {
      area: '',
      custom_field_select_options: [],
      deletable: false,
      label: '',
      position: 0,
      required: false,
      type: ''
    }
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/checkout_custom_fields/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  checkout_custom_field: {
    area: '',
    custom_field_select_options: [],
    deletable: false,
    label: '',
    position: 0,
    required: false,
    type: ''
  }
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/checkout_custom_fields/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    checkout_custom_field: {
      area: '',
      custom_field_select_options: [],
      deletable: false,
      label: '',
      position: 0,
      required: false,
      type: ''
    }
  }
};

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

const url = '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"checkout_custom_field":{"area":"","custom_field_select_options":[],"deletable":false,"label":"","position":0,"required":false,"type":""}}'
};

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 = @{ @"checkout_custom_field": @{ @"area": @"", @"custom_field_select_options": @[  ], @"deletable": @NO, @"label": @"", @"position": @0, @"required": @NO, @"type": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/checkout_custom_fields/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'checkout_custom_field' => [
        'area' => '',
        'custom_field_select_options' => [
                
        ],
        'deletable' => null,
        'label' => '',
        'position' => 0,
        'required' => null,
        'type' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=', [
  'body' => '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/checkout_custom_fields/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'checkout_custom_field' => [
    'area' => '',
    'custom_field_select_options' => [
        
    ],
    'deletable' => null,
    'label' => '',
    'position' => 0,
    'required' => null,
    'type' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'checkout_custom_field' => [
    'area' => '',
    'custom_field_select_options' => [
        
    ],
    'deletable' => null,
    'label' => '',
    'position' => 0,
    'required' => null,
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/checkout_custom_fields/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/checkout_custom_fields/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}'
import http.client

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

payload = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}"

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

conn.request("PUT", "/baseUrl/checkout_custom_fields/:id.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/checkout_custom_fields/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "checkout_custom_field": {
        "area": "",
        "custom_field_select_options": [],
        "deletable": False,
        "label": "",
        "position": 0,
        "required": False,
        "type": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/checkout_custom_fields/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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.put('/baseUrl/checkout_custom_fields/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"checkout_custom_field\": {\n    \"area\": \"\",\n    \"custom_field_select_options\": [],\n    \"deletable\": false,\n    \"label\": \"\",\n    \"position\": 0,\n    \"required\": false,\n    \"type\": \"\"\n  }\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}}/checkout_custom_fields/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"checkout_custom_field": json!({
            "area": "",
            "custom_field_select_options": (),
            "deletable": false,
            "label": "",
            "position": 0,
            "required": false,
            "type": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}'
echo '{
  "checkout_custom_field": {
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  }
}' |  \
  http PUT '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "checkout_custom_field": {\n    "area": "",\n    "custom_field_select_options": [],\n    "deletable": false,\n    "label": "",\n    "position": 0,\n    "required": false,\n    "type": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["checkout_custom_field": [
    "area": "",
    "custom_field_select_options": [],
    "deletable": false,
    "label": "",
    "position": 0,
    "required": false,
    "type": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/checkout_custom_fields/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve a single Country information.
{{baseUrl}}/countries/:country_code.json
QUERY PARAMS

login
authtoken
country_code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/countries/:country_code.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/countries/:country_code.json" {:query-params {:login ""
                                                                                       :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/countries/:country_code.json?login=&authtoken="

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}}/countries/:country_code.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/countries/:country_code.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/countries/:country_code.json?login=&authtoken="

	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/countries/:country_code.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/countries/:country_code.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/countries/:country_code.json?login=&authtoken="))
    .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}}/countries/:country_code.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/countries/:country_code.json?login=&authtoken=")
  .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}}/countries/:country_code.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/countries/:country_code.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/countries/:country_code.json?login=&authtoken=';
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}}/countries/:country_code.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/countries/:country_code.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/countries/:country_code.json?login=&authtoken=',
  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}}/countries/:country_code.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/countries/:country_code.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/countries/:country_code.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/countries/:country_code.json?login=&authtoken=';
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}}/countries/:country_code.json?login=&authtoken="]
                                                       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}}/countries/:country_code.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/countries/:country_code.json?login=&authtoken=",
  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}}/countries/:country_code.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/countries/:country_code.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/countries/:country_code.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/countries/:country_code.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/countries/:country_code.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/countries/:country_code.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/countries/:country_code.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/countries/:country_code.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/countries/:country_code.json?login=&authtoken=")

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/countries/:country_code.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/countries/:country_code.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/countries/:country_code.json?login=&authtoken='
http GET '{{baseUrl}}/countries/:country_code.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/countries/:country_code.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/countries/:country_code.json?login=&authtoken=")! 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 Retrieve a single Region information object.
{{baseUrl}}/countries/:country_code/regions/:region_code.json
QUERY PARAMS

login
authtoken
country_code
region_code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/countries/:country_code/regions/:region_code.json" {:query-params {:login ""
                                                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken="

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}}/countries/:country_code/regions/:region_code.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken="

	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/countries/:country_code/regions/:region_code.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken="))
    .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}}/countries/:country_code/regions/:region_code.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=")
  .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}}/countries/:country_code/regions/:region_code.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/countries/:country_code/regions/:region_code.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=';
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}}/countries/:country_code/regions/:region_code.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/countries/:country_code/regions/:region_code.json?login=&authtoken=',
  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}}/countries/:country_code/regions/:region_code.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/countries/:country_code/regions/:region_code.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/countries/:country_code/regions/:region_code.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=';
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}}/countries/:country_code/regions/:region_code.json?login=&authtoken="]
                                                       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}}/countries/:country_code/regions/:region_code.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=",
  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}}/countries/:country_code/regions/:region_code.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/countries/:country_code/regions/:region_code.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/countries/:country_code/regions/:region_code.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/countries/:country_code/regions/:region_code.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/countries/:country_code/regions/:region_code.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/countries/:country_code/regions/:region_code.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=")

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/countries/:country_code/regions/:region_code.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/countries/:country_code/regions/:region_code.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken='
http GET '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/countries/:country_code/regions/:region_code.json?login=&authtoken=")! 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 Retrieve all Countries.
{{baseUrl}}/countries.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/countries.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/countries.json" {:query-params {:login ""
                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/countries.json?login=&authtoken="

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}}/countries.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/countries.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/countries.json?login=&authtoken="

	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/countries.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/countries.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/countries.json?login=&authtoken="))
    .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}}/countries.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/countries.json?login=&authtoken=")
  .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}}/countries.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/countries.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/countries.json?login=&authtoken=';
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}}/countries.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/countries.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/countries.json?login=&authtoken=',
  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}}/countries.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/countries.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/countries.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/countries.json?login=&authtoken=';
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}}/countries.json?login=&authtoken="]
                                                       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}}/countries.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/countries.json?login=&authtoken=",
  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}}/countries.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/countries.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/countries.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/countries.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/countries.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/countries.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/countries.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/countries.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/countries.json?login=&authtoken=")

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/countries.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/countries.json?login=&authtoken='
http GET '{{baseUrl}}/countries.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/countries.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/countries.json?login=&authtoken=")! 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 Retrieve all Regions from a single Country.
{{baseUrl}}/countries/:country_code/regions.json
QUERY PARAMS

login
authtoken
country_code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/countries/:country_code/regions.json" {:query-params {:login ""
                                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken="

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}}/countries/:country_code/regions.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken="

	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/countries/:country_code/regions.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken="))
    .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}}/countries/:country_code/regions.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=")
  .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}}/countries/:country_code/regions.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/countries/:country_code/regions.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=';
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}}/countries/:country_code/regions.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/countries/:country_code/regions.json?login=&authtoken=',
  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}}/countries/:country_code/regions.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/countries/:country_code/regions.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/countries/:country_code/regions.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=';
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}}/countries/:country_code/regions.json?login=&authtoken="]
                                                       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}}/countries/:country_code/regions.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=",
  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}}/countries/:country_code/regions.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/countries/:country_code/regions.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/countries/:country_code/regions.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/countries/:country_code/regions.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/countries/:country_code/regions.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/countries/:country_code/regions.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=")

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/countries/:country_code/regions.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/countries/:country_code/regions.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken='
http GET '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/countries/:country_code/regions.json?login=&authtoken=")! 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 Create a new Custom Field Select Option.
{{baseUrl}}/custom_fields/:id/select_options.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "custom_field_select_option": {
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=");

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  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/custom_fields/:id/select_options.json" {:query-params {:login ""
                                                                                                 :authtoken ""}
                                                                                  :content-type :json
                                                                                  :form-params {:custom_field_select_option {:value ""}}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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}}/custom_fields/:id/select_options.json?login=&authtoken="),
    Content = new StringContent("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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}}/custom_fields/:id/select_options.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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/custom_fields/:id/select_options.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 57

{
  "custom_field_select_option": {
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  custom_field_select_option: {
    value: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/custom_fields/:id/select_options.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field_select_option: {value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field_select_option":{"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: '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "custom_field_select_option": {\n    "value": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .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/custom_fields/:id/select_options.json?login=&authtoken=',
  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({custom_field_select_option: {value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/custom_fields/:id/select_options.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {custom_field_select_option: {value: ''}},
  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}}/custom_fields/:id/select_options.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  custom_field_select_option: {
    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: 'POST',
  url: '{{baseUrl}}/custom_fields/:id/select_options.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field_select_option: {value: ''}}
};

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

const url = '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field_select_option":{"value":""}}'
};

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 = @{ @"custom_field_select_option": @{ @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="]
                                                       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}}/custom_fields/:id/select_options.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=",
  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([
    'custom_field_select_option' => [
        'value' => ''
    ]
  ]),
  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}}/custom_fields/:id/select_options.json?login=&authtoken=', [
  'body' => '{
  "custom_field_select_option": {
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id/select_options.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'custom_field_select_option' => [
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'custom_field_select_option' => [
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/custom_fields/:id/select_options.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/custom_fields/:id/select_options.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field_select_option": {
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field_select_option": {
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/custom_fields/:id/select_options.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/custom_fields/:id/select_options.json"

querystring = {"login":"","authtoken":""}

payload = { "custom_field_select_option": { "value": "" } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/custom_fields/:id/select_options.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")

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  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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/custom_fields/:id/select_options.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/custom_fields/:id/select_options.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"custom_field_select_option": json!({"value": ""})});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "custom_field_select_option": {
    "value": ""
  }
}'
echo '{
  "custom_field_select_option": {
    "value": ""
  }
}' |  \
  http POST '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "custom_field_select_option": {\n    "value": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["custom_field_select_option": ["value": ""]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")! 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 Retrieve a single SelectOption from a CustomField.
{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json
QUERY PARAMS

login
authtoken
id
custom_field_select_option_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json" {:query-params {:login ""
                                                                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="

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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="

	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/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="))
    .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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=';
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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=',
  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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=';
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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="]
                                                       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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=",
  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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")

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/custom_fields/:id/select_options/:custom_field_select_option_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
http GET '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")! 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 Retrieve all Store's Custom Fields. (GET)
{{baseUrl}}/custom_fields/:id/select_options.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/custom_fields/:id/select_options.json" {:query-params {:login ""
                                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="

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}}/custom_fields/:id/select_options.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="

	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/custom_fields/:id/select_options.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken="))
    .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}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .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}}/custom_fields/:id/select_options.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/custom_fields/:id/select_options.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=';
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}}/custom_fields/:id/select_options.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id/select_options.json?login=&authtoken=',
  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}}/custom_fields/:id/select_options.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/custom_fields/:id/select_options.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/custom_fields/:id/select_options.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=';
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}}/custom_fields/:id/select_options.json?login=&authtoken="]
                                                       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}}/custom_fields/:id/select_options.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=",
  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}}/custom_fields/:id/select_options.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id/select_options.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/custom_fields/:id/select_options.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/custom_fields/:id/select_options.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/custom_fields/:id/select_options.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/custom_fields/:id/select_options.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")

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/custom_fields/:id/select_options.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/custom_fields/:id/select_options.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken='
http GET '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id/select_options.json?login=&authtoken=")! 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()
PUT Update a SelectOption from a CustomField.
{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json
QUERY PARAMS

login
authtoken
id
custom_field_select_option_id
BODY json

{
  "custom_field_select_option": {
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=");

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  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}");

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

(client/put "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json" {:query-params {:login ""
                                                                                                                               :authtoken ""}
                                                                                                                :content-type :json
                                                                                                                :form-params {:custom_field_select_option {:value ""}}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 57

{
  "custom_field_select_option": {
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  custom_field_select_option: {
    value: ''
  }
});

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

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

xhr.open('PUT', '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field_select_option: {value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field_select_option":{"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: '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "custom_field_select_option": {\n    "value": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=',
  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({custom_field_select_option: {value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {custom_field_select_option: {value: ''}},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  custom_field_select_option: {
    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: 'PUT',
  url: '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field_select_option: {value: ''}}
};

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

const url = '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field_select_option":{"value":""}}'
};

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 = @{ @"custom_field_select_option": @{ @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'custom_field_select_option' => [
        'value' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=', [
  'body' => '{
  "custom_field_select_option": {
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'custom_field_select_option' => [
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'custom_field_select_option' => [
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field_select_option": {
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field_select_option": {
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}"

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

conn.request("PUT", "/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json"

querystring = {"login":"","authtoken":""}

payload = { "custom_field_select_option": { "value": "" } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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.put('/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"custom_field_select_option\": {\n    \"value\": \"\"\n  }\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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"custom_field_select_option": json!({"value": ""})});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "custom_field_select_option": {
    "value": ""
  }
}'
echo '{
  "custom_field_select_option": {
    "value": ""
  }
}' |  \
  http PUT '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "custom_field_select_option": {\n    "value": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["custom_field_select_option": ["value": ""]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Create a new Custom Field.
{{baseUrl}}/custom_fields.json
QUERY PARAMS

login
authtoken
BODY json

{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields.json?login=&authtoken=");

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  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}");

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

(client/post "{{baseUrl}}/custom_fields.json" {:query-params {:login ""
                                                                              :authtoken ""}
                                                               :content-type :json
                                                               :form-params {:custom_field {:label ""
                                                                                            :type ""
                                                                                            :values []}}})
require "http/client"

url = "{{baseUrl}}/custom_fields.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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}}/custom_fields.json?login=&authtoken="),
    Content = new StringContent("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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}}/custom_fields.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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/custom_fields.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 77

{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  custom_field: {
    label: '',
    type: '',
    values: []
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/custom_fields.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/custom_fields.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field: {label: '', type: '', values: []}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field":{"label":"","type":"","values":[]}}'
};

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}}/custom_fields.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "custom_field": {\n    "label": "",\n    "type": "",\n    "values": []\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .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/custom_fields.json?login=&authtoken=',
  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({custom_field: {label: '', type: '', values: []}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/custom_fields.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {custom_field: {label: '', type: '', values: []}},
  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}}/custom_fields.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  custom_field: {
    label: '',
    type: '',
    values: []
  }
});

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}}/custom_fields.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field: {label: '', type: '', values: []}}
};

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

const url = '{{baseUrl}}/custom_fields.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field":{"label":"","type":"","values":[]}}'
};

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 = @{ @"custom_field": @{ @"label": @"", @"type": @"", @"values": @[  ] } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/custom_fields.json?login=&authtoken="]
                                                       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}}/custom_fields.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields.json?login=&authtoken=",
  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([
    'custom_field' => [
        'label' => '',
        'type' => '',
        'values' => [
                
        ]
    ]
  ]),
  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}}/custom_fields.json?login=&authtoken=', [
  'body' => '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'custom_field' => [
    'label' => '',
    'type' => '',
    'values' => [
        
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'custom_field' => [
    'label' => '',
    'type' => '',
    'values' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/custom_fields.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/custom_fields.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}'
import http.client

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

payload = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}"

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

conn.request("POST", "/baseUrl/custom_fields.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/custom_fields.json"

querystring = {"login":"","authtoken":""}

payload = { "custom_field": {
        "label": "",
        "type": "",
        "values": []
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/custom_fields.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/custom_fields.json?login=&authtoken=")

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  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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/custom_fields.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}"
end

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

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"custom_field": json!({
            "label": "",
            "type": "",
            "values": ()
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/custom_fields.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}'
echo '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}' |  \
  http POST '{{baseUrl}}/custom_fields.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "custom_field": {\n    "label": "",\n    "type": "",\n    "values": []\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/custom_fields.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["custom_field": [
    "label": "",
    "type": "",
    "values": []
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields.json?login=&authtoken=")! 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()
DELETE Delete an existing CustomField.
{{baseUrl}}/custom_fields/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=");

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

(client/delete "{{baseUrl}}/custom_fields/:id.json" {:query-params {:login ""
                                                                                    :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id.json?login=&authtoken="

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}}/custom_fields/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id.json?login=&authtoken="

	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/custom_fields/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id.json?login=&authtoken="))
    .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}}/custom_fields/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .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}}/custom_fields/:id.json?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=';
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}}/custom_fields/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id.json?login=&authtoken=',
  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}}/custom_fields/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/custom_fields/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=';
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}}/custom_fields/:id.json?login=&authtoken="]
                                                       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}}/custom_fields/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=",
  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}}/custom_fields/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/custom_fields/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/custom_fields/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/custom_fields/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/custom_fields/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")

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/custom_fields/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/custom_fields/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")! 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()
DELETE Delete an existing CustomFieldSelectOption.
{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json
QUERY PARAMS

login
authtoken
id
custom_field_select_option_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=");

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

(client/delete "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json" {:query-params {:login ""
                                                                                                                                  :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="

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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="

	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/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="))
    .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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=';
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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=',
  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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=';
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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken="]
                                                       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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=",
  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}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")

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/custom_fields/:id/select_options/:custom_field_select_option_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id/select_options/:custom_field_select_option_id.json?login=&authtoken=")! 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()
GET Retrieve a single CustomField.
{{baseUrl}}/custom_fields/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/custom_fields/:id.json" {:query-params {:login ""
                                                                                 :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id.json?login=&authtoken="

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}}/custom_fields/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id.json?login=&authtoken="

	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/custom_fields/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id.json?login=&authtoken="))
    .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}}/custom_fields/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .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}}/custom_fields/:id.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=';
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}}/custom_fields/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id.json?login=&authtoken=',
  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}}/custom_fields/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/custom_fields/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/custom_fields/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=';
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}}/custom_fields/:id.json?login=&authtoken="]
                                                       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}}/custom_fields/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=",
  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}}/custom_fields/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/custom_fields/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/custom_fields/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/custom_fields/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/custom_fields/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")

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/custom_fields/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/custom_fields/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
http GET '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")! 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 Retrieve all Store's Custom Fields.
{{baseUrl}}/custom_fields.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/custom_fields.json" {:query-params {:login ""
                                                                             :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/custom_fields.json?login=&authtoken="

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}}/custom_fields.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/custom_fields.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields.json?login=&authtoken="

	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/custom_fields.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields.json?login=&authtoken="))
    .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}}/custom_fields.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .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}}/custom_fields.json?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/custom_fields.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields.json?login=&authtoken=';
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}}/custom_fields.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields.json?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields.json?login=&authtoken=',
  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}}/custom_fields.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/custom_fields.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/custom_fields.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/custom_fields.json?login=&authtoken=';
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}}/custom_fields.json?login=&authtoken="]
                                                       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}}/custom_fields.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields.json?login=&authtoken=",
  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}}/custom_fields.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/custom_fields.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/custom_fields.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields.json?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/custom_fields.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/custom_fields.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/custom_fields.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/custom_fields.json?login=&authtoken=")

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/custom_fields.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/custom_fields.json?login=&authtoken='
http GET '{{baseUrl}}/custom_fields.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/custom_fields.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields.json?login=&authtoken=")! 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()
PUT Update a CustomField.
{{baseUrl}}/custom_fields/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=");

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  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}");

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

(client/put "{{baseUrl}}/custom_fields/:id.json" {:query-params {:login ""
                                                                                 :authtoken ""}
                                                                  :content-type :json
                                                                  :form-params {:custom_field {:label ""
                                                                                               :type ""
                                                                                               :values []}}})
require "http/client"

url = "{{baseUrl}}/custom_fields/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/custom_fields/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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}}/custom_fields/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/custom_fields/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/custom_fields/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 77

{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/custom_fields/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")
  .asString();
const data = JSON.stringify({
  custom_field: {
    label: '',
    type: '',
    values: []
  }
});

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

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

xhr.open('PUT', '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/custom_fields/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field: {label: '', type: '', values: []}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field":{"label":"","type":"","values":[]}}'
};

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}}/custom_fields/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "custom_field": {\n    "label": "",\n    "type": "",\n    "values": []\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/custom_fields/:id.json?login=&authtoken=',
  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({custom_field: {label: '', type: '', values: []}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/custom_fields/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {custom_field: {label: '', type: '', values: []}},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/custom_fields/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  custom_field: {
    label: '',
    type: '',
    values: []
  }
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/custom_fields/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {custom_field: {label: '', type: '', values: []}}
};

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

const url = '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"custom_field":{"label":"","type":"","values":[]}}'
};

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 = @{ @"custom_field": @{ @"label": @"", @"type": @"", @"values": @[  ] } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/custom_fields/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/custom_fields/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'custom_field' => [
        'label' => '',
        'type' => '',
        'values' => [
                
        ]
    ]
  ]),
  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('PUT', '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=', [
  'body' => '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/custom_fields/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'custom_field' => [
    'label' => '',
    'type' => '',
    'values' => [
        
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'custom_field' => [
    'label' => '',
    'type' => '',
    'values' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/custom_fields/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/custom_fields/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}'
import http.client

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

payload = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}"

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

conn.request("PUT", "/baseUrl/custom_fields/:id.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/custom_fields/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "custom_field": {
        "label": "",
        "type": "",
        "values": []
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/custom_fields/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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.put('/baseUrl/custom_fields/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"custom_field\": {\n    \"label\": \"\",\n    \"type\": \"\",\n    \"values\": []\n  }\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}}/custom_fields/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"custom_field": json!({
            "label": "",
            "type": "",
            "values": ()
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}'
echo '{
  "custom_field": {
    "label": "",
    "type": "",
    "values": []
  }
}' |  \
  http PUT '{{baseUrl}}/custom_fields/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "custom_field": {\n    "label": "",\n    "type": "",\n    "values": []\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/custom_fields/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["custom_field": [
    "label": "",
    "type": "",
    "values": []
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/custom_fields/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Adds Customer Additional Fields to a Customer.
{{baseUrl}}/customers/:id/fields
QUERY PARAMS

login
authtoken
id
BODY json

{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id/fields?login=&authtoken=");

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  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/customers/:id/fields" {:query-params {:login ""
                                                                                :authtoken ""}
                                                                 :content-type :json
                                                                 :form-params {:customer_additional_field {:checkout_custom_field_id 0
                                                                                                           :value ""}}})
require "http/client"

url = "{{baseUrl}}/customers/:id/fields?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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}}/customers/:id/fields?login=&authtoken="),
    Content = new StringContent("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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}}/customers/:id/fields?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customers/:id/fields?login=&authtoken="

	payload := strings.NewReader("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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/customers/:id/fields?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 91

{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id/fields?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  customer_additional_field: {
    checkout_custom_field_id: 0,
    value: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/customers/:id/fields?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customers/:id/fields',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customer_additional_field: {checkout_custom_field_id: 0, value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id/fields?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customer_additional_field":{"checkout_custom_field_id":0,"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: '{{baseUrl}}/customers/:id/fields?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customer_additional_field": {\n    "checkout_custom_field_id": 0,\n    "value": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .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/customers/:id/fields?login=&authtoken=',
  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({customer_additional_field: {checkout_custom_field_id: 0, value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customers/:id/fields',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {customer_additional_field: {checkout_custom_field_id: 0, value: ''}},
  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}}/customers/:id/fields');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  customer_additional_field: {
    checkout_custom_field_id: 0,
    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: 'POST',
  url: '{{baseUrl}}/customers/:id/fields',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customer_additional_field: {checkout_custom_field_id: 0, value: ''}}
};

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

const url = '{{baseUrl}}/customers/:id/fields?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customer_additional_field":{"checkout_custom_field_id":0,"value":""}}'
};

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 = @{ @"customer_additional_field": @{ @"checkout_custom_field_id": @0, @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customers/:id/fields?login=&authtoken="]
                                                       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}}/customers/:id/fields?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id/fields?login=&authtoken=",
  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([
    'customer_additional_field' => [
        'checkout_custom_field_id' => 0,
        'value' => ''
    ]
  ]),
  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}}/customers/:id/fields?login=&authtoken=', [
  'body' => '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id/fields');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customer_additional_field' => [
    'checkout_custom_field_id' => 0,
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customer_additional_field' => [
    'checkout_custom_field_id' => 0,
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customers/:id/fields');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customers/:id/fields?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id/fields?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/customers/:id/fields?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/customers/:id/fields"

querystring = {"login":"","authtoken":""}

payload = { "customer_additional_field": {
        "checkout_custom_field_id": 0,
        "value": ""
    } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/customers/:id/fields"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/customers/:id/fields?login=&authtoken=")

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  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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/customers/:id/fields') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}"
end

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

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"customer_additional_field": json!({
            "checkout_custom_field_id": 0,
            "value": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/customers/:id/fields?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}'
echo '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}' |  \
  http POST '{{baseUrl}}/customers/:id/fields?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "customer_additional_field": {\n    "checkout_custom_field_id": 0,\n    "value": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/customers/:id/fields?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["customer_additional_field": [
    "checkout_custom_field_id": 0,
    "value": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id/fields?login=&authtoken=")! 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()
DELETE Delete a Customer Additional Field.
{{baseUrl}}/customers/:id/fields/:field_id
QUERY PARAMS

login
authtoken
id
field_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=");

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

(client/delete "{{baseUrl}}/customers/:id/fields/:field_id" {:query-params {:login ""
                                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="

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}}/customers/:id/fields/:field_id?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="

	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/customers/:id/fields/:field_id?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="))
    .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}}/customers/:id/fields/:field_id?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .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}}/customers/:id/fields/:field_id?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/customers/:id/fields/:field_id',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=';
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}}/customers/:id/fields/:field_id?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id/fields/:field_id?login=&authtoken=',
  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}}/customers/:id/fields/:field_id',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/customers/:id/fields/:field_id');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/:id/fields/:field_id',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=';
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}}/customers/:id/fields/:field_id?login=&authtoken="]
                                                       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}}/customers/:id/fields/:field_id?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=",
  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}}/customers/:id/fields/:field_id?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id/fields/:field_id');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/:id/fields/:field_id');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/customers/:id/fields/:field_id?login=&authtoken=")

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

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

url = "{{baseUrl}}/customers/:id/fields/:field_id"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/customers/:id/fields/:field_id"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")

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/customers/:id/fields/:field_id') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers/:id/fields/:field_id";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
http DELETE '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")! 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()
GET Retrieve a single Customer Additional Field.
{{baseUrl}}/customers/:id/fields/:field_id
QUERY PARAMS

login
authtoken
id
field_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=");

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

(client/get "{{baseUrl}}/customers/:id/fields/:field_id" {:query-params {:login ""
                                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="

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}}/customers/:id/fields/:field_id?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="

	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/customers/:id/fields/:field_id?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="))
    .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}}/customers/:id/fields/:field_id?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .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}}/customers/:id/fields/:field_id?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customers/:id/fields/:field_id',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=';
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}}/customers/:id/fields/:field_id?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id/fields/:field_id?login=&authtoken=',
  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}}/customers/:id/fields/:field_id',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/customers/:id/fields/:field_id');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/:id/fields/:field_id',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=';
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}}/customers/:id/fields/:field_id?login=&authtoken="]
                                                       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}}/customers/:id/fields/:field_id?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=",
  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}}/customers/:id/fields/:field_id?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id/fields/:field_id');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/:id/fields/:field_id');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/customers/:id/fields/:field_id?login=&authtoken=")

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

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

url = "{{baseUrl}}/customers/:id/fields/:field_id"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/customers/:id/fields/:field_id"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")

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/customers/:id/fields/:field_id') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers/:id/fields/:field_id";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
http GET '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")! 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 Retrieves the Customer Additional Field of a Customer.
{{baseUrl}}/customers/:id/fields
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id/fields?login=&authtoken=");

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

(client/get "{{baseUrl}}/customers/:id/fields" {:query-params {:login ""
                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/:id/fields?login=&authtoken="

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}}/customers/:id/fields?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/:id/fields?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customers/:id/fields?login=&authtoken="

	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/customers/:id/fields?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id/fields?login=&authtoken="))
    .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}}/customers/:id/fields?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .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}}/customers/:id/fields?login=&authtoken=');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customers/:id/fields',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id/fields?login=&authtoken=';
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}}/customers/:id/fields?login=&authtoken=',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields?login=&authtoken=")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id/fields?login=&authtoken=',
  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}}/customers/:id/fields',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/customers/:id/fields');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/:id/fields',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/customers/:id/fields?login=&authtoken=';
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}}/customers/:id/fields?login=&authtoken="]
                                                       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}}/customers/:id/fields?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id/fields?login=&authtoken=",
  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}}/customers/:id/fields?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id/fields');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/:id/fields');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/:id/fields?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id/fields?login=&authtoken=' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/customers/:id/fields?login=&authtoken=")

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

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

url = "{{baseUrl}}/customers/:id/fields"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/customers/:id/fields"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/customers/:id/fields?login=&authtoken=")

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/customers/:id/fields') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customers/:id/fields?login=&authtoken='
http GET '{{baseUrl}}/customers/:id/fields?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customers/:id/fields?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id/fields?login=&authtoken=")! 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()
PUT Update a Customer Additional Field.
{{baseUrl}}/customers/:id/fields/:field_id
QUERY PARAMS

login
authtoken
id
field_id
BODY json

{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=");

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  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}");

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

(client/put "{{baseUrl}}/customers/:id/fields/:field_id" {:query-params {:login ""
                                                                                         :authtoken ""}
                                                                          :content-type :json
                                                                          :form-params {:customer_additional_field {:checkout_custom_field_id 0
                                                                                                                    :value ""}}})
require "http/client"

url = "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="),
    Content = new StringContent("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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}}/customers/:id/fields/:field_id?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="

	payload := strings.NewReader("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/customers/:id/fields/:field_id?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 91

{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  customer_additional_field: {
    checkout_custom_field_id: 0,
    value: ''
  }
});

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

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

xhr.open('PUT', '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/customers/:id/fields/:field_id',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customer_additional_field: {checkout_custom_field_id: 0, value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"customer_additional_field":{"checkout_custom_field_id":0,"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: '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customer_additional_field": {\n    "checkout_custom_field_id": 0,\n    "value": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id/fields/:field_id?login=&authtoken=',
  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({customer_additional_field: {checkout_custom_field_id: 0, value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/customers/:id/fields/:field_id',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {customer_additional_field: {checkout_custom_field_id: 0, value: ''}},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/customers/:id/fields/:field_id');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  customer_additional_field: {
    checkout_custom_field_id: 0,
    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: 'PUT',
  url: '{{baseUrl}}/customers/:id/fields/:field_id',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customer_additional_field: {checkout_custom_field_id: 0, value: ''}}
};

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

const url = '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"customer_additional_field":{"checkout_custom_field_id":0,"value":""}}'
};

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 = @{ @"customer_additional_field": @{ @"checkout_custom_field_id": @0, @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/customers/:id/fields/:field_id?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'customer_additional_field' => [
        'checkout_custom_field_id' => 0,
        'value' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=', [
  'body' => '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id/fields/:field_id');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customer_additional_field' => [
    'checkout_custom_field_id' => 0,
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customer_additional_field' => [
    'checkout_custom_field_id' => 0,
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customers/:id/fields/:field_id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customers/:id/fields/:field_id?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}"

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

conn.request("PUT", "/baseUrl/customers/:id/fields/:field_id?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/customers/:id/fields/:field_id"

querystring = {"login":"","authtoken":""}

payload = { "customer_additional_field": {
        "checkout_custom_field_id": 0,
        "value": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/customers/:id/fields/:field_id"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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.put('/baseUrl/customers/:id/fields/:field_id') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"customer_additional_field\": {\n    \"checkout_custom_field_id\": 0,\n    \"value\": \"\"\n  }\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}}/customers/:id/fields/:field_id";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"customer_additional_field": json!({
            "checkout_custom_field_id": 0,
            "value": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}'
echo '{
  "customer_additional_field": {
    "checkout_custom_field_id": 0,
    "value": ""
  }
}' |  \
  http PUT '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "customer_additional_field": {\n    "checkout_custom_field_id": 0,\n    "value": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["customer_additional_field": [
    "checkout_custom_field_id": 0,
    "value": ""
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id/fields/:field_id?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Adds Customers to a CustomerCategory.
{{baseUrl}}/customer_categories/:id/customers.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=");

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  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/customer_categories/:id/customers.json" {:query-params {:login ""
                                                                                                  :authtoken ""}
                                                                                   :content-type :json
                                                                                   :form-params {:customers [{:email ""
                                                                                                              :id 0}]}})
require "http/client"

url = "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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}}/customer_categories/:id/customers.json?login=&authtoken="),
    Content = new StringContent("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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}}/customer_categories/:id/customers.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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/customer_categories/:id/customers.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 69

{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  customers: [
    {
      email: '',
      id: 0
    }
  ]
});

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

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

xhr.open('POST', '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customer_categories/:id/customers.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customers: [{email: '', id: 0}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customers":[{"email":"","id":0}]}'
};

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}}/customer_categories/:id/customers.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customers": [\n    {\n      "email": "",\n      "id": 0\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .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/customer_categories/:id/customers.json?login=&authtoken=',
  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({customers: [{email: '', id: 0}]}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customer_categories/:id/customers.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {customers: [{email: '', id: 0}]},
  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}}/customer_categories/:id/customers.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  customers: [
    {
      email: '',
      id: 0
    }
  ]
});

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}}/customer_categories/:id/customers.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customers: [{email: '', id: 0}]}
};

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

const url = '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customers":[{"email":"","id":0}]}'
};

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 = @{ @"customers": @[ @{ @"email": @"", @"id": @0 } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="]
                                                       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}}/customer_categories/:id/customers.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=",
  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([
    'customers' => [
        [
                'email' => '',
                'id' => 0
        ]
    ]
  ]),
  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}}/customer_categories/:id/customers.json?login=&authtoken=', [
  'body' => '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories/:id/customers.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customers' => [
    [
        'email' => '',
        'id' => 0
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customers' => [
    [
        'email' => '',
        'id' => 0
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customer_categories/:id/customers.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customer_categories/:id/customers.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}'
import http.client

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

payload = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/customer_categories/:id/customers.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/customer_categories/:id/customers.json"

querystring = {"login":"","authtoken":""}

payload = { "customers": [
        {
            "email": "",
            "id": 0
        }
    ] }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/customer_categories/:id/customers.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")

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  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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/customer_categories/:id/customers.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customer_categories/:id/customers.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"customers": (
            json!({
                "email": "",
                "id": 0
            })
        )});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}'
echo '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}' |  \
  http POST '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "customers": [\n    {\n      "email": "",\n      "id": 0\n    }\n  ]\n}' \
  --output-document \
  - '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["customers": [
    [
      "email": "",
      "id": 0
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")! 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 Create a new CustomerCategory.
{{baseUrl}}/customer_categories.json
QUERY PARAMS

login
authtoken
BODY json

{
  "category": {
    "name": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories.json?login=&authtoken=");

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  \"category\": {\n    \"name\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/customer_categories.json" {:query-params {:login ""
                                                                                    :authtoken ""}
                                                                     :content-type :json
                                                                     :form-params {:category {:name ""}}})
require "http/client"

url = "{{baseUrl}}/customer_categories.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"category\": {\n    \"name\": \"\"\n  }\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}}/customer_categories.json?login=&authtoken="),
    Content = new StringContent("{\n  \"category\": {\n    \"name\": \"\"\n  }\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}}/customer_categories.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customer_categories.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"category\": {\n    \"name\": \"\"\n  }\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/customer_categories.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 38

{
  "category": {
    "name": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"category\": {\n    \"name\": \"\"\n  }\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  \"category\": {\n    \"name\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  category: {
    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}}/customer_categories.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customer_categories.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"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}}/customer_categories.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "category": {\n    "name": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .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/customer_categories.json?login=&authtoken=',
  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({category: {name: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customer_categories.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {category: {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}}/customer_categories.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  category: {
    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}}/customer_categories.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: ''}}
};

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

const url = '{{baseUrl}}/customer_categories.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"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 = @{ @"category": @{ @"name": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customer_categories.json?login=&authtoken="]
                                                       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}}/customer_categories.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories.json?login=&authtoken=",
  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([
    'category' => [
        '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}}/customer_categories.json?login=&authtoken=', [
  'body' => '{
  "category": {
    "name": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'category' => [
    'name' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'category' => [
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customer_categories.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customer_categories.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": ""
  }
}'
import http.client

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

payload = "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/customer_categories.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/customer_categories.json"

querystring = {"login":"","authtoken":""}

payload = { "category": { "name": "" } }
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/customer_categories.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/customer_categories.json?login=&authtoken=")

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  \"category\": {\n    \"name\": \"\"\n  }\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/customer_categories.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}"
end

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

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

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"category": json!({"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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/customer_categories.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "category": {
    "name": ""
  }
}'
echo '{
  "category": {
    "name": ""
  }
}' |  \
  http POST '{{baseUrl}}/customer_categories.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "category": {\n    "name": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/customer_categories.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["category": ["name": ""]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories.json?login=&authtoken=")! 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()
DELETE Delete Customers from an existing CustomerCategory.
{{baseUrl}}/customer_categories/:id/customers.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=");

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  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}");

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

(client/delete "{{baseUrl}}/customer_categories/:id/customers.json" {:query-params {:login ""
                                                                                                    :authtoken ""}
                                                                                     :content-type :json
                                                                                     :form-params {:customers [{:email ""
                                                                                                                :id 0}]}})
require "http/client"

url = "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="),
    Content = new StringContent("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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}}/customer_categories/:id/customers.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/customer_categories/:id/customers.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 69

{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  customers: [
    {
      email: '',
      id: 0
    }
  ]
});

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

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

xhr.open('DELETE', '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/customer_categories/:id/customers.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customers: [{email: '', id: 0}]}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '{"customers":[{"email":"","id":0}]}'
};

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}}/customer_categories/:id/customers.json?login=&authtoken=',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customers": [\n    {\n      "email": "",\n      "id": 0\n    }\n  ]\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customer_categories/:id/customers.json?login=&authtoken=',
  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({customers: [{email: '', id: 0}]}));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/customer_categories/:id/customers.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {customers: [{email: '', id: 0}]},
  json: true
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/customer_categories/:id/customers.json');

req.query({
  login: '',
  authtoken: ''
});

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

req.type('json');
req.send({
  customers: [
    {
      email: '',
      id: 0
    }
  ]
});

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}}/customer_categories/:id/customers.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {customers: [{email: '', id: 0}]}
};

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

const url = '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '{"customers":[{"email":"","id":0}]}'
};

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 = @{ @"customers": @[ @{ @"email": @"", @"id": @0 } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/customer_categories/:id/customers.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    'customers' => [
        [
                'email' => '',
                'id' => 0
        ]
    ]
  ]),
  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('DELETE', '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=', [
  'body' => '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories/:id/customers.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customers' => [
    [
        'email' => '',
        'id' => 0
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customers' => [
    [
        'email' => '',
        'id' => 0
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customer_categories/:id/customers.json');
$request->setRequestMethod('DELETE');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customer_categories/:id/customers.json?login=&authtoken=' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}'
import http.client

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

payload = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}"

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

conn.request("DELETE", "/baseUrl/customer_categories/:id/customers.json?login=&authtoken=", payload, headers)

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

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

url = "{{baseUrl}}/customer_categories/:id/customers.json"

querystring = {"login":"","authtoken":""}

payload = { "customers": [
        {
            "email": "",
            "id": 0
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/customer_categories/:id/customers.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")

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

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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.delete('/baseUrl/customer_categories/:id/customers.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"customers\": [\n    {\n      \"email\": \"\",\n      \"id\": 0\n    }\n  ]\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}}/customer_categories/:id/customers.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"customers": (
            json!({
                "email": "",
                "id": 0
            })
        )});

    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("DELETE").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}'
echo '{
  "customers": [
    {
      "email": "",
      "id": 0
    }
  ]
}' |  \
  http DELETE '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '{\n  "customers": [\n    {\n      "email": "",\n      "id": 0\n    }\n  ]\n}' \
  --output-document \
  - '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["customers": [
    [
      "email": "",
      "id": 0
    ]
  ]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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()
DELETE Delete an existing CustomerCategory.
{{baseUrl}}/customer_categories/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=");

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

(client/delete "{{baseUrl}}/customer_categories/:id.json" {:query-params {:login ""
                                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customer_categories/:id.json?login=&authtoken="

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}}/customer_categories/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/customer_categories/:id.json?login=&authtoken="

	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/customer_categories/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories/:id.json?login=&authtoken="))
    .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}}/customer_categories/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .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}}/customer_categories/:id.json?login=&authtoken=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/customer_categories/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=';
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}}/customer_categories/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customer_categories/:id.json?login=&authtoken=',
  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}}/customer_categories/:id.json',
  qs: {login: '', authtoken: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/customer_categories/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customer_categories/:id.json',
  params: {login: '', authtoken: ''}
};

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

const url = '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=';
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}}/customer_categories/:id.json?login=&authtoken="]
                                                       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}}/customer_categories/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=",
  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}}/customer_categories/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customer_categories/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/customer_categories/:id.json?login=&authtoken=")

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

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

url = "{{baseUrl}}/customer_categories/:id.json"

querystring = {"login":"","authtoken":""}

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

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

url <- "{{baseUrl}}/customer_categories/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

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

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

url = URI("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")

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/customer_categories/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customer_categories/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

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

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

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")! 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()
GET Retrieve a single CustomerCategory.
{{baseUrl}}/customer_categories/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=");

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

(client/get "{{baseUrl}}/customer_categories/:id.json" {:query-params {:login ""
                                                                                       :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customer_categories/:id.json?login=&authtoken="

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}}/customer_categories/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customer_categories/:id.json?login=&authtoken="

	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/customer_categories/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories/:id.json?login=&authtoken="))
    .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}}/customer_categories/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .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}}/customer_categories/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customer_categories/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=';
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}}/customer_categories/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customer_categories/:id.json?login=&authtoken=',
  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}}/customer_categories/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customer_categories/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customer_categories/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=';
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}}/customer_categories/:id.json?login=&authtoken="]
                                                       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}}/customer_categories/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=",
  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}}/customer_categories/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customer_categories/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customer_categories/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customer_categories/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customer_categories/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")

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/customer_categories/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customer_categories/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
http GET '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")! 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 Retrieve all Customer Categories.
{{baseUrl}}/customer_categories.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/customer_categories.json" {:query-params {:login ""
                                                                                   :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customer_categories.json?login=&authtoken="

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}}/customer_categories.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customer_categories.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customer_categories.json?login=&authtoken="

	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/customer_categories.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories.json?login=&authtoken="))
    .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}}/customer_categories.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .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}}/customer_categories.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customer_categories.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories.json?login=&authtoken=';
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}}/customer_categories.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customer_categories.json?login=&authtoken=',
  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}}/customer_categories.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customer_categories.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customer_categories.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customer_categories.json?login=&authtoken=';
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}}/customer_categories.json?login=&authtoken="]
                                                       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}}/customer_categories.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories.json?login=&authtoken=",
  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}}/customer_categories.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customer_categories.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customer_categories.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customer_categories.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customer_categories.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customer_categories.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customer_categories.json?login=&authtoken=")

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/customer_categories.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customer_categories.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customer_categories.json?login=&authtoken='
http GET '{{baseUrl}}/customer_categories.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customer_categories.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories.json?login=&authtoken=")! 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 Retrieves the customers in a CustomerCategory.
{{baseUrl}}/customer_categories/:id/customers.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/customer_categories/:id/customers.json" {:query-params {:login ""
                                                                                                 :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="

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}}/customer_categories/:id/customers.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="

	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/customer_categories/:id/customers.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken="))
    .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}}/customer_categories/:id/customers.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .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}}/customer_categories/:id/customers.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customer_categories/:id/customers.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=';
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}}/customer_categories/:id/customers.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customer_categories/:id/customers.json?login=&authtoken=',
  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}}/customer_categories/:id/customers.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customer_categories/:id/customers.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customer_categories/:id/customers.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=';
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}}/customer_categories/:id/customers.json?login=&authtoken="]
                                                       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}}/customer_categories/:id/customers.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=",
  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}}/customer_categories/:id/customers.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories/:id/customers.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customer_categories/:id/customers.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customer_categories/:id/customers.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customer_categories/:id/customers.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customer_categories/:id/customers.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")

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/customer_categories/:id/customers.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customer_categories/:id/customers.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken='
http GET '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories/:id/customers.json?login=&authtoken=")! 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()
PUT Update a CustomerCategory.
{{baseUrl}}/customer_categories/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "category": {
    "name": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=");

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  \"category\": {\n    \"name\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/customer_categories/:id.json" {:query-params {:login ""
                                                                                       :authtoken ""}
                                                                        :content-type :json
                                                                        :form-params {:category {:name ""}}})
require "http/client"

url = "{{baseUrl}}/customer_categories/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/customer_categories/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"category\": {\n    \"name\": \"\"\n  }\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}}/customer_categories/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customer_categories/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/customer_categories/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 38

{
  "category": {
    "name": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customer_categories/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"category\": {\n    \"name\": \"\"\n  }\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  \"category\": {\n    \"name\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  category: {
    name: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/customer_categories/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"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}}/customer_categories/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "category": {\n    "name": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customer_categories/:id.json?login=&authtoken=',
  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({category: {name: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/customer_categories/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {category: {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('PUT', '{{baseUrl}}/customer_categories/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  category: {
    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: 'PUT',
  url: '{{baseUrl}}/customer_categories/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {category: {name: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"category":{"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 = @{ @"category": @{ @"name": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customer_categories/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/customer_categories/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'category' => [
        '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('PUT', '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=', [
  'body' => '{
  "category": {
    "name": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customer_categories/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'category' => [
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'category' => [
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customer_categories/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customer_categories/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "category": {
    "name": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/customer_categories/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customer_categories/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "category": { "name": "" } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customer_categories/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"category\": {\n    \"name\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"category\": {\n    \"name\": \"\"\n  }\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.put('/baseUrl/customer_categories/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"category\": {\n    \"name\": \"\"\n  }\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}}/customer_categories/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"category": json!({"name": ""})});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "category": {
    "name": ""
  }
}'
echo '{
  "category": {
    "name": ""
  }
}' |  \
  http PUT '{{baseUrl}}/customer_categories/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "category": {\n    "name": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/customer_categories/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["category": ["name": ""]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customer_categories/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Count all Customers.
{{baseUrl}}/customers/count.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/customers/count.json" {:query-params {:login ""
                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/count.json?login=&authtoken="

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}}/customers/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers/count.json?login=&authtoken="

	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/customers/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customers/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/count.json?login=&authtoken="))
    .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}}/customers/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customers/count.json?login=&authtoken=")
  .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}}/customers/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customers/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/count.json?login=&authtoken=';
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}}/customers/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customers/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/count.json?login=&authtoken=',
  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}}/customers/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customers/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers/count.json?login=&authtoken=';
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}}/customers/count.json?login=&authtoken="]
                                                       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}}/customers/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/count.json?login=&authtoken=",
  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}}/customers/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customers/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers/count.json?login=&authtoken=")

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/customers/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customers/count.json?login=&authtoken='
http GET '{{baseUrl}}/customers/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customers/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/count.json?login=&authtoken=")! 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 Create a new Customer.
{{baseUrl}}/customers.json
QUERY PARAMS

login
authtoken
BODY json

{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers.json?login=&authtoken=");

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  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/customers.json" {:query-params {:login ""
                                                                          :authtoken ""}
                                                           :content-type :json
                                                           :form-params {:customer {:billing_address ""
                                                                                    :customer_category []
                                                                                    :email ""
                                                                                    :password ""
                                                                                    :phone ""
                                                                                    :shipping_address ""
                                                                                    :status ""}}})
require "http/client"

url = "{{baseUrl}}/customers.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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}}/customers.json?login=&authtoken="),
    Content = new StringContent("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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}}/customers.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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/customers.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 178

{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/customers.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customers.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/customers.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  customer: {
    billing_address: '',
    customer_category: [],
    email: '',
    password: '',
    phone: '',
    shipping_address: '',
    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}}/customers.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customers.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    customer: {
      billing_address: '',
      customer_category: [],
      email: '',
      password: '',
      phone: '',
      shipping_address: '',
      status: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customer":{"billing_address":"","customer_category":[],"email":"","password":"","phone":"","shipping_address":"","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}}/customers.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customer": {\n    "billing_address": "",\n    "customer_category": [],\n    "email": "",\n    "password": "",\n    "phone": "",\n    "shipping_address": "",\n    "status": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customers.json?login=&authtoken=")
  .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/customers.json?login=&authtoken=',
  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({
  customer: {
    billing_address: '',
    customer_category: [],
    email: '',
    password: '',
    phone: '',
    shipping_address: '',
    status: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/customers.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    customer: {
      billing_address: '',
      customer_category: [],
      email: '',
      password: '',
      phone: '',
      shipping_address: '',
      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}}/customers.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  customer: {
    billing_address: '',
    customer_category: [],
    email: '',
    password: '',
    phone: '',
    shipping_address: '',
    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}}/customers.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    customer: {
      billing_address: '',
      customer_category: [],
      email: '',
      password: '',
      phone: '',
      shipping_address: '',
      status: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customer":{"billing_address":"","customer_category":[],"email":"","password":"","phone":"","shipping_address":"","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 = @{ @"customer": @{ @"billing_address": @"", @"customer_category": @[  ], @"email": @"", @"password": @"", @"phone": @"", @"shipping_address": @"", @"status": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customers.json?login=&authtoken="]
                                                       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}}/customers.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers.json?login=&authtoken=",
  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([
    'customer' => [
        'billing_address' => '',
        'customer_category' => [
                
        ],
        'email' => '',
        'password' => '',
        'phone' => '',
        'shipping_address' => '',
        '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}}/customers.json?login=&authtoken=', [
  'body' => '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customers.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customer' => [
    'billing_address' => '',
    'customer_category' => [
        
    ],
    'email' => '',
    'password' => '',
    'phone' => '',
    'shipping_address' => '',
    'status' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customer' => [
    'billing_address' => '',
    'customer_category' => [
        
    ],
    'email' => '',
    'password' => '',
    'phone' => '',
    'shipping_address' => '',
    'status' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customers.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customers.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/customers.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers.json"

querystring = {"login":"","authtoken":""}

payload = { "customer": {
        "billing_address": "",
        "customer_category": [],
        "email": "",
        "password": "",
        "phone": "",
        "shipping_address": "",
        "status": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers.json?login=&authtoken=")

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  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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/customers.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"customer": json!({
            "billing_address": "",
            "customer_category": (),
            "email": "",
            "password": "",
            "phone": "",
            "shipping_address": "",
            "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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/customers.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}'
echo '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}' |  \
  http POST '{{baseUrl}}/customers.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "customer": {\n    "billing_address": "",\n    "customer_category": [],\n    "email": "",\n    "password": "",\n    "phone": "",\n    "shipping_address": "",\n    "status": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/customers.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["customer": [
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers.json?login=&authtoken=")! 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()
DELETE Delete an existing Customer.
{{baseUrl}}/customers/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/customers/:id.json" {:query-params {:login ""
                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/:id.json?login=&authtoken="

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}}/customers/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers/:id.json?login=&authtoken="

	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/customers/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id.json?login=&authtoken="))
    .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}}/customers/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .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}}/customers/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/customers/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id.json?login=&authtoken=';
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}}/customers/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id.json?login=&authtoken=',
  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}}/customers/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/customers/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers/:id.json?login=&authtoken=';
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}}/customers/:id.json?login=&authtoken="]
                                                       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}}/customers/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id.json?login=&authtoken=",
  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}}/customers/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/customers/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers/:id.json?login=&authtoken=")

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/customers/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/customers/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/customers/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/customers/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id.json?login=&authtoken=")! 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()
GET Retrieve a single Customer by email.
{{baseUrl}}/customers/email/:email.json
QUERY PARAMS

login
authtoken
email
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/email/:email.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/customers/email/:email.json" {:query-params {:login ""
                                                                                      :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/email/:email.json?login=&authtoken="

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}}/customers/email/:email.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/email/:email.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers/email/:email.json?login=&authtoken="

	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/customers/email/:email.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customers/email/:email.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/email/:email.json?login=&authtoken="))
    .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}}/customers/email/:email.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customers/email/:email.json?login=&authtoken=")
  .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}}/customers/email/:email.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customers/email/:email.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/email/:email.json?login=&authtoken=';
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}}/customers/email/:email.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customers/email/:email.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/email/:email.json?login=&authtoken=',
  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}}/customers/email/:email.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customers/email/:email.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/email/:email.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers/email/:email.json?login=&authtoken=';
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}}/customers/email/:email.json?login=&authtoken="]
                                                       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}}/customers/email/:email.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/email/:email.json?login=&authtoken=",
  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}}/customers/email/:email.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/email/:email.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/email/:email.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/email/:email.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/email/:email.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customers/email/:email.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers/email/:email.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers/email/:email.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers/email/:email.json?login=&authtoken=")

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/customers/email/:email.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers/email/:email.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customers/email/:email.json?login=&authtoken='
http GET '{{baseUrl}}/customers/email/:email.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customers/email/:email.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/email/:email.json?login=&authtoken=")! 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 Retrieve a single Customer by id.
{{baseUrl}}/customers/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/customers/:id.json" {:query-params {:login ""
                                                                             :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers/:id.json?login=&authtoken="

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}}/customers/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers/:id.json?login=&authtoken="

	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/customers/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id.json?login=&authtoken="))
    .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}}/customers/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .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}}/customers/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customers/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id.json?login=&authtoken=';
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}}/customers/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id.json?login=&authtoken=',
  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}}/customers/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customers/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers/:id.json?login=&authtoken=';
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}}/customers/:id.json?login=&authtoken="]
                                                       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}}/customers/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id.json?login=&authtoken=",
  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}}/customers/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customers/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers/:id.json?login=&authtoken=")

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/customers/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customers/:id.json?login=&authtoken='
http GET '{{baseUrl}}/customers/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customers/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id.json?login=&authtoken=")! 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 Retrieve all Customers.
{{baseUrl}}/customers.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/customers.json" {:query-params {:login ""
                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/customers.json?login=&authtoken="

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}}/customers.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/customers.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers.json?login=&authtoken="

	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/customers.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/customers.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers.json?login=&authtoken="))
    .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}}/customers.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/customers.json?login=&authtoken=")
  .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}}/customers.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/customers.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers.json?login=&authtoken=';
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}}/customers.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/customers.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers.json?login=&authtoken=',
  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}}/customers.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/customers.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/customers.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers.json?login=&authtoken=';
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}}/customers.json?login=&authtoken="]
                                                       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}}/customers.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers.json?login=&authtoken=",
  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}}/customers.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/customers.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/customers.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/customers.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/customers.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers.json?login=&authtoken=")

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/customers.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/customers.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/customers.json?login=&authtoken='
http GET '{{baseUrl}}/customers.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/customers.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers.json?login=&authtoken=")! 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()
PUT Update a new Customer.
{{baseUrl}}/customers/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/customers/:id.json?login=&authtoken=");

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  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/customers/:id.json" {:query-params {:login ""
                                                                             :authtoken ""}
                                                              :content-type :json
                                                              :form-params {:customer {:billing_address ""
                                                                                       :customer_category []
                                                                                       :email ""
                                                                                       :password ""
                                                                                       :phone ""
                                                                                       :shipping_address ""
                                                                                       :status ""}}})
require "http/client"

url = "{{baseUrl}}/customers/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/customers/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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}}/customers/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/customers/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/customers/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 178

{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/customers/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  customer: {
    billing_address: '',
    customer_category: [],
    email: '',
    password: '',
    phone: '',
    shipping_address: '',
    status: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/customers/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/customers/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    customer: {
      billing_address: '',
      customer_category: [],
      email: '',
      password: '',
      phone: '',
      shipping_address: '',
      status: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/customers/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"customer":{"billing_address":"","customer_category":[],"email":"","password":"","phone":"","shipping_address":"","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}}/customers/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customer": {\n    "billing_address": "",\n    "customer_category": [],\n    "email": "",\n    "password": "",\n    "phone": "",\n    "shipping_address": "",\n    "status": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/customers/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/customers/:id.json?login=&authtoken=',
  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({
  customer: {
    billing_address: '',
    customer_category: [],
    email: '',
    password: '',
    phone: '',
    shipping_address: '',
    status: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/customers/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    customer: {
      billing_address: '',
      customer_category: [],
      email: '',
      password: '',
      phone: '',
      shipping_address: '',
      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('PUT', '{{baseUrl}}/customers/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  customer: {
    billing_address: '',
    customer_category: [],
    email: '',
    password: '',
    phone: '',
    shipping_address: '',
    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: 'PUT',
  url: '{{baseUrl}}/customers/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    customer: {
      billing_address: '',
      customer_category: [],
      email: '',
      password: '',
      phone: '',
      shipping_address: '',
      status: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/customers/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"customer":{"billing_address":"","customer_category":[],"email":"","password":"","phone":"","shipping_address":"","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 = @{ @"customer": @{ @"billing_address": @"", @"customer_category": @[  ], @"email": @"", @"password": @"", @"phone": @"", @"shipping_address": @"", @"status": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/customers/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/customers/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/customers/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'customer' => [
        'billing_address' => '',
        'customer_category' => [
                
        ],
        'email' => '',
        'password' => '',
        'phone' => '',
        'shipping_address' => '',
        '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('PUT', '{{baseUrl}}/customers/:id.json?login=&authtoken=', [
  'body' => '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/customers/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customer' => [
    'billing_address' => '',
    'customer_category' => [
        
    ],
    'email' => '',
    'password' => '',
    'phone' => '',
    'shipping_address' => '',
    'status' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customer' => [
    'billing_address' => '',
    'customer_category' => [
        
    ],
    'email' => '',
    'password' => '',
    'phone' => '',
    'shipping_address' => '',
    'status' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/customers/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/customers/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/customers/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/customers/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/customers/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "customer": {
        "billing_address": "",
        "customer_category": [],
        "email": "",
        "password": "",
        "phone": "",
        "shipping_address": "",
        "status": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/customers/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/customers/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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.put('/baseUrl/customers/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"customer\": {\n    \"billing_address\": \"\",\n    \"customer_category\": [],\n    \"email\": \"\",\n    \"password\": \"\",\n    \"phone\": \"\",\n    \"shipping_address\": \"\",\n    \"status\": \"\"\n  }\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}}/customers/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"customer": json!({
            "billing_address": "",
            "customer_category": (),
            "email": "",
            "password": "",
            "phone": "",
            "shipping_address": "",
            "status": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/customers/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}'
echo '{
  "customer": {
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  }
}' |  \
  http PUT '{{baseUrl}}/customers/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "customer": {\n    "billing_address": "",\n    "customer_category": [],\n    "email": "",\n    "password": "",\n    "phone": "",\n    "shipping_address": "",\n    "status": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/customers/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["customer": [
    "billing_address": "",
    "customer_category": [],
    "email": "",
    "password": "",
    "phone": "",
    "shipping_address": "",
    "status": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/customers/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Count all Fulfillments.
{{baseUrl}}/fulfillments/count.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/fulfillments/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/fulfillments/count.json" {:query-params {:login ""
                                                                                  :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/fulfillments/count.json?login=&authtoken="

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}}/fulfillments/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/fulfillments/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/fulfillments/count.json?login=&authtoken="

	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/fulfillments/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/fulfillments/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/fulfillments/count.json?login=&authtoken="))
    .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}}/fulfillments/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/fulfillments/count.json?login=&authtoken=")
  .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}}/fulfillments/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/fulfillments/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/fulfillments/count.json?login=&authtoken=';
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}}/fulfillments/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/fulfillments/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/fulfillments/count.json?login=&authtoken=',
  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}}/fulfillments/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/fulfillments/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/fulfillments/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/fulfillments/count.json?login=&authtoken=';
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}}/fulfillments/count.json?login=&authtoken="]
                                                       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}}/fulfillments/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/fulfillments/count.json?login=&authtoken=",
  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}}/fulfillments/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/fulfillments/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/fulfillments/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/fulfillments/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/fulfillments/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/fulfillments/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/fulfillments/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/fulfillments/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/fulfillments/count.json?login=&authtoken=")

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/fulfillments/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/fulfillments/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/fulfillments/count.json?login=&authtoken='
http GET '{{baseUrl}}/fulfillments/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/fulfillments/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/fulfillments/count.json?login=&authtoken=")! 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 Retrieve a single Fulfillment.
{{baseUrl}}/fulfillments/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/fulfillments/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/fulfillments/:id.json" {:query-params {:login ""
                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/fulfillments/:id.json?login=&authtoken="

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}}/fulfillments/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/fulfillments/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/fulfillments/:id.json?login=&authtoken="

	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/fulfillments/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/fulfillments/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/fulfillments/:id.json?login=&authtoken="))
    .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}}/fulfillments/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/fulfillments/:id.json?login=&authtoken=")
  .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}}/fulfillments/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/fulfillments/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/fulfillments/:id.json?login=&authtoken=';
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}}/fulfillments/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/fulfillments/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/fulfillments/:id.json?login=&authtoken=',
  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}}/fulfillments/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/fulfillments/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/fulfillments/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/fulfillments/:id.json?login=&authtoken=';
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}}/fulfillments/:id.json?login=&authtoken="]
                                                       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}}/fulfillments/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/fulfillments/:id.json?login=&authtoken=",
  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}}/fulfillments/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/fulfillments/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/fulfillments/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/fulfillments/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/fulfillments/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/fulfillments/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/fulfillments/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/fulfillments/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/fulfillments/:id.json?login=&authtoken=")

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/fulfillments/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/fulfillments/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/fulfillments/:id.json?login=&authtoken='
http GET '{{baseUrl}}/fulfillments/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/fulfillments/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/fulfillments/:id.json?login=&authtoken=")! 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 Retrieve all Fulfillments.
{{baseUrl}}/fulfillments.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/fulfillments.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/fulfillments.json" {:query-params {:login ""
                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/fulfillments.json?login=&authtoken="

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}}/fulfillments.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/fulfillments.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/fulfillments.json?login=&authtoken="

	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/fulfillments.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/fulfillments.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/fulfillments.json?login=&authtoken="))
    .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}}/fulfillments.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/fulfillments.json?login=&authtoken=")
  .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}}/fulfillments.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/fulfillments.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/fulfillments.json?login=&authtoken=';
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}}/fulfillments.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/fulfillments.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/fulfillments.json?login=&authtoken=',
  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}}/fulfillments.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/fulfillments.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/fulfillments.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/fulfillments.json?login=&authtoken=';
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}}/fulfillments.json?login=&authtoken="]
                                                       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}}/fulfillments.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/fulfillments.json?login=&authtoken=",
  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}}/fulfillments.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/fulfillments.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/fulfillments.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/fulfillments.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/fulfillments.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/fulfillments.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/fulfillments.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/fulfillments.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/fulfillments.json?login=&authtoken=")

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/fulfillments.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/fulfillments.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/fulfillments.json?login=&authtoken='
http GET '{{baseUrl}}/fulfillments.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/fulfillments.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/fulfillments.json?login=&authtoken=")! 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 Retrieve the Fulfillments associated with the Order.
{{baseUrl}}/order/:id/fulfillments.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/order/:id/fulfillments.json" {:query-params {:login ""
                                                                                      :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken="

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}}/order/:id/fulfillments.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken="

	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/order/:id/fulfillments.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken="))
    .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}}/order/:id/fulfillments.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=")
  .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}}/order/:id/fulfillments.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/order/:id/fulfillments.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=';
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}}/order/:id/fulfillments.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/order/:id/fulfillments.json?login=&authtoken=',
  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}}/order/:id/fulfillments.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/order/:id/fulfillments.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/order/:id/fulfillments.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=';
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}}/order/:id/fulfillments.json?login=&authtoken="]
                                                       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}}/order/:id/fulfillments.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=",
  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}}/order/:id/fulfillments.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/order/:id/fulfillments.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/order/:id/fulfillments.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/order/:id/fulfillments.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/order/:id/fulfillments.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/order/:id/fulfillments.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=")

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/order/:id/fulfillments.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/order/:id/fulfillments.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken='
http GET '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/order/:id/fulfillments.json?login=&authtoken=")! 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 Create a new Hook.
{{baseUrl}}/hooks.json
QUERY PARAMS

login
authtoken
BODY json

{
  "hook": {
    "event": "",
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/hooks.json?login=&authtoken=");

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  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/hooks.json" {:query-params {:login ""
                                                                      :authtoken ""}
                                                       :content-type :json
                                                       :form-params {:hook {:event ""
                                                                            :url ""}}})
require "http/client"

url = "{{baseUrl}}/hooks.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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}}/hooks.json?login=&authtoken="),
    Content = new StringContent("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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}}/hooks.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/hooks.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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/hooks.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 50

{
  "hook": {
    "event": "",
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/hooks.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/hooks.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/hooks.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/hooks.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  hook: {
    event: '',
    url: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/hooks.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/hooks.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {hook: {event: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/hooks.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"hook":{"event":"","url":""}}'
};

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}}/hooks.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "hook": {\n    "event": "",\n    "url": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/hooks.json?login=&authtoken=")
  .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/hooks.json?login=&authtoken=',
  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({hook: {event: '', url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/hooks.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {hook: {event: '', url: ''}},
  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}}/hooks.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  hook: {
    event: '',
    url: ''
  }
});

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}}/hooks.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {hook: {event: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/hooks.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"hook":{"event":"","url":""}}'
};

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 = @{ @"hook": @{ @"event": @"", @"url": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/hooks.json?login=&authtoken="]
                                                       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}}/hooks.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/hooks.json?login=&authtoken=",
  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([
    'hook' => [
        'event' => '',
        'url' => ''
    ]
  ]),
  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}}/hooks.json?login=&authtoken=', [
  'body' => '{
  "hook": {
    "event": "",
    "url": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/hooks.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'hook' => [
    'event' => '',
    'url' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'hook' => [
    'event' => '',
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/hooks.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/hooks.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "hook": {
    "event": "",
    "url": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/hooks.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "hook": {
    "event": "",
    "url": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/hooks.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/hooks.json"

querystring = {"login":"","authtoken":""}

payload = { "hook": {
        "event": "",
        "url": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/hooks.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/hooks.json?login=&authtoken=")

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  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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/hooks.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/hooks.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"hook": json!({
            "event": "",
            "url": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/hooks.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "hook": {
    "event": "",
    "url": ""
  }
}'
echo '{
  "hook": {
    "event": "",
    "url": ""
  }
}' |  \
  http POST '{{baseUrl}}/hooks.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "hook": {\n    "event": "",\n    "url": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/hooks.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["hook": [
    "event": "",
    "url": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/hooks.json?login=&authtoken=")! 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()
DELETE Delete an existing Hook.
{{baseUrl}}/hooks/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/hooks/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/hooks/:id.json" {:query-params {:login ""
                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/hooks/:id.json?login=&authtoken="

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}}/hooks/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/hooks/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/hooks/:id.json?login=&authtoken="

	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/hooks/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/hooks/:id.json?login=&authtoken="))
    .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}}/hooks/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .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}}/hooks/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/hooks/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/hooks/:id.json?login=&authtoken=';
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}}/hooks/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/hooks/:id.json?login=&authtoken=',
  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}}/hooks/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/hooks/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/hooks/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/hooks/:id.json?login=&authtoken=';
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}}/hooks/:id.json?login=&authtoken="]
                                                       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}}/hooks/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/hooks/:id.json?login=&authtoken=",
  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}}/hooks/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/hooks/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/hooks/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/hooks/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/hooks/:id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/hooks/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/hooks/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/hooks/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/hooks/:id.json?login=&authtoken=")

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/hooks/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/hooks/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/hooks/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/hooks/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/hooks/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/hooks/:id.json?login=&authtoken=")! 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()
GET Retrieve a single Hook.
{{baseUrl}}/hooks/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/hooks/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/hooks/:id.json" {:query-params {:login ""
                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/hooks/:id.json?login=&authtoken="

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}}/hooks/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/hooks/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/hooks/:id.json?login=&authtoken="

	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/hooks/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/hooks/:id.json?login=&authtoken="))
    .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}}/hooks/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .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}}/hooks/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/hooks/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/hooks/:id.json?login=&authtoken=';
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}}/hooks/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/hooks/:id.json?login=&authtoken=',
  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}}/hooks/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/hooks/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/hooks/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/hooks/:id.json?login=&authtoken=';
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}}/hooks/:id.json?login=&authtoken="]
                                                       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}}/hooks/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/hooks/:id.json?login=&authtoken=",
  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}}/hooks/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/hooks/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/hooks/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/hooks/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/hooks/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/hooks/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/hooks/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/hooks/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/hooks/:id.json?login=&authtoken=")

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/hooks/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/hooks/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/hooks/:id.json?login=&authtoken='
http GET '{{baseUrl}}/hooks/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/hooks/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/hooks/:id.json?login=&authtoken=")! 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 Retrieve all Hooks.
{{baseUrl}}/hooks.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/hooks.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/hooks.json" {:query-params {:login ""
                                                                     :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/hooks.json?login=&authtoken="

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}}/hooks.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/hooks.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/hooks.json?login=&authtoken="

	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/hooks.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/hooks.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/hooks.json?login=&authtoken="))
    .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}}/hooks.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/hooks.json?login=&authtoken=")
  .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}}/hooks.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/hooks.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/hooks.json?login=&authtoken=';
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}}/hooks.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/hooks.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/hooks.json?login=&authtoken=',
  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}}/hooks.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/hooks.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/hooks.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/hooks.json?login=&authtoken=';
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}}/hooks.json?login=&authtoken="]
                                                       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}}/hooks.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/hooks.json?login=&authtoken=",
  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}}/hooks.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/hooks.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/hooks.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/hooks.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/hooks.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/hooks.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/hooks.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/hooks.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/hooks.json?login=&authtoken=")

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/hooks.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/hooks.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/hooks.json?login=&authtoken='
http GET '{{baseUrl}}/hooks.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/hooks.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/hooks.json?login=&authtoken=")! 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()
PUT Update a Hook.
{{baseUrl}}/hooks/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "hook": {
    "event": "",
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/hooks/:id.json?login=&authtoken=");

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  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/hooks/:id.json" {:query-params {:login ""
                                                                         :authtoken ""}
                                                          :content-type :json
                                                          :form-params {:hook {:event ""
                                                                               :url ""}}})
require "http/client"

url = "{{baseUrl}}/hooks/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/hooks/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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}}/hooks/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/hooks/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/hooks/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 50

{
  "hook": {
    "event": "",
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/hooks/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  hook: {
    event: '',
    url: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/hooks/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/hooks/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {hook: {event: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/hooks/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"hook":{"event":"","url":""}}'
};

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}}/hooks/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "hook": {\n    "event": "",\n    "url": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/hooks/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/hooks/:id.json?login=&authtoken=',
  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({hook: {event: '', url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/hooks/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {hook: {event: '', url: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/hooks/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  hook: {
    event: '',
    url: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/hooks/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {hook: {event: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/hooks/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"hook":{"event":"","url":""}}'
};

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 = @{ @"hook": @{ @"event": @"", @"url": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/hooks/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/hooks/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/hooks/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'hook' => [
        'event' => '',
        'url' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/hooks/:id.json?login=&authtoken=', [
  'body' => '{
  "hook": {
    "event": "",
    "url": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/hooks/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'hook' => [
    'event' => '',
    'url' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'hook' => [
    'event' => '',
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/hooks/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/hooks/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "hook": {
    "event": "",
    "url": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/hooks/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "hook": {
    "event": "",
    "url": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/hooks/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/hooks/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "hook": {
        "event": "",
        "url": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/hooks/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/hooks/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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.put('/baseUrl/hooks/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"hook\": {\n    \"event\": \"\",\n    \"url\": \"\"\n  }\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}}/hooks/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"hook": json!({
            "event": "",
            "url": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/hooks/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "hook": {
    "event": "",
    "url": ""
  }
}'
echo '{
  "hook": {
    "event": "",
    "url": ""
  }
}' |  \
  http PUT '{{baseUrl}}/hooks/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "hook": {\n    "event": "",\n    "url": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/hooks/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["hook": [
    "event": "",
    "url": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/hooks/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Count all Orders.
{{baseUrl}}/orders/count.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orders/count.json" {:query-params {:login ""
                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/orders/count.json?login=&authtoken="

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}}/orders/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/count.json?login=&authtoken="

	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/orders/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orders/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/count.json?login=&authtoken="))
    .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}}/orders/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orders/count.json?login=&authtoken=")
  .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}}/orders/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/orders/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/count.json?login=&authtoken=';
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}}/orders/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orders/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders/count.json?login=&authtoken=',
  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}}/orders/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orders/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/orders/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/count.json?login=&authtoken=';
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}}/orders/count.json?login=&authtoken="]
                                                       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}}/orders/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/count.json?login=&authtoken=",
  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}}/orders/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/orders/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orders/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orders/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orders/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/count.json?login=&authtoken=")

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/orders/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/orders/count.json?login=&authtoken='
http GET '{{baseUrl}}/orders/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/orders/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/count.json?login=&authtoken=")! 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 Create a new Order History Entry.
{{baseUrl}}/orders/:id/history.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "order_history": {
    "message": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/:id/history.json?login=&authtoken=");

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  \"order_history\": {\n    \"message\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/orders/:id/history.json" {:query-params {:login ""
                                                                                   :authtoken ""}
                                                                    :content-type :json
                                                                    :form-params {:order_history {:message ""}}})
require "http/client"

url = "{{baseUrl}}/orders/:id/history.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\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}}/orders/:id/history.json?login=&authtoken="),
    Content = new StringContent("{\n  \"order_history\": {\n    \"message\": \"\"\n  }\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}}/orders/:id/history.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/:id/history.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"order_history\": {\n    \"message\": \"\"\n  }\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/orders/:id/history.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 46

{
  "order_history": {
    "message": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/:id/history.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"order_history\": {\n    \"message\": \"\"\n  }\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  \"order_history\": {\n    \"message\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  order_history: {
    message: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/orders/:id/history.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/orders/:id/history.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {order_history: {message: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/:id/history.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"order_history":{"message":""}}'
};

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}}/orders/:id/history.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "order_history": {\n    "message": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .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/orders/:id/history.json?login=&authtoken=',
  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({order_history: {message: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/orders/:id/history.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {order_history: {message: ''}},
  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}}/orders/:id/history.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  order_history: {
    message: ''
  }
});

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}}/orders/:id/history.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {order_history: {message: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/:id/history.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"order_history":{"message":""}}'
};

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 = @{ @"order_history": @{ @"message": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/orders/:id/history.json?login=&authtoken="]
                                                       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}}/orders/:id/history.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/:id/history.json?login=&authtoken=",
  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([
    'order_history' => [
        'message' => ''
    ]
  ]),
  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}}/orders/:id/history.json?login=&authtoken=', [
  'body' => '{
  "order_history": {
    "message": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/orders/:id/history.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'order_history' => [
    'message' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'order_history' => [
    'message' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/orders/:id/history.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/orders/:id/history.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "order_history": {
    "message": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/:id/history.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "order_history": {
    "message": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/orders/:id/history.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/:id/history.json"

querystring = {"login":"","authtoken":""}

payload = { "order_history": { "message": "" } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/:id/history.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")

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  \"order_history\": {\n    \"message\": \"\"\n  }\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/orders/:id/history.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"order_history\": {\n    \"message\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/:id/history.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"order_history": json!({"message": ""})});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/orders/:id/history.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "order_history": {
    "message": ""
  }
}'
echo '{
  "order_history": {
    "message": ""
  }
}' |  \
  http POST '{{baseUrl}}/orders/:id/history.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "order_history": {\n    "message": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/orders/:id/history.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["order_history": ["message": ""]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/:id/history.json?login=&authtoken=")! 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 Create a new Order.
{{baseUrl}}/orders.json
QUERY PARAMS

login
authtoken
BODY json

{
  "order": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders.json?login=&authtoken=");

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  \"order\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/orders.json" {:query-params {:login ""
                                                                       :authtoken ""}
                                                        :content-type :json
                                                        :form-params {:order ""}})
require "http/client"

url = "{{baseUrl}}/orders.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"order\": \"\"\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}}/orders.json?login=&authtoken="),
    Content = new StringContent("{\n  \"order\": \"\"\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}}/orders.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"order\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"order\": \"\"\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/orders.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 17

{
  "order": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/orders.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"order\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"order\": \"\"\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  \"order\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/orders.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/orders.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"order\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  order: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/orders.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/orders.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {order: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"order":""}'
};

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}}/orders.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "order": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"order\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/orders.json?login=&authtoken=")
  .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/orders.json?login=&authtoken=',
  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({order: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/orders.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {order: ''},
  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}}/orders.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  order: ''
});

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}}/orders.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {order: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"order":""}'
};

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 = @{ @"order": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/orders.json?login=&authtoken="]
                                                       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}}/orders.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"order\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders.json?login=&authtoken=",
  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([
    'order' => ''
  ]),
  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}}/orders.json?login=&authtoken=', [
  'body' => '{
  "order": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/orders.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'order' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'order' => ''
]));
$request->setRequestUrl('{{baseUrl}}/orders.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/orders.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "order": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "order": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"order\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/orders.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders.json"

querystring = {"login":"","authtoken":""}

payload = { "order": "" }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"order\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders.json?login=&authtoken=")

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  \"order\": \"\"\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/orders.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"order\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"order": ""});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/orders.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "order": ""
}'
echo '{
  "order": ""
}' |  \
  http POST '{{baseUrl}}/orders.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "order": ""\n}' \
  --output-document \
  - '{{baseUrl}}/orders.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["order": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders.json?login=&authtoken=")! 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()
PUT Modify an existing Order.
{{baseUrl}}/orders/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "order": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/:id.json?login=&authtoken=");

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  \"order\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/orders/:id.json" {:query-params {:login ""
                                                                          :authtoken ""}
                                                           :content-type :json
                                                           :form-params {:order ""}})
require "http/client"

url = "{{baseUrl}}/orders/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"order\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/orders/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"order\": \"\"\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}}/orders/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"order\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"order\": \"\"\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/orders/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 17

{
  "order": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"order\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"order\": \"\"\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  \"order\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"order\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  order: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/orders/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/orders/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {order: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"order":""}'
};

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}}/orders/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "order": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"order\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders/:id.json?login=&authtoken=',
  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({order: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/orders/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {order: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/orders/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  order: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/orders/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {order: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"order":""}'
};

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 = @{ @"order": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/orders/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/orders/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"order\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'order' => ''
  ]),
  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('PUT', '{{baseUrl}}/orders/:id.json?login=&authtoken=', [
  'body' => '{
  "order": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/orders/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'order' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'order' => ''
]));
$request->setRequestUrl('{{baseUrl}}/orders/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/orders/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "order": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "order": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"order\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/orders/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "order": "" }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"order\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"order\": \"\"\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.put('/baseUrl/orders/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"order\": \"\"\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}}/orders/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"order": ""});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/orders/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "order": ""
}'
echo '{
  "order": ""
}' |  \
  http PUT '{{baseUrl}}/orders/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "order": ""\n}' \
  --output-document \
  - '{{baseUrl}}/orders/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["order": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve a single Order.
{{baseUrl}}/orders/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orders/:id.json" {:query-params {:login ""
                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/orders/:id.json?login=&authtoken="

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}}/orders/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/:id.json?login=&authtoken="

	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/orders/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/:id.json?login=&authtoken="))
    .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}}/orders/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .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}}/orders/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/orders/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/:id.json?login=&authtoken=';
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}}/orders/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orders/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders/:id.json?login=&authtoken=',
  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}}/orders/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orders/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/orders/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/:id.json?login=&authtoken=';
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}}/orders/:id.json?login=&authtoken="]
                                                       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}}/orders/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/:id.json?login=&authtoken=",
  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}}/orders/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/orders/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orders/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orders/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orders/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/:id.json?login=&authtoken=")

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/orders/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/orders/:id.json?login=&authtoken='
http GET '{{baseUrl}}/orders/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/orders/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/:id.json?login=&authtoken=")! 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 Retrieve all Order History.
{{baseUrl}}/orders/:id/history.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/:id/history.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orders/:id/history.json" {:query-params {:login ""
                                                                                  :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/orders/:id/history.json?login=&authtoken="

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}}/orders/:id/history.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders/:id/history.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/:id/history.json?login=&authtoken="

	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/orders/:id/history.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/:id/history.json?login=&authtoken="))
    .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}}/orders/:id/history.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .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}}/orders/:id/history.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/orders/:id/history.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/:id/history.json?login=&authtoken=';
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}}/orders/:id/history.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders/:id/history.json?login=&authtoken=',
  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}}/orders/:id/history.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orders/:id/history.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/orders/:id/history.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/:id/history.json?login=&authtoken=';
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}}/orders/:id/history.json?login=&authtoken="]
                                                       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}}/orders/:id/history.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/:id/history.json?login=&authtoken=",
  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}}/orders/:id/history.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/orders/:id/history.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orders/:id/history.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orders/:id/history.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/:id/history.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orders/:id/history.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/:id/history.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/:id/history.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/:id/history.json?login=&authtoken=")

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/orders/:id/history.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/:id/history.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/orders/:id/history.json?login=&authtoken='
http GET '{{baseUrl}}/orders/:id/history.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/orders/:id/history.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/:id/history.json?login=&authtoken=")! 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 Retrieve all Orders.
{{baseUrl}}/orders.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orders.json" {:query-params {:login ""
                                                                      :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/orders.json?login=&authtoken="

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}}/orders.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders.json?login=&authtoken="

	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/orders.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orders.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders.json?login=&authtoken="))
    .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}}/orders.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orders.json?login=&authtoken=")
  .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}}/orders.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/orders.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders.json?login=&authtoken=';
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}}/orders.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orders.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders.json?login=&authtoken=',
  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}}/orders.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orders.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/orders.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders.json?login=&authtoken=';
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}}/orders.json?login=&authtoken="]
                                                       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}}/orders.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders.json?login=&authtoken=",
  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}}/orders.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/orders.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orders.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orders.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orders.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders.json?login=&authtoken=")

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/orders.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/orders.json?login=&authtoken='
http GET '{{baseUrl}}/orders.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/orders.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders.json?login=&authtoken=")! 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 Retrieve orders filtered by Order Id.
{{baseUrl}}/orders/after/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/after/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orders/after/:id.json" {:query-params {:login ""
                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/orders/after/:id.json?login=&authtoken="

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}}/orders/after/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders/after/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/after/:id.json?login=&authtoken="

	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/orders/after/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orders/after/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/after/:id.json?login=&authtoken="))
    .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}}/orders/after/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orders/after/:id.json?login=&authtoken=")
  .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}}/orders/after/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/orders/after/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/after/:id.json?login=&authtoken=';
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}}/orders/after/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orders/after/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders/after/:id.json?login=&authtoken=',
  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}}/orders/after/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orders/after/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/orders/after/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/after/:id.json?login=&authtoken=';
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}}/orders/after/:id.json?login=&authtoken="]
                                                       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}}/orders/after/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/after/:id.json?login=&authtoken=",
  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}}/orders/after/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/orders/after/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orders/after/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orders/after/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/after/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orders/after/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/after/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/after/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/after/:id.json?login=&authtoken=")

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/orders/after/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/after/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/orders/after/:id.json?login=&authtoken='
http GET '{{baseUrl}}/orders/after/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/orders/after/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/after/:id.json?login=&authtoken=")! 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 Retrieve orders filtered by status.
{{baseUrl}}/orders/status/:status.json
QUERY PARAMS

login
authtoken
status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/orders/status/:status.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/orders/status/:status.json" {:query-params {:login ""
                                                                                     :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/orders/status/:status.json?login=&authtoken="

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}}/orders/status/:status.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/orders/status/:status.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/orders/status/:status.json?login=&authtoken="

	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/orders/status/:status.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/orders/status/:status.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/orders/status/:status.json?login=&authtoken="))
    .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}}/orders/status/:status.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/orders/status/:status.json?login=&authtoken=")
  .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}}/orders/status/:status.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/orders/status/:status.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/orders/status/:status.json?login=&authtoken=';
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}}/orders/status/:status.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/orders/status/:status.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/orders/status/:status.json?login=&authtoken=',
  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}}/orders/status/:status.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/orders/status/:status.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/orders/status/:status.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/orders/status/:status.json?login=&authtoken=';
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}}/orders/status/:status.json?login=&authtoken="]
                                                       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}}/orders/status/:status.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/orders/status/:status.json?login=&authtoken=",
  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}}/orders/status/:status.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/orders/status/:status.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/orders/status/:status.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/orders/status/:status.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/orders/status/:status.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/orders/status/:status.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/orders/status/:status.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/orders/status/:status.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/orders/status/:status.json?login=&authtoken=")

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/orders/status/:status.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/orders/status/:status.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/orders/status/:status.json?login=&authtoken='
http GET '{{baseUrl}}/orders/status/:status.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/orders/status/:status.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/orders/status/:status.json?login=&authtoken=")! 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 Count all Pages.
{{baseUrl}}/pages/count.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pages/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pages/count.json" {:query-params {:login ""
                                                                           :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/pages/count.json?login=&authtoken="

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}}/pages/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pages/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pages/count.json?login=&authtoken="

	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/pages/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pages/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pages/count.json?login=&authtoken="))
    .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}}/pages/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pages/count.json?login=&authtoken=")
  .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}}/pages/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/pages/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pages/count.json?login=&authtoken=';
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}}/pages/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pages/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pages/count.json?login=&authtoken=',
  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}}/pages/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/pages/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/pages/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pages/count.json?login=&authtoken=';
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}}/pages/count.json?login=&authtoken="]
                                                       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}}/pages/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pages/count.json?login=&authtoken=",
  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}}/pages/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/pages/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pages/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pages/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pages/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pages/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pages/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pages/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pages/count.json?login=&authtoken=")

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/pages/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pages/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/pages/count.json?login=&authtoken='
http GET '{{baseUrl}}/pages/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/pages/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pages/count.json?login=&authtoken=")! 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 Create a new Page.
{{baseUrl}}/pages.json
QUERY PARAMS

login
authtoken
BODY json

{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pages.json?login=&authtoken=");

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  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/pages.json" {:query-params {:login ""
                                                                      :authtoken ""}
                                                       :content-type :json
                                                       :form-params {:page {:body ""
                                                                            :categories [{:id 0
                                                                                          :name ""
                                                                                          :position 0}]
                                                                            :image {:id 0
                                                                                    :url ""}
                                                                            :meta_description ""
                                                                            :page_title ""
                                                                            :permalink ""
                                                                            :status ""
                                                                            :template 0
                                                                            :title ""}}})
require "http/client"

url = "{{baseUrl}}/pages.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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}}/pages.json?login=&authtoken="),
    Content = new StringContent("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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}}/pages.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pages.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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/pages.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 314

{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/pages.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pages.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pages.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/pages.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  page: {
    body: '',
    categories: [
      {
        id: 0,
        name: '',
        position: 0
      }
    ],
    image: {
      id: 0,
      url: ''
    },
    meta_description: '',
    page_title: '',
    permalink: '',
    status: '',
    template: 0,
    title: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/pages.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pages.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    page: {
      body: '',
      categories: [{id: 0, name: '', position: 0}],
      image: {id: 0, url: ''},
      meta_description: '',
      page_title: '',
      permalink: '',
      status: '',
      template: 0,
      title: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pages.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"page":{"body":"","categories":[{"id":0,"name":"","position":0}],"image":{"id":0,"url":""},"meta_description":"","page_title":"","permalink":"","status":"","template":0,"title":""}}'
};

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}}/pages.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "page": {\n    "body": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "position": 0\n      }\n    ],\n    "image": {\n      "id": 0,\n      "url": ""\n    },\n    "meta_description": "",\n    "page_title": "",\n    "permalink": "",\n    "status": "",\n    "template": 0,\n    "title": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pages.json?login=&authtoken=")
  .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/pages.json?login=&authtoken=',
  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({
  page: {
    body: '',
    categories: [{id: 0, name: '', position: 0}],
    image: {id: 0, url: ''},
    meta_description: '',
    page_title: '',
    permalink: '',
    status: '',
    template: 0,
    title: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pages.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    page: {
      body: '',
      categories: [{id: 0, name: '', position: 0}],
      image: {id: 0, url: ''},
      meta_description: '',
      page_title: '',
      permalink: '',
      status: '',
      template: 0,
      title: ''
    }
  },
  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}}/pages.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  page: {
    body: '',
    categories: [
      {
        id: 0,
        name: '',
        position: 0
      }
    ],
    image: {
      id: 0,
      url: ''
    },
    meta_description: '',
    page_title: '',
    permalink: '',
    status: '',
    template: 0,
    title: ''
  }
});

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}}/pages.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    page: {
      body: '',
      categories: [{id: 0, name: '', position: 0}],
      image: {id: 0, url: ''},
      meta_description: '',
      page_title: '',
      permalink: '',
      status: '',
      template: 0,
      title: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pages.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"page":{"body":"","categories":[{"id":0,"name":"","position":0}],"image":{"id":0,"url":""},"meta_description":"","page_title":"","permalink":"","status":"","template":0,"title":""}}'
};

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 = @{ @"page": @{ @"body": @"", @"categories": @[ @{ @"id": @0, @"name": @"", @"position": @0 } ], @"image": @{ @"id": @0, @"url": @"" }, @"meta_description": @"", @"page_title": @"", @"permalink": @"", @"status": @"", @"template": @0, @"title": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pages.json?login=&authtoken="]
                                                       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}}/pages.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pages.json?login=&authtoken=",
  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([
    'page' => [
        'body' => '',
        'categories' => [
                [
                                'id' => 0,
                                'name' => '',
                                'position' => 0
                ]
        ],
        'image' => [
                'id' => 0,
                'url' => ''
        ],
        'meta_description' => '',
        'page_title' => '',
        'permalink' => '',
        'status' => '',
        'template' => 0,
        'title' => ''
    ]
  ]),
  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}}/pages.json?login=&authtoken=', [
  'body' => '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/pages.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'page' => [
    'body' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'position' => 0
        ]
    ],
    'image' => [
        'id' => 0,
        'url' => ''
    ],
    'meta_description' => '',
    'page_title' => '',
    'permalink' => '',
    'status' => '',
    'template' => 0,
    'title' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'page' => [
    'body' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'position' => 0
        ]
    ],
    'image' => [
        'id' => 0,
        'url' => ''
    ],
    'meta_description' => '',
    'page_title' => '',
    'permalink' => '',
    'status' => '',
    'template' => 0,
    'title' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/pages.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/pages.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pages.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/pages.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pages.json"

querystring = {"login":"","authtoken":""}

payload = { "page": {
        "body": "",
        "categories": [
            {
                "id": 0,
                "name": "",
                "position": 0
            }
        ],
        "image": {
            "id": 0,
            "url": ""
        },
        "meta_description": "",
        "page_title": "",
        "permalink": "",
        "status": "",
        "template": 0,
        "title": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pages.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pages.json?login=&authtoken=")

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  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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/pages.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pages.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"page": json!({
            "body": "",
            "categories": (
                json!({
                    "id": 0,
                    "name": "",
                    "position": 0
                })
            ),
            "image": json!({
                "id": 0,
                "url": ""
            }),
            "meta_description": "",
            "page_title": "",
            "permalink": "",
            "status": "",
            "template": 0,
            "title": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/pages.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}'
echo '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}' |  \
  http POST '{{baseUrl}}/pages.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "page": {\n    "body": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "position": 0\n      }\n    ],\n    "image": {\n      "id": 0,\n      "url": ""\n    },\n    "meta_description": "",\n    "page_title": "",\n    "permalink": "",\n    "status": "",\n    "template": 0,\n    "title": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/pages.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["page": [
    "body": "",
    "categories": [
      [
        "id": 0,
        "name": "",
        "position": 0
      ]
    ],
    "image": [
      "id": 0,
      "url": ""
    ],
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pages.json?login=&authtoken=")! 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()
DELETE Delete an existing Page.
{{baseUrl}}/pages/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pages/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/pages/:id.json" {:query-params {:login ""
                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/pages/:id.json?login=&authtoken="

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}}/pages/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pages/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pages/:id.json?login=&authtoken="

	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/pages/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pages/:id.json?login=&authtoken="))
    .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}}/pages/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .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}}/pages/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/pages/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pages/:id.json?login=&authtoken=';
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}}/pages/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pages/:id.json?login=&authtoken=',
  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}}/pages/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/pages/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/pages/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pages/:id.json?login=&authtoken=';
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}}/pages/:id.json?login=&authtoken="]
                                                       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}}/pages/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pages/:id.json?login=&authtoken=",
  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}}/pages/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/pages/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pages/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pages/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pages/:id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/pages/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pages/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pages/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pages/:id.json?login=&authtoken=")

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/pages/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pages/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/pages/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/pages/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/pages/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pages/:id.json?login=&authtoken=")! 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()
GET Retrieve a single Page by id.
{{baseUrl}}/pages/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pages/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pages/:id.json" {:query-params {:login ""
                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/pages/:id.json?login=&authtoken="

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}}/pages/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pages/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pages/:id.json?login=&authtoken="

	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/pages/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pages/:id.json?login=&authtoken="))
    .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}}/pages/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .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}}/pages/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/pages/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pages/:id.json?login=&authtoken=';
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}}/pages/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pages/:id.json?login=&authtoken=',
  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}}/pages/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/pages/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/pages/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pages/:id.json?login=&authtoken=';
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}}/pages/:id.json?login=&authtoken="]
                                                       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}}/pages/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pages/:id.json?login=&authtoken=",
  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}}/pages/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/pages/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pages/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pages/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pages/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pages/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pages/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pages/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pages/:id.json?login=&authtoken=")

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/pages/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pages/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/pages/:id.json?login=&authtoken='
http GET '{{baseUrl}}/pages/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/pages/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pages/:id.json?login=&authtoken=")! 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 Retrieve all Pages.
{{baseUrl}}/pages.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pages.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/pages.json" {:query-params {:login ""
                                                                     :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/pages.json?login=&authtoken="

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}}/pages.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/pages.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pages.json?login=&authtoken="

	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/pages.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/pages.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pages.json?login=&authtoken="))
    .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}}/pages.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/pages.json?login=&authtoken=")
  .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}}/pages.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/pages.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pages.json?login=&authtoken=';
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}}/pages.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/pages.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pages.json?login=&authtoken=',
  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}}/pages.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/pages.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/pages.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pages.json?login=&authtoken=';
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}}/pages.json?login=&authtoken="]
                                                       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}}/pages.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pages.json?login=&authtoken=",
  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}}/pages.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/pages.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/pages.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pages.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pages.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/pages.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pages.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pages.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pages.json?login=&authtoken=")

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/pages.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/pages.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/pages.json?login=&authtoken='
http GET '{{baseUrl}}/pages.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/pages.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pages.json?login=&authtoken=")! 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()
PUT Update a Page.
{{baseUrl}}/pages/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/pages/:id.json?login=&authtoken=");

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  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/pages/:id.json" {:query-params {:login ""
                                                                         :authtoken ""}
                                                          :content-type :json
                                                          :form-params {:page {:body ""
                                                                               :categories [{:id 0
                                                                                             :name ""
                                                                                             :position 0}]
                                                                               :image {:id 0
                                                                                       :url ""}
                                                                               :meta_description ""
                                                                               :page_title ""
                                                                               :permalink ""
                                                                               :status ""
                                                                               :template 0
                                                                               :title ""}}})
require "http/client"

url = "{{baseUrl}}/pages/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/pages/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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}}/pages/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/pages/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/pages/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 314

{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pages/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  page: {
    body: '',
    categories: [
      {
        id: 0,
        name: '',
        position: 0
      }
    ],
    image: {
      id: 0,
      url: ''
    },
    meta_description: '',
    page_title: '',
    permalink: '',
    status: '',
    template: 0,
    title: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/pages/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/pages/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    page: {
      body: '',
      categories: [{id: 0, name: '', position: 0}],
      image: {id: 0, url: ''},
      meta_description: '',
      page_title: '',
      permalink: '',
      status: '',
      template: 0,
      title: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pages/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"page":{"body":"","categories":[{"id":0,"name":"","position":0}],"image":{"id":0,"url":""},"meta_description":"","page_title":"","permalink":"","status":"","template":0,"title":""}}'
};

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}}/pages/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "page": {\n    "body": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "position": 0\n      }\n    ],\n    "image": {\n      "id": 0,\n      "url": ""\n    },\n    "meta_description": "",\n    "page_title": "",\n    "permalink": "",\n    "status": "",\n    "template": 0,\n    "title": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pages/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/pages/:id.json?login=&authtoken=',
  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({
  page: {
    body: '',
    categories: [{id: 0, name: '', position: 0}],
    image: {id: 0, url: ''},
    meta_description: '',
    page_title: '',
    permalink: '',
    status: '',
    template: 0,
    title: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/pages/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    page: {
      body: '',
      categories: [{id: 0, name: '', position: 0}],
      image: {id: 0, url: ''},
      meta_description: '',
      page_title: '',
      permalink: '',
      status: '',
      template: 0,
      title: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/pages/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  page: {
    body: '',
    categories: [
      {
        id: 0,
        name: '',
        position: 0
      }
    ],
    image: {
      id: 0,
      url: ''
    },
    meta_description: '',
    page_title: '',
    permalink: '',
    status: '',
    template: 0,
    title: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/pages/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    page: {
      body: '',
      categories: [{id: 0, name: '', position: 0}],
      image: {id: 0, url: ''},
      meta_description: '',
      page_title: '',
      permalink: '',
      status: '',
      template: 0,
      title: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/pages/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"page":{"body":"","categories":[{"id":0,"name":"","position":0}],"image":{"id":0,"url":""},"meta_description":"","page_title":"","permalink":"","status":"","template":0,"title":""}}'
};

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 = @{ @"page": @{ @"body": @"", @"categories": @[ @{ @"id": @0, @"name": @"", @"position": @0 } ], @"image": @{ @"id": @0, @"url": @"" }, @"meta_description": @"", @"page_title": @"", @"permalink": @"", @"status": @"", @"template": @0, @"title": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pages/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/pages/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pages/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'page' => [
        'body' => '',
        'categories' => [
                [
                                'id' => 0,
                                'name' => '',
                                'position' => 0
                ]
        ],
        'image' => [
                'id' => 0,
                'url' => ''
        ],
        'meta_description' => '',
        'page_title' => '',
        'permalink' => '',
        'status' => '',
        'template' => 0,
        'title' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/pages/:id.json?login=&authtoken=', [
  'body' => '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/pages/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'page' => [
    'body' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'position' => 0
        ]
    ],
    'image' => [
        'id' => 0,
        'url' => ''
    ],
    'meta_description' => '',
    'page_title' => '',
    'permalink' => '',
    'status' => '',
    'template' => 0,
    'title' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'page' => [
    'body' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'position' => 0
        ]
    ],
    'image' => [
        'id' => 0,
        'url' => ''
    ],
    'meta_description' => '',
    'page_title' => '',
    'permalink' => '',
    'status' => '',
    'template' => 0,
    'title' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/pages/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/pages/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pages/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/pages/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/pages/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "page": {
        "body": "",
        "categories": [
            {
                "id": 0,
                "name": "",
                "position": 0
            }
        ],
        "image": {
            "id": 0,
            "url": ""
        },
        "meta_description": "",
        "page_title": "",
        "permalink": "",
        "status": "",
        "template": 0,
        "title": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/pages/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/pages/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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.put('/baseUrl/pages/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"page\": {\n    \"body\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"position\": 0\n      }\n    ],\n    \"image\": {\n      \"id\": 0,\n      \"url\": \"\"\n    },\n    \"meta_description\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"status\": \"\",\n    \"template\": 0,\n    \"title\": \"\"\n  }\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}}/pages/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"page": json!({
            "body": "",
            "categories": (
                json!({
                    "id": 0,
                    "name": "",
                    "position": 0
                })
            ),
            "image": json!({
                "id": 0,
                "url": ""
            }),
            "meta_description": "",
            "page_title": "",
            "permalink": "",
            "status": "",
            "template": 0,
            "title": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/pages/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}'
echo '{
  "page": {
    "body": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "position": 0
      }
    ],
    "image": {
      "id": 0,
      "url": ""
    },
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  }
}' |  \
  http PUT '{{baseUrl}}/pages/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "page": {\n    "body": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "position": 0\n      }\n    ],\n    "image": {\n      "id": 0,\n      "url": ""\n    },\n    "meta_description": "",\n    "page_title": "",\n    "permalink": "",\n    "status": "",\n    "template": 0,\n    "title": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/pages/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["page": [
    "body": "",
    "categories": [
      [
        "id": 0,
        "name": "",
        "position": 0
      ]
    ],
    "image": [
      "id": 0,
      "url": ""
    ],
    "meta_description": "",
    "page_title": "",
    "permalink": "",
    "status": "",
    "template": 0,
    "title": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/pages/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Create a Partnered Store
{{baseUrl}}/store/create.json
QUERY PARAMS

partner_code
auth_token
BODY json

{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/store/create.json?partner_code=&auth_token=");

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  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/store/create.json" {:query-params {:partner_code ""
                                                                             :auth_token ""}
                                                              :content-type :json
                                                              :form-params {:aff ""
                                                                            :email ""
                                                                            :locale ""
                                                                            :password ""
                                                                            :plan_name ""
                                                                            :reject_duplicates false
                                                                            :store_name ""}})
require "http/client"

url = "{{baseUrl}}/store/create.json?partner_code=&auth_token="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_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}}/store/create.json?partner_code=&auth_token="),
    Content = new StringContent("{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_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}}/store/create.json?partner_code=&auth_token=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/store/create.json?partner_code=&auth_token="

	payload := strings.NewReader("{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_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/store/create.json?partner_code=&auth_token= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 133

{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/store/create.json?partner_code=&auth_token=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/store/create.json?partner_code=&auth_token="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_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  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/store/create.json?partner_code=&auth_token=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/store/create.json?partner_code=&auth_token=")
  .header("content-type", "application/json")
  .body("{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  aff: '',
  email: '',
  locale: '',
  password: '',
  plan_name: '',
  reject_duplicates: false,
  store_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}}/store/create.json?partner_code=&auth_token=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/store/create.json',
  params: {partner_code: '', auth_token: ''},
  headers: {'content-type': 'application/json'},
  data: {
    aff: '',
    email: '',
    locale: '',
    password: '',
    plan_name: '',
    reject_duplicates: false,
    store_name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/store/create.json?partner_code=&auth_token=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"aff":"","email":"","locale":"","password":"","plan_name":"","reject_duplicates":false,"store_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}}/store/create.json?partner_code=&auth_token=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "aff": "",\n  "email": "",\n  "locale": "",\n  "password": "",\n  "plan_name": "",\n  "reject_duplicates": false,\n  "store_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  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/store/create.json?partner_code=&auth_token=")
  .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/store/create.json?partner_code=&auth_token=',
  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({
  aff: '',
  email: '',
  locale: '',
  password: '',
  plan_name: '',
  reject_duplicates: false,
  store_name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/store/create.json',
  qs: {partner_code: '', auth_token: ''},
  headers: {'content-type': 'application/json'},
  body: {
    aff: '',
    email: '',
    locale: '',
    password: '',
    plan_name: '',
    reject_duplicates: false,
    store_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}}/store/create.json');

req.query({
  partner_code: '',
  auth_token: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  aff: '',
  email: '',
  locale: '',
  password: '',
  plan_name: '',
  reject_duplicates: false,
  store_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}}/store/create.json',
  params: {partner_code: '', auth_token: ''},
  headers: {'content-type': 'application/json'},
  data: {
    aff: '',
    email: '',
    locale: '',
    password: '',
    plan_name: '',
    reject_duplicates: false,
    store_name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/store/create.json?partner_code=&auth_token=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"aff":"","email":"","locale":"","password":"","plan_name":"","reject_duplicates":false,"store_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 = @{ @"aff": @"",
                              @"email": @"",
                              @"locale": @"",
                              @"password": @"",
                              @"plan_name": @"",
                              @"reject_duplicates": @NO,
                              @"store_name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/store/create.json?partner_code=&auth_token="]
                                                       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}}/store/create.json?partner_code=&auth_token=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/store/create.json?partner_code=&auth_token=",
  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([
    'aff' => '',
    'email' => '',
    'locale' => '',
    'password' => '',
    'plan_name' => '',
    'reject_duplicates' => null,
    'store_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}}/store/create.json?partner_code=&auth_token=', [
  'body' => '{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/store/create.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'partner_code' => '',
  'auth_token' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'aff' => '',
  'email' => '',
  'locale' => '',
  'password' => '',
  'plan_name' => '',
  'reject_duplicates' => null,
  'store_name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'aff' => '',
  'email' => '',
  'locale' => '',
  'password' => '',
  'plan_name' => '',
  'reject_duplicates' => null,
  'store_name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/store/create.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'partner_code' => '',
  'auth_token' => ''
]));

$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}}/store/create.json?partner_code=&auth_token=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/store/create.json?partner_code=&auth_token=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/store/create.json?partner_code=&auth_token=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/store/create.json"

querystring = {"partner_code":"","auth_token":""}

payload = {
    "aff": "",
    "email": "",
    "locale": "",
    "password": "",
    "plan_name": "",
    "reject_duplicates": False,
    "store_name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/store/create.json"

queryString <- list(
  partner_code = "",
  auth_token = ""
)

payload <- "{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/store/create.json?partner_code=&auth_token=")

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  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_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/store/create.json') do |req|
  req.params['partner_code'] = ''
  req.params['auth_token'] = ''
  req.body = "{\n  \"aff\": \"\",\n  \"email\": \"\",\n  \"locale\": \"\",\n  \"password\": \"\",\n  \"plan_name\": \"\",\n  \"reject_duplicates\": false,\n  \"store_name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/store/create.json";

    let querystring = [
        ("partner_code", ""),
        ("auth_token", ""),
    ];

    let payload = json!({
        "aff": "",
        "email": "",
        "locale": "",
        "password": "",
        "plan_name": "",
        "reject_duplicates": false,
        "store_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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/store/create.json?partner_code=&auth_token=' \
  --header 'content-type: application/json' \
  --data '{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}'
echo '{
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
}' |  \
  http POST '{{baseUrl}}/store/create.json?partner_code=&auth_token=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "aff": "",\n  "email": "",\n  "locale": "",\n  "password": "",\n  "plan_name": "",\n  "reject_duplicates": false,\n  "store_name": ""\n}' \
  --output-document \
  - '{{baseUrl}}/store/create.json?partner_code=&auth_token='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "aff": "",
  "email": "",
  "locale": "",
  "password": "",
  "plan_name": "",
  "reject_duplicates": false,
  "store_name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/store/create.json?partner_code=&auth_token=")! 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 Retrieve statistics.
{{baseUrl}}/partners/stores.json
QUERY PARAMS

partner_code
auth_token
from
to
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/partners/stores.json" {:query-params {:partner_code ""
                                                                               :auth_token ""
                                                                               :from ""
                                                                               :to ""}})
require "http/client"

url = "{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to="

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}}/partners/stores.json?partner_code=&auth_token=&from=&to="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to="

	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/partners/stores.json?partner_code=&auth_token=&from=&to= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to="))
    .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}}/partners/stores.json?partner_code=&auth_token=&from=&to=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=")
  .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}}/partners/stores.json?partner_code=&auth_token=&from=&to=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/partners/stores.json',
  params: {partner_code: '', auth_token: '', from: '', to: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=';
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}}/partners/stores.json?partner_code=&auth_token=&from=&to=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/partners/stores.json?partner_code=&auth_token=&from=&to=',
  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}}/partners/stores.json',
  qs: {partner_code: '', auth_token: '', from: '', to: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/partners/stores.json');

req.query({
  partner_code: '',
  auth_token: '',
  from: '',
  to: ''
});

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}}/partners/stores.json',
  params: {partner_code: '', auth_token: '', from: '', to: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=';
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}}/partners/stores.json?partner_code=&auth_token=&from=&to="]
                                                       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}}/partners/stores.json?partner_code=&auth_token=&from=&to=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=",
  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}}/partners/stores.json?partner_code=&auth_token=&from=&to=');

echo $response->getBody();
setUrl('{{baseUrl}}/partners/stores.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'partner_code' => '',
  'auth_token' => '',
  'from' => '',
  'to' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/partners/stores.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'partner_code' => '',
  'auth_token' => '',
  'from' => '',
  'to' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/partners/stores.json?partner_code=&auth_token=&from=&to=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/partners/stores.json"

querystring = {"partner_code":"","auth_token":"","from":"","to":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/partners/stores.json"

queryString <- list(
  partner_code = "",
  auth_token = "",
  from = "",
  to = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=")

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/partners/stores.json') do |req|
  req.params['partner_code'] = ''
  req.params['auth_token'] = ''
  req.params['from'] = ''
  req.params['to'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/partners/stores.json";

    let querystring = [
        ("partner_code", ""),
        ("auth_token", ""),
        ("from", ""),
        ("to", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to='
http GET '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/partners/stores.json?partner_code=&auth_token=&from=&to=")! 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 Retrive store creation status.
{{baseUrl}}/store/check_status.json
QUERY PARAMS

partner_code
auth_token
store_code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/store/check_status.json" {:query-params {:partner_code ""
                                                                                  :auth_token ""
                                                                                  :store_code ""}})
require "http/client"

url = "{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code="

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}}/store/check_status.json?partner_code=&auth_token=&store_code="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code="

	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/store/check_status.json?partner_code=&auth_token=&store_code= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code="))
    .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}}/store/check_status.json?partner_code=&auth_token=&store_code=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=")
  .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}}/store/check_status.json?partner_code=&auth_token=&store_code=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/store/check_status.json',
  params: {partner_code: '', auth_token: '', store_code: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=';
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}}/store/check_status.json?partner_code=&auth_token=&store_code=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/store/check_status.json?partner_code=&auth_token=&store_code=',
  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}}/store/check_status.json',
  qs: {partner_code: '', auth_token: '', store_code: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/store/check_status.json');

req.query({
  partner_code: '',
  auth_token: '',
  store_code: ''
});

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}}/store/check_status.json',
  params: {partner_code: '', auth_token: '', store_code: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=';
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}}/store/check_status.json?partner_code=&auth_token=&store_code="]
                                                       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}}/store/check_status.json?partner_code=&auth_token=&store_code=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=",
  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}}/store/check_status.json?partner_code=&auth_token=&store_code=');

echo $response->getBody();
setUrl('{{baseUrl}}/store/check_status.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'partner_code' => '',
  'auth_token' => '',
  'store_code' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/store/check_status.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'partner_code' => '',
  'auth_token' => '',
  'store_code' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/store/check_status.json?partner_code=&auth_token=&store_code=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/store/check_status.json"

querystring = {"partner_code":"","auth_token":"","store_code":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/store/check_status.json"

queryString <- list(
  partner_code = "",
  auth_token = "",
  store_code = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=")

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/store/check_status.json') do |req|
  req.params['partner_code'] = ''
  req.params['auth_token'] = ''
  req.params['store_code'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/store/check_status.json";

    let querystring = [
        ("partner_code", ""),
        ("auth_token", ""),
        ("store_code", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code='
http GET '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/store/check_status.json?partner_code=&auth_token=&store_code=")! 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 Retrieve a single Payment Method.
{{baseUrl}}/payment_methods/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/payment_methods/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/payment_methods/:id.json" {:query-params {:login ""
                                                                                   :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/payment_methods/:id.json?login=&authtoken="

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}}/payment_methods/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/payment_methods/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/payment_methods/:id.json?login=&authtoken="

	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/payment_methods/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/payment_methods/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/payment_methods/:id.json?login=&authtoken="))
    .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}}/payment_methods/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/payment_methods/:id.json?login=&authtoken=")
  .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}}/payment_methods/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/payment_methods/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/payment_methods/:id.json?login=&authtoken=';
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}}/payment_methods/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/payment_methods/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/payment_methods/:id.json?login=&authtoken=',
  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}}/payment_methods/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/payment_methods/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/payment_methods/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/payment_methods/:id.json?login=&authtoken=';
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}}/payment_methods/:id.json?login=&authtoken="]
                                                       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}}/payment_methods/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/payment_methods/:id.json?login=&authtoken=",
  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}}/payment_methods/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/payment_methods/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/payment_methods/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/payment_methods/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/payment_methods/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/payment_methods/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/payment_methods/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/payment_methods/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/payment_methods/:id.json?login=&authtoken=")

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/payment_methods/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/payment_methods/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/payment_methods/:id.json?login=&authtoken='
http GET '{{baseUrl}}/payment_methods/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/payment_methods/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/payment_methods/:id.json?login=&authtoken=")! 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 Retrieve all Store's Payment Methods.
{{baseUrl}}/payment_methods.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/payment_methods.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/payment_methods.json" {:query-params {:login ""
                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/payment_methods.json?login=&authtoken="

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}}/payment_methods.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/payment_methods.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/payment_methods.json?login=&authtoken="

	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/payment_methods.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/payment_methods.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/payment_methods.json?login=&authtoken="))
    .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}}/payment_methods.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/payment_methods.json?login=&authtoken=")
  .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}}/payment_methods.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/payment_methods.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/payment_methods.json?login=&authtoken=';
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}}/payment_methods.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/payment_methods.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/payment_methods.json?login=&authtoken=',
  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}}/payment_methods.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/payment_methods.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/payment_methods.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/payment_methods.json?login=&authtoken=';
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}}/payment_methods.json?login=&authtoken="]
                                                       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}}/payment_methods.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/payment_methods.json?login=&authtoken=",
  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}}/payment_methods.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/payment_methods.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/payment_methods.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/payment_methods.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/payment_methods.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/payment_methods.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/payment_methods.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/payment_methods.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/payment_methods.json?login=&authtoken=")

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/payment_methods.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/payment_methods.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/payment_methods.json?login=&authtoken='
http GET '{{baseUrl}}/payment_methods.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/payment_methods.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/payment_methods.json?login=&authtoken=")! 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 Count all Product Attachments.
{{baseUrl}}/products/:id/attachments/count.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/attachments/count.json" {:query-params {:login ""
                                                                                              :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken="

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}}/products/:id/attachments/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken="

	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/products/:id/attachments/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken="))
    .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}}/products/:id/attachments/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=")
  .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}}/products/:id/attachments/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/attachments/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=';
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}}/products/:id/attachments/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/attachments/count.json?login=&authtoken=',
  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}}/products/:id/attachments/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/attachments/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/attachments/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=';
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}}/products/:id/attachments/count.json?login=&authtoken="]
                                                       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}}/products/:id/attachments/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=",
  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}}/products/:id/attachments/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/attachments/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/attachments/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/attachments/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/attachments/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/attachments/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=")

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/products/:id/attachments/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/attachments/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/attachments/count.json?login=&authtoken=")! 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 Create a new Product Attachment.
{{baseUrl}}/products/:id/attachments.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "attachment": {
    "filename": "",
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=");

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  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/attachments.json" {:query-params {:login ""
                                                                                         :authtoken ""}
                                                                          :content-type :json
                                                                          :form-params {:attachment {:filename ""
                                                                                                     :url ""}}})
require "http/client"

url = "{{baseUrl}}/products/:id/attachments.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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}}/products/:id/attachments.json?login=&authtoken="),
    Content = new StringContent("{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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}}/products/:id/attachments.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/attachments.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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/products/:id/attachments.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 59

{
  "attachment": {
    "filename": "",
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/attachments.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  attachment: {
    filename: '',
    url: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/attachments.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {attachment: {filename: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attachment":{"filename":"","url":""}}'
};

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}}/products/:id/attachments.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attachment": {\n    "filename": "",\n    "url": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .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/products/:id/attachments.json?login=&authtoken=',
  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({attachment: {filename: '', url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/attachments.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {attachment: {filename: '', url: ''}},
  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}}/products/:id/attachments.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attachment: {
    filename: '',
    url: ''
  }
});

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}}/products/:id/attachments.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {attachment: {filename: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attachment":{"filename":"","url":""}}'
};

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 = @{ @"attachment": @{ @"filename": @"", @"url": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/attachments.json?login=&authtoken="]
                                                       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}}/products/:id/attachments.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=",
  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([
    'attachment' => [
        'filename' => '',
        'url' => ''
    ]
  ]),
  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}}/products/:id/attachments.json?login=&authtoken=', [
  'body' => '{
  "attachment": {
    "filename": "",
    "url": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/attachments.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attachment' => [
    'filename' => '',
    'url' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attachment' => [
    'filename' => '',
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/attachments.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/attachments.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attachment": {
    "filename": "",
    "url": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attachment": {
    "filename": "",
    "url": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/attachments.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/attachments.json"

querystring = {"login":"","authtoken":""}

payload = { "attachment": {
        "filename": "",
        "url": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/attachments.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")

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  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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/products/:id/attachments.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"attachment\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/attachments.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"attachment": json!({
            "filename": "",
            "url": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "attachment": {
    "filename": "",
    "url": ""
  }
}'
echo '{
  "attachment": {
    "filename": "",
    "url": ""
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attachment": {\n    "filename": "",\n    "url": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/attachments.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["attachment": [
    "filename": "",
    "url": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")! 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()
DELETE Delete a Product Attachment.
{{baseUrl}}/products/:id/attachments/:attachment_id.json
QUERY PARAMS

login
authtoken
id
attachment_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:id/attachments/:attachment_id.json" {:query-params {:login ""
                                                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken="

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}}/products/:id/attachments/:attachment_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken="

	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/products/:id/attachments/:attachment_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken="))
    .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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:id/attachments/:attachment_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=';
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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/attachments/:attachment_id.json?login=&authtoken=',
  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}}/products/:id/attachments/:attachment_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:id/attachments/:attachment_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/attachments/:attachment_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=';
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}}/products/:id/attachments/:attachment_id.json?login=&authtoken="]
                                                       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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=",
  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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/attachments/:attachment_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/attachments/:attachment_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:id/attachments/:attachment_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/attachments/:attachment_id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/attachments/:attachment_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")

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/products/:id/attachments/:attachment_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/attachments/:attachment_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")! 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()
GET Retrieve a single Product Attachment.
{{baseUrl}}/products/:id/attachments/:attachment_id.json
QUERY PARAMS

login
authtoken
id
attachment_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/attachments/:attachment_id.json" {:query-params {:login ""
                                                                                                       :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken="

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}}/products/:id/attachments/:attachment_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken="

	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/products/:id/attachments/:attachment_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken="))
    .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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/attachments/:attachment_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=';
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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/attachments/:attachment_id.json?login=&authtoken=',
  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}}/products/:id/attachments/:attachment_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/attachments/:attachment_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/attachments/:attachment_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=';
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}}/products/:id/attachments/:attachment_id.json?login=&authtoken="]
                                                       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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=",
  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}}/products/:id/attachments/:attachment_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/attachments/:attachment_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/attachments/:attachment_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/attachments/:attachment_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/attachments/:attachment_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/attachments/:attachment_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")

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/products/:id/attachments/:attachment_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/attachments/:attachment_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/attachments/:attachment_id.json?login=&authtoken=")! 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 Retrieve all Product Attachments.
{{baseUrl}}/products/:id/attachments.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/attachments.json" {:query-params {:login ""
                                                                                        :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/attachments.json?login=&authtoken="

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}}/products/:id/attachments.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/attachments.json?login=&authtoken="

	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/products/:id/attachments.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/attachments.json?login=&authtoken="))
    .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}}/products/:id/attachments.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .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}}/products/:id/attachments.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/attachments.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=';
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}}/products/:id/attachments.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/attachments.json?login=&authtoken=',
  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}}/products/:id/attachments.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/attachments.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/attachments.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=';
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}}/products/:id/attachments.json?login=&authtoken="]
                                                       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}}/products/:id/attachments.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=",
  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}}/products/:id/attachments.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/attachments.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/attachments.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/attachments.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/attachments.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/attachments.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/attachments.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")

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/products/:id/attachments.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/attachments.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/attachments.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/attachments.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/attachments.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/attachments.json?login=&authtoken=")! 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 Add an existing Custom Field to a Product.
{{baseUrl}}/products/:id/fields.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "field": {
    "id": 0,
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/fields.json?login=&authtoken=");

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  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/fields.json" {:query-params {:login ""
                                                                                    :authtoken ""}
                                                                     :content-type :json
                                                                     :form-params {:field {:id 0
                                                                                           :value ""}}})
require "http/client"

url = "{{baseUrl}}/products/:id/fields.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\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}}/products/:id/fields.json?login=&authtoken="),
    Content = new StringContent("{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\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}}/products/:id/fields.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/fields.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\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/products/:id/fields.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 49

{
  "field": {
    "id": 0,
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/fields.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\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  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  field: {
    id: 0,
    value: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/fields.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/fields.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {field: {id: 0, value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/fields.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"field":{"id":0,"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: '{{baseUrl}}/products/:id/fields.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "field": {\n    "id": 0,\n    "value": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .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/products/:id/fields.json?login=&authtoken=',
  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({field: {id: 0, value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/fields.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {field: {id: 0, value: ''}},
  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}}/products/:id/fields.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  field: {
    id: 0,
    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: 'POST',
  url: '{{baseUrl}}/products/:id/fields.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {field: {id: 0, value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/fields.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"field":{"id":0,"value":""}}'
};

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 = @{ @"field": @{ @"id": @0, @"value": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/fields.json?login=&authtoken="]
                                                       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}}/products/:id/fields.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/fields.json?login=&authtoken=",
  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([
    'field' => [
        'id' => 0,
        'value' => ''
    ]
  ]),
  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}}/products/:id/fields.json?login=&authtoken=', [
  'body' => '{
  "field": {
    "id": 0,
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/fields.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'field' => [
    'id' => 0,
    'value' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'field' => [
    'id' => 0,
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/fields.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/fields.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "field": {
    "id": 0,
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/fields.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "field": {
    "id": 0,
    "value": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/fields.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/fields.json"

querystring = {"login":"","authtoken":""}

payload = { "field": {
        "id": 0,
        "value": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/fields.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")

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  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\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/products/:id/fields.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"field\": {\n    \"id\": 0,\n    \"value\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/fields.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"field": json!({
            "id": 0,
            "value": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/fields.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "field": {
    "id": 0,
    "value": ""
  }
}'
echo '{
  "field": {
    "id": 0,
    "value": ""
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/fields.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "field": {\n    "id": 0,\n    "value": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/fields.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["field": [
    "id": 0,
    "value": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/fields.json?login=&authtoken=")! 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 Count all Product Custom Fields.
{{baseUrl}}/products/:id/fields/count.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/fields/count.json" {:query-params {:login ""
                                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/fields/count.json?login=&authtoken="

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}}/products/:id/fields/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/fields/count.json?login=&authtoken="

	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/products/:id/fields/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/fields/count.json?login=&authtoken="))
    .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}}/products/:id/fields/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=")
  .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}}/products/:id/fields/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/fields/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=';
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}}/products/:id/fields/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/fields/count.json?login=&authtoken=',
  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}}/products/:id/fields/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/fields/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/fields/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=';
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}}/products/:id/fields/count.json?login=&authtoken="]
                                                       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}}/products/:id/fields/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=",
  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}}/products/:id/fields/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/fields/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/fields/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/fields/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/fields/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/fields/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=")

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/products/:id/fields/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/fields/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/fields/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/fields/count.json?login=&authtoken=")! 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()
DELETE Delete value of Product Custom Field
{{baseUrl}}/products/:product_id/fields/:field_id.json
QUERY PARAMS

login
authtoken
product_id
field_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:product_id/fields/:field_id.json" {:query-params {:login ""
                                                                                                        :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="

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}}/products/:product_id/fields/:field_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="

	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/products/:product_id/fields/:field_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="))
    .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}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .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}}/products/:product_id/fields/:field_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:product_id/fields/:field_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=';
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}}/products/:product_id/fields/:field_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:product_id/fields/:field_id.json?login=&authtoken=',
  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}}/products/:product_id/fields/:field_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:product_id/fields/:field_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:product_id/fields/:field_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=';
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}}/products/:product_id/fields/:field_id.json?login=&authtoken="]
                                                       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}}/products/:product_id/fields/:field_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=",
  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}}/products/:product_id/fields/:field_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:product_id/fields/:field_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:product_id/fields/:field_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:product_id/fields/:field_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:product_id/fields/:field_id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:product_id/fields/:field_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")

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/products/:product_id/fields/:field_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:product_id/fields/:field_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")! 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()
GET Retrieve all Product Custom Fields
{{baseUrl}}/products/:id/fields.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/fields.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/fields.json" {:query-params {:login ""
                                                                                   :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/fields.json?login=&authtoken="

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}}/products/:id/fields.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/fields.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/fields.json?login=&authtoken="

	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/products/:id/fields.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/fields.json?login=&authtoken="))
    .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}}/products/:id/fields.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .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}}/products/:id/fields.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/fields.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/fields.json?login=&authtoken=';
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}}/products/:id/fields.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/fields.json?login=&authtoken=',
  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}}/products/:id/fields.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/fields.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/fields.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/fields.json?login=&authtoken=';
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}}/products/:id/fields.json?login=&authtoken="]
                                                       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}}/products/:id/fields.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/fields.json?login=&authtoken=",
  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}}/products/:id/fields.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/fields.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/fields.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/fields.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/fields.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/fields.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/fields.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/fields.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/fields.json?login=&authtoken=")

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/products/:id/fields.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/fields.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/fields.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/fields.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/fields.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/fields.json?login=&authtoken=")! 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()
PUT Update value of Product Custom Field
{{baseUrl}}/products/:product_id/fields/:field_id.json
QUERY PARAMS

login
authtoken
product_id
field_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/products/:product_id/fields/:field_id.json" {:query-params {:login ""
                                                                                                     :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/products/:product_id/fields/:field_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken="))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:product_id/fields/:field_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=';
const options = {method: 'PUT'};

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}}/products/:product_id/fields/:field_id.json?login=&authtoken=',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:product_id/fields/:field_id.json?login=&authtoken=',
  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: 'PUT',
  url: '{{baseUrl}}/products/:product_id/fields/:field_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/products/:product_id/fields/:field_id.json');

req.query({
  login: '',
  authtoken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:product_id/fields/:field_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=';
const options = {method: 'PUT'};

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}}/products/:product_id/fields/:field_id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

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}}/products/:product_id/fields/:field_id.json?login=&authtoken=" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:product_id/fields/:field_id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:product_id/fields/:field_id.json');
$request->setRequestMethod('PUT');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/products/:product_id/fields/:field_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:product_id/fields/:field_id.json"

querystring = {"login":"","authtoken":""}

response = requests.put(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:product_id/fields/:field_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("PUT", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/products/:product_id/fields/:field_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:product_id/fields/:field_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken='
http PUT '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken='
wget --quiet \
  --method PUT \
  --output-document \
  - '{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:product_id/fields/:field_id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

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 Count all Product DigitalProducts.
{{baseUrl}}/products/:id/digital_products/count.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/digital_products/count.json" {:query-params {:login ""
                                                                                                   :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken="

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}}/products/:id/digital_products/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken="

	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/products/:id/digital_products/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken="))
    .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}}/products/:id/digital_products/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=")
  .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}}/products/:id/digital_products/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/digital_products/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=';
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}}/products/:id/digital_products/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/digital_products/count.json?login=&authtoken=',
  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}}/products/:id/digital_products/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/digital_products/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/digital_products/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=';
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}}/products/:id/digital_products/count.json?login=&authtoken="]
                                                       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}}/products/:id/digital_products/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=",
  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}}/products/:id/digital_products/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/digital_products/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/digital_products/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/digital_products/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/digital_products/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/digital_products/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=")

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/products/:id/digital_products/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/digital_products/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/digital_products/count.json?login=&authtoken=")! 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 Create a new Product DigitalProduct.
{{baseUrl}}/products/:id/digital_products.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=");

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  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/digital_products.json" {:query-params {:login ""
                                                                                              :authtoken ""}
                                                                               :content-type :json
                                                                               :form-params {:digital_product {:filename ""
                                                                                                               :url ""}}})
require "http/client"

url = "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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}}/products/:id/digital_products.json?login=&authtoken="),
    Content = new StringContent("{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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}}/products/:id/digital_products.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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/products/:id/digital_products.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 64

{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  digital_product: {
    filename: '',
    url: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/digital_products.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {digital_product: {filename: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"digital_product":{"filename":"","url":""}}'
};

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}}/products/:id/digital_products.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "digital_product": {\n    "filename": "",\n    "url": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .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/products/:id/digital_products.json?login=&authtoken=',
  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({digital_product: {filename: '', url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/digital_products.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {digital_product: {filename: '', url: ''}},
  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}}/products/:id/digital_products.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  digital_product: {
    filename: '',
    url: ''
  }
});

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}}/products/:id/digital_products.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {digital_product: {filename: '', url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"digital_product":{"filename":"","url":""}}'
};

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 = @{ @"digital_product": @{ @"filename": @"", @"url": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="]
                                                       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}}/products/:id/digital_products.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=",
  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([
    'digital_product' => [
        'filename' => '',
        'url' => ''
    ]
  ]),
  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}}/products/:id/digital_products.json?login=&authtoken=', [
  'body' => '{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/digital_products.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'digital_product' => [
    'filename' => '',
    'url' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'digital_product' => [
    'filename' => '',
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/digital_products.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/digital_products.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/digital_products.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/digital_products.json"

querystring = {"login":"","authtoken":""}

payload = { "digital_product": {
        "filename": "",
        "url": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/digital_products.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")

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  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\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/products/:id/digital_products.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"digital_product\": {\n    \"filename\": \"\",\n    \"url\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/digital_products.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"digital_product": json!({
            "filename": "",
            "url": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}'
echo '{
  "digital_product": {
    "filename": "",
    "url": ""
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "digital_product": {\n    "filename": "",\n    "url": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["digital_product": [
    "filename": "",
    "url": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")! 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()
DELETE Delete a Product DigitalProduct.
{{baseUrl}}/products/:id/digital_products/:digital_product_id.json
QUERY PARAMS

login
authtoken
id
digital_product_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json" {:query-params {:login ""
                                                                                                                    :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="

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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="

	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/products/:id/digital_products/:digital_product_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="))
    .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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=';
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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/digital_products/:digital_product_id.json?login=&authtoken=',
  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}}/products/:id/digital_products/:digital_product_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/digital_products/:digital_product_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=';
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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="]
                                                       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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=",
  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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/digital_products/:digital_product_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/digital_products/:digital_product_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")

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/products/:id/digital_products/:digital_product_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")! 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()
GET Retrieve a single Product DigitalProduct.
{{baseUrl}}/products/:id/digital_products/:digital_product_id.json
QUERY PARAMS

login
authtoken
id
digital_product_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json" {:query-params {:login ""
                                                                                                                 :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="

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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="

	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/products/:id/digital_products/:digital_product_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="))
    .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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=';
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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/digital_products/:digital_product_id.json?login=&authtoken=',
  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}}/products/:id/digital_products/:digital_product_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/digital_products/:digital_product_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=';
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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken="]
                                                       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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=",
  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}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/digital_products/:digital_product_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/digital_products/:digital_product_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")

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/products/:id/digital_products/:digital_product_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/digital_products/:digital_product_id.json?login=&authtoken=")! 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 Retrieve all Product DigitalProducts.
{{baseUrl}}/products/:id/digital_products.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/digital_products.json" {:query-params {:login ""
                                                                                             :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="

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}}/products/:id/digital_products.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="

	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/products/:id/digital_products.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken="))
    .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}}/products/:id/digital_products.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .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}}/products/:id/digital_products.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/digital_products.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=';
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}}/products/:id/digital_products.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/digital_products.json?login=&authtoken=',
  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}}/products/:id/digital_products.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/digital_products.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/digital_products.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=';
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}}/products/:id/digital_products.json?login=&authtoken="]
                                                       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}}/products/:id/digital_products.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=",
  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}}/products/:id/digital_products.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/digital_products.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/digital_products.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/digital_products.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/digital_products.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/digital_products.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")

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/products/:id/digital_products.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/digital_products.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/digital_products.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/digital_products.json?login=&authtoken=")! 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 Count all Product Images.
{{baseUrl}}/products/:id/images/count.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/images/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/images/count.json" {:query-params {:login ""
                                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/images/count.json?login=&authtoken="

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}}/products/:id/images/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/images/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/images/count.json?login=&authtoken="

	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/products/:id/images/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/images/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/images/count.json?login=&authtoken="))
    .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}}/products/:id/images/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/images/count.json?login=&authtoken=")
  .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}}/products/:id/images/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/images/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/images/count.json?login=&authtoken=';
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}}/products/:id/images/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/images/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/images/count.json?login=&authtoken=',
  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}}/products/:id/images/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/images/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/images/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/images/count.json?login=&authtoken=';
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}}/products/:id/images/count.json?login=&authtoken="]
                                                       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}}/products/:id/images/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/images/count.json?login=&authtoken=",
  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}}/products/:id/images/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/images/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/images/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/images/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/images/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/images/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/images/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/images/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/images/count.json?login=&authtoken=")

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/products/:id/images/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/images/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/images/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/images/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/images/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/images/count.json?login=&authtoken=")! 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 Create a new Product Image.
{{baseUrl}}/products/:id/images.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "image": {
    "url": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/images.json?login=&authtoken=");

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  \"image\": {\n    \"url\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/images.json" {:query-params {:login ""
                                                                                    :authtoken ""}
                                                                     :content-type :json
                                                                     :form-params {:image {:url ""}}})
require "http/client"

url = "{{baseUrl}}/products/:id/images.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"image\": {\n    \"url\": \"\"\n  }\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}}/products/:id/images.json?login=&authtoken="),
    Content = new StringContent("{\n  \"image\": {\n    \"url\": \"\"\n  }\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}}/products/:id/images.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"image\": {\n    \"url\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/images.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"image\": {\n    \"url\": \"\"\n  }\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/products/:id/images.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 34

{
  "image": {
    "url": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"image\": {\n    \"url\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/images.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"image\": {\n    \"url\": \"\"\n  }\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  \"image\": {\n    \"url\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"image\": {\n    \"url\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  image: {
    url: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/images.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/images.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {image: {url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/images.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"image":{"url":""}}'
};

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}}/products/:id/images.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "image": {\n    "url": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"image\": {\n    \"url\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .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/products/:id/images.json?login=&authtoken=',
  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({image: {url: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/images.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {image: {url: ''}},
  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}}/products/:id/images.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  image: {
    url: ''
  }
});

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}}/products/:id/images.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {image: {url: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/images.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"image":{"url":""}}'
};

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 = @{ @"image": @{ @"url": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/images.json?login=&authtoken="]
                                                       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}}/products/:id/images.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"image\": {\n    \"url\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/images.json?login=&authtoken=",
  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([
    'image' => [
        'url' => ''
    ]
  ]),
  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}}/products/:id/images.json?login=&authtoken=', [
  'body' => '{
  "image": {
    "url": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/images.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'image' => [
    'url' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'image' => [
    'url' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/images.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/images.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "image": {
    "url": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/images.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "image": {
    "url": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"image\": {\n    \"url\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/images.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/images.json"

querystring = {"login":"","authtoken":""}

payload = { "image": { "url": "" } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/images.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"image\": {\n    \"url\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/images.json?login=&authtoken=")

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  \"image\": {\n    \"url\": \"\"\n  }\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/products/:id/images.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"image\": {\n    \"url\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/images.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"image": json!({"url": ""})});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/images.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "image": {
    "url": ""
  }
}'
echo '{
  "image": {
    "url": ""
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/images.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "image": {\n    "url": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/images.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["image": ["url": ""]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/images.json?login=&authtoken=")! 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()
DELETE Delete a Product Image.
{{baseUrl}}/products/:id/images/:image_id.json
QUERY PARAMS

login
authtoken
id
image_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:id/images/:image_id.json" {:query-params {:login ""
                                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken="

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}}/products/:id/images/:image_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken="

	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/products/:id/images/:image_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken="))
    .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}}/products/:id/images/:image_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")
  .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}}/products/:id/images/:image_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:id/images/:image_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=';
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}}/products/:id/images/:image_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/images/:image_id.json?login=&authtoken=',
  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}}/products/:id/images/:image_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:id/images/:image_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/images/:image_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=';
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}}/products/:id/images/:image_id.json?login=&authtoken="]
                                                       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}}/products/:id/images/:image_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=",
  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}}/products/:id/images/:image_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/images/:image_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/images/:image_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:id/images/:image_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/images/:image_id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/images/:image_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")

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/products/:id/images/:image_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/images/:image_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")! 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()
GET Retrieve a single Product Image.
{{baseUrl}}/products/:id/images/:image_id.json
QUERY PARAMS

login
authtoken
id
image_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/images/:image_id.json" {:query-params {:login ""
                                                                                             :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken="

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}}/products/:id/images/:image_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken="

	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/products/:id/images/:image_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken="))
    .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}}/products/:id/images/:image_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")
  .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}}/products/:id/images/:image_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/images/:image_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=';
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}}/products/:id/images/:image_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/images/:image_id.json?login=&authtoken=',
  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}}/products/:id/images/:image_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/images/:image_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/images/:image_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=';
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}}/products/:id/images/:image_id.json?login=&authtoken="]
                                                       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}}/products/:id/images/:image_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=",
  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}}/products/:id/images/:image_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/images/:image_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/images/:image_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/images/:image_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/images/:image_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/images/:image_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")

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/products/:id/images/:image_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/images/:image_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/images/:image_id.json?login=&authtoken=")! 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 Retrieve all Product Images.
{{baseUrl}}/products/:id/images.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/images.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/images.json" {:query-params {:login ""
                                                                                   :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/images.json?login=&authtoken="

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}}/products/:id/images.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/images.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/images.json?login=&authtoken="

	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/products/:id/images.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/images.json?login=&authtoken="))
    .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}}/products/:id/images.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .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}}/products/:id/images.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/images.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/images.json?login=&authtoken=';
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}}/products/:id/images.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/images.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/images.json?login=&authtoken=',
  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}}/products/:id/images.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/images.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/images.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/images.json?login=&authtoken=';
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}}/products/:id/images.json?login=&authtoken="]
                                                       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}}/products/:id/images.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/images.json?login=&authtoken=",
  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}}/products/:id/images.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/images.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/images.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/images.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/images.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/images.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/images.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/images.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/images.json?login=&authtoken=")

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/products/:id/images.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/images.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/images.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/images.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/images.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/images.json?login=&authtoken=")! 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 Count all Product Option Values.
{{baseUrl}}/products/:id/options/:option_id/values/count.json
QUERY PARAMS

login
authtoken
id
option_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/options/:option_id/values/count.json" {:query-params {:login ""
                                                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken="

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}}/products/:id/options/:option_id/values/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken="

	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/products/:id/options/:option_id/values/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken="))
    .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}}/products/:id/options/:option_id/values/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=")
  .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}}/products/:id/options/:option_id/values/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/options/:option_id/values/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id/values/count.json?login=&authtoken=',
  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}}/products/:id/options/:option_id/values/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/options/:option_id/values/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/:option_id/values/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values/count.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id/values/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=",
  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}}/products/:id/options/:option_id/values/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id/values/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/:option_id/values/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/options/:option_id/values/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id/values/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id/values/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=")

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/products/:id/options/:option_id/values/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id/values/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id/values/count.json?login=&authtoken=")! 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 Create a new Product Option Value.
{{baseUrl}}/products/:id/options/:option_id/values.json
QUERY PARAMS

login
authtoken
id
option_id
BODY json

{
  "value": {
    "name": "",
    "position": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=");

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  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/options/:option_id/values.json" {:query-params {:login ""
                                                                                                       :authtoken ""}
                                                                                        :content-type :json
                                                                                        :form-params {:value {:name ""
                                                                                                              :position 0}}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options/:option_id/values.json?login=&authtoken="),
    Content = new StringContent("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options/:option_id/values.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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/products/:id/options/:option_id/values.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 54

{
  "value": {
    "name": "",
    "position": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  value: {
    name: '',
    position: 0
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/options/:option_id/values.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {value: {name: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"value":{"name":"","position":0}}'
};

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}}/products/:id/options/:option_id/values.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "value": {\n    "name": "",\n    "position": 0\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .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/products/:id/options/:option_id/values.json?login=&authtoken=',
  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({value: {name: '', position: 0}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/options/:option_id/values.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {value: {name: '', position: 0}},
  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}}/products/:id/options/:option_id/values.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  value: {
    name: '',
    position: 0
  }
});

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}}/products/:id/options/:option_id/values.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {value: {name: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"value":{"name":"","position":0}}'
};

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 = @{ @"value": @{ @"name": @"", @"position": @0 } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id/values.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=",
  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([
    'value' => [
        'name' => '',
        'position' => 0
    ]
  ]),
  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}}/products/:id/options/:option_id/values.json?login=&authtoken=', [
  'body' => '{
  "value": {
    "name": "",
    "position": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id/values.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'value' => [
    'name' => '',
    'position' => 0
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'value' => [
    'name' => '',
    'position' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/options/:option_id/values.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/options/:option_id/values.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "value": {
    "name": "",
    "position": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "value": {
    "name": "",
    "position": 0
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/options/:option_id/values.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id/values.json"

querystring = {"login":"","authtoken":""}

payload = { "value": {
        "name": "",
        "position": 0
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id/values.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")

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  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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/products/:id/options/:option_id/values.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id/values.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"value": json!({
            "name": "",
            "position": 0
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "value": {
    "name": "",
    "position": 0
  }
}'
echo '{
  "value": {
    "name": "",
    "position": 0
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "value": {\n    "name": "",\n    "position": 0\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["value": [
    "name": "",
    "position": 0
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")! 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()
DELETE Delete a Product Option Value.
{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json
QUERY PARAMS

login
authtoken
id
option_id
value_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json" {:query-params {:login ""
                                                                                                                   :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="

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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="

	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/products/:id/options/:option_id/values/:value_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="))
    .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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=',
  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}}/products/:id/options/:option_id/values/:value_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/:option_id/values/:value_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=",
  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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")

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/products/:id/options/:option_id/values/:value_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")! 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()
PUT Modify an existing Product Option Value.
{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json
QUERY PARAMS

login
authtoken
id
option_id
value_id
BODY json

{
  "value": {
    "name": "",
    "position": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=");

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  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json" {:query-params {:login ""
                                                                                                                :authtoken ""}
                                                                                                 :content-type :json
                                                                                                 :form-params {:value {:name ""
                                                                                                                       :position 0}}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 54

{
  "value": {
    "name": "",
    "position": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  value: {
    name: '',
    position: 0
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {value: {name: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"value":{"name":"","position":0}}'
};

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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "value": {\n    "name": "",\n    "position": 0\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=',
  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({value: {name: '', position: 0}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {value: {name: '', position: 0}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  value: {
    name: '',
    position: 0
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {value: {name: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"value":{"name":"","position":0}}'
};

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 = @{ @"value": @{ @"name": @"", @"position": @0 } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'value' => [
        'name' => '',
        'position' => 0
    ]
  ]),
  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('PUT', '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=', [
  'body' => '{
  "value": {
    "name": "",
    "position": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'value' => [
    'name' => '',
    'position' => 0
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'value' => [
    'name' => '',
    'position' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "value": {
    "name": "",
    "position": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "value": {
    "name": "",
    "position": 0
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json"

querystring = {"login":"","authtoken":""}

payload = { "value": {
        "name": "",
        "position": 0
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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.put('/baseUrl/products/:id/options/:option_id/values/:value_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"value\": {\n    \"name\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options/:option_id/values/:value_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"value": json!({
            "name": "",
            "position": 0
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "value": {
    "name": "",
    "position": 0
  }
}'
echo '{
  "value": {
    "name": "",
    "position": 0
  }
}' |  \
  http PUT '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "value": {\n    "name": "",\n    "position": 0\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["value": [
    "name": "",
    "position": 0
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve a single Product Option Value.
{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json
QUERY PARAMS

login
authtoken
id
option_id
value_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json" {:query-params {:login ""
                                                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="

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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="

	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/products/:id/options/:option_id/values/:value_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="))
    .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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=',
  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}}/products/:id/options/:option_id/values/:value_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/:option_id/values/:value_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=",
  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}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")

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/products/:id/options/:option_id/values/:value_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id/values/:value_id.json?login=&authtoken=")! 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 Retrieve all Product Option Values.
{{baseUrl}}/products/:id/options/:option_id/values.json
QUERY PARAMS

login
authtoken
id
option_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/options/:option_id/values.json" {:query-params {:login ""
                                                                                                      :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="

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}}/products/:id/options/:option_id/values.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="

	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/products/:id/options/:option_id/values.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken="))
    .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}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .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}}/products/:id/options/:option_id/values.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/options/:option_id/values.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id/values.json?login=&authtoken=',
  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}}/products/:id/options/:option_id/values.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/options/:option_id/values.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/:option_id/values.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=';
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}}/products/:id/options/:option_id/values.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id/values.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=",
  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}}/products/:id/options/:option_id/values.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id/values.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/:option_id/values.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/options/:option_id/values.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id/values.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id/values.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")

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/products/:id/options/:option_id/values.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id/values.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id/values.json?login=&authtoken=")! 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 Count all Product Options.
{{baseUrl}}/products/:id/options/count.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/options/count.json" {:query-params {:login ""
                                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/count.json?login=&authtoken="

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}}/products/:id/options/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/count.json?login=&authtoken="

	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/products/:id/options/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/options/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/count.json?login=&authtoken="))
    .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}}/products/:id/options/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/options/count.json?login=&authtoken=")
  .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}}/products/:id/options/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/options/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/count.json?login=&authtoken=';
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}}/products/:id/options/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/count.json?login=&authtoken=',
  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}}/products/:id/options/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/options/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/count.json?login=&authtoken=';
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}}/products/:id/options/count.json?login=&authtoken="]
                                                       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}}/products/:id/options/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/count.json?login=&authtoken=",
  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}}/products/:id/options/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/options/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/count.json?login=&authtoken=")

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/products/:id/options/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/options/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/options/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/options/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/count.json?login=&authtoken=")! 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 Create a new Product Option.
{{baseUrl}}/products/:id/options.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options.json?login=&authtoken=");

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  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/options.json" {:query-params {:login ""
                                                                                     :authtoken ""}
                                                                      :content-type :json
                                                                      :form-params {:option {:name ""
                                                                                             :option_type ""
                                                                                             :position 0}}})
require "http/client"

url = "{{baseUrl}}/products/:id/options.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options.json?login=&authtoken="),
    Content = new StringContent("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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/products/:id/options.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  option: {
    name: '',
    option_type: '',
    position: 0
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/options.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/options.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {option: {name: '', option_type: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"option":{"name":"","option_type":"","position":0}}'
};

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}}/products/:id/options.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "option": {\n    "name": "",\n    "option_type": "",\n    "position": 0\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .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/products/:id/options.json?login=&authtoken=',
  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({option: {name: '', option_type: '', position: 0}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/options.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {option: {name: '', option_type: '', position: 0}},
  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}}/products/:id/options.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  option: {
    name: '',
    option_type: '',
    position: 0
  }
});

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}}/products/:id/options.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {option: {name: '', option_type: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"option":{"name":"","option_type":"","position":0}}'
};

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 = @{ @"option": @{ @"name": @"", @"option_type": @"", @"position": @0 } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/options.json?login=&authtoken="]
                                                       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}}/products/:id/options.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options.json?login=&authtoken=",
  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([
    'option' => [
        'name' => '',
        'option_type' => '',
        'position' => 0
    ]
  ]),
  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}}/products/:id/options.json?login=&authtoken=', [
  'body' => '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'option' => [
    'name' => '',
    'option_type' => '',
    'position' => 0
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'option' => [
    'name' => '',
    'option_type' => '',
    'position' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/options.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/options.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/options.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options.json"

querystring = {"login":"","authtoken":""}

payload = { "option": {
        "name": "",
        "option_type": "",
        "position": 0
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options.json?login=&authtoken=")

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  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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/products/:id/options.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"option": json!({
            "name": "",
            "option_type": "",
            "position": 0
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/options.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}'
echo '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/options.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "option": {\n    "name": "",\n    "option_type": "",\n    "position": 0\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/options.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["option": [
    "name": "",
    "option_type": "",
    "position": 0
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options.json?login=&authtoken=")! 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()
DELETE Delete a Product Option.
{{baseUrl}}/products/:id/options/:option_id.json
QUERY PARAMS

login
authtoken
id
option_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:id/options/:option_id.json" {:query-params {:login ""
                                                                                                  :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="

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}}/products/:id/options/:option_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="

	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/products/:id/options/:option_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="))
    .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}}/products/:id/options/:option_id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .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}}/products/:id/options/:option_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:id/options/:option_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id.json?login=&authtoken=',
  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}}/products/:id/options/:option_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:id/options/:option_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/:option_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=",
  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}}/products/:id/options/:option_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/:option_id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:id/options/:option_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")

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/products/:id/options/:option_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")! 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()
PUT Modify an existing Product Option.
{{baseUrl}}/products/:id/options/:option_id.json
QUERY PARAMS

login
authtoken
id
option_id
BODY json

{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=");

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  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/products/:id/options/:option_id.json" {:query-params {:login ""
                                                                                               :authtoken ""}
                                                                                :content-type :json
                                                                                :form-params {:option {:name ""
                                                                                                       :option_type ""
                                                                                                       :position 0}}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options/:option_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/products/:id/options/:option_id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 78

{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")
  .asString();
const data = JSON.stringify({
  option: {
    name: '',
    option_type: '',
    position: 0
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/options/:option_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {option: {name: '', option_type: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"option":{"name":"","option_type":"","position":0}}'
};

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}}/products/:id/options/:option_id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "option": {\n    "name": "",\n    "option_type": "",\n    "position": 0\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id.json?login=&authtoken=',
  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({option: {name: '', option_type: '', position: 0}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/options/:option_id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {option: {name: '', option_type: '', position: 0}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/products/:id/options/:option_id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  option: {
    name: '',
    option_type: '',
    position: 0
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/options/:option_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {option: {name: '', option_type: '', position: 0}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"option":{"name":"","option_type":"","position":0}}'
};

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 = @{ @"option": @{ @"name": @"", @"option_type": @"", @"position": @0 } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/products/:id/options/:option_id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'option' => [
        'name' => '',
        'option_type' => '',
        'position' => 0
    ]
  ]),
  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('PUT', '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=', [
  'body' => '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'option' => [
    'name' => '',
    'option_type' => '',
    'position' => 0
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'option' => [
    'name' => '',
    'option_type' => '',
    'position' => 0
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/options/:option_id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/options/:option_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/products/:id/options/:option_id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id.json"

querystring = {"login":"","authtoken":""}

payload = { "option": {
        "name": "",
        "option_type": "",
        "position": 0
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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.put('/baseUrl/products/:id/options/:option_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"option\": {\n    \"name\": \"\",\n    \"option_type\": \"\",\n    \"position\": 0\n  }\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}}/products/:id/options/:option_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"option": json!({
            "name": "",
            "option_type": "",
            "position": 0
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}'
echo '{
  "option": {
    "name": "",
    "option_type": "",
    "position": 0
  }
}' |  \
  http PUT '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "option": {\n    "name": "",\n    "option_type": "",\n    "position": 0\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["option": [
    "name": "",
    "option_type": "",
    "position": 0
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve a single Product Option.
{{baseUrl}}/products/:id/options/:option_id.json
QUERY PARAMS

login
authtoken
id
option_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/options/:option_id.json" {:query-params {:login ""
                                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="

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}}/products/:id/options/:option_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="

	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/products/:id/options/:option_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken="))
    .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}}/products/:id/options/:option_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .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}}/products/:id/options/:option_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/options/:option_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options/:option_id.json?login=&authtoken=',
  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}}/products/:id/options/:option_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/options/:option_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options/:option_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=';
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}}/products/:id/options/:option_id.json?login=&authtoken="]
                                                       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}}/products/:id/options/:option_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=",
  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}}/products/:id/options/:option_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options/:option_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options/:option_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/options/:option_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options/:option_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options/:option_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")

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/products/:id/options/:option_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options/:option_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options/:option_id.json?login=&authtoken=")! 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 Retrieve all Product Options.
{{baseUrl}}/products/:id/options.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/options.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/options.json" {:query-params {:login ""
                                                                                    :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/options.json?login=&authtoken="

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}}/products/:id/options.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/options.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/options.json?login=&authtoken="

	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/products/:id/options.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/options.json?login=&authtoken="))
    .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}}/products/:id/options.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .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}}/products/:id/options.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/options.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/options.json?login=&authtoken=';
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}}/products/:id/options.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/options.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/options.json?login=&authtoken=',
  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}}/products/:id/options.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/options.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/options.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/options.json?login=&authtoken=';
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}}/products/:id/options.json?login=&authtoken="]
                                                       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}}/products/:id/options.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/options.json?login=&authtoken=",
  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}}/products/:id/options.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/options.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/options.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/options.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/options.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/options.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/options.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/options.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/options.json?login=&authtoken=")

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/products/:id/options.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/options.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/options.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/options.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/options.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/options.json?login=&authtoken=")! 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 Count all Product Variants.
{{baseUrl}}/products/:id/variants/count.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/variants/count.json" {:query-params {:login ""
                                                                                           :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/variants/count.json?login=&authtoken="

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}}/products/:id/variants/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/variants/count.json?login=&authtoken="

	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/products/:id/variants/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/variants/count.json?login=&authtoken="))
    .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}}/products/:id/variants/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=")
  .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}}/products/:id/variants/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/variants/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=';
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}}/products/:id/variants/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/variants/count.json?login=&authtoken=',
  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}}/products/:id/variants/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/variants/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/variants/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=';
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}}/products/:id/variants/count.json?login=&authtoken="]
                                                       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}}/products/:id/variants/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=",
  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}}/products/:id/variants/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/variants/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/variants/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/variants/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/variants/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/variants/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=")

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/products/:id/variants/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/variants/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/variants/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/variants/count.json?login=&authtoken=")! 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 Create a new Product Variant.
{{baseUrl}}/products/:id/variants.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/variants.json?login=&authtoken=");

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  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products/:id/variants.json" {:query-params {:login ""
                                                                                      :authtoken ""}
                                                                       :content-type :json
                                                                       :form-params {:variant {:image_id 0
                                                                                               :options [{:name ""
                                                                                                          :product_option_id 0
                                                                                                          :product_option_position 0
                                                                                                          :product_option_value_id 0
                                                                                                          :product_value_position 0
                                                                                                          :value ""}]
                                                                                               :price ""
                                                                                               :sku ""
                                                                                               :stock 0
                                                                                               :stock_unlimited false}}})
require "http/client"

url = "{{baseUrl}}/products/:id/variants.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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}}/products/:id/variants.json?login=&authtoken="),
    Content = new StringContent("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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}}/products/:id/variants.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/variants.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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/products/:id/variants.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 343

{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/variants.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  variant: {
    image_id: 0,
    options: [
      {
        name: '',
        product_option_id: 0,
        product_option_position: 0,
        product_option_value_id: 0,
        product_value_position: 0,
        value: ''
      }
    ],
    price: '',
    sku: '',
    stock: 0,
    stock_unlimited: false
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products/:id/variants.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/variants.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    variant: {
      image_id: 0,
      options: [
        {
          name: '',
          product_option_id: 0,
          product_option_position: 0,
          product_option_value_id: 0,
          product_value_position: 0,
          value: ''
        }
      ],
      price: '',
      sku: '',
      stock: 0,
      stock_unlimited: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/variants.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"variant":{"image_id":0,"options":[{"name":"","product_option_id":0,"product_option_position":0,"product_option_value_id":0,"product_value_position":0,"value":""}],"price":"","sku":"","stock":0,"stock_unlimited":false}}'
};

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}}/products/:id/variants.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "variant": {\n    "image_id": 0,\n    "options": [\n      {\n        "name": "",\n        "product_option_id": 0,\n        "product_option_position": 0,\n        "product_option_value_id": 0,\n        "product_value_position": 0,\n        "value": ""\n      }\n    ],\n    "price": "",\n    "sku": "",\n    "stock": 0,\n    "stock_unlimited": false\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .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/products/:id/variants.json?login=&authtoken=',
  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({
  variant: {
    image_id: 0,
    options: [
      {
        name: '',
        product_option_id: 0,
        product_option_position: 0,
        product_option_value_id: 0,
        product_value_position: 0,
        value: ''
      }
    ],
    price: '',
    sku: '',
    stock: 0,
    stock_unlimited: false
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products/:id/variants.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    variant: {
      image_id: 0,
      options: [
        {
          name: '',
          product_option_id: 0,
          product_option_position: 0,
          product_option_value_id: 0,
          product_value_position: 0,
          value: ''
        }
      ],
      price: '',
      sku: '',
      stock: 0,
      stock_unlimited: false
    }
  },
  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}}/products/:id/variants.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  variant: {
    image_id: 0,
    options: [
      {
        name: '',
        product_option_id: 0,
        product_option_position: 0,
        product_option_value_id: 0,
        product_value_position: 0,
        value: ''
      }
    ],
    price: '',
    sku: '',
    stock: 0,
    stock_unlimited: false
  }
});

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}}/products/:id/variants.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    variant: {
      image_id: 0,
      options: [
        {
          name: '',
          product_option_id: 0,
          product_option_position: 0,
          product_option_value_id: 0,
          product_value_position: 0,
          value: ''
        }
      ],
      price: '',
      sku: '',
      stock: 0,
      stock_unlimited: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/variants.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"variant":{"image_id":0,"options":[{"name":"","product_option_id":0,"product_option_position":0,"product_option_value_id":0,"product_value_position":0,"value":""}],"price":"","sku":"","stock":0,"stock_unlimited":false}}'
};

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 = @{ @"variant": @{ @"image_id": @0, @"options": @[ @{ @"name": @"", @"product_option_id": @0, @"product_option_position": @0, @"product_option_value_id": @0, @"product_value_position": @0, @"value": @"" } ], @"price": @"", @"sku": @"", @"stock": @0, @"stock_unlimited": @NO } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/variants.json?login=&authtoken="]
                                                       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}}/products/:id/variants.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/variants.json?login=&authtoken=",
  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([
    'variant' => [
        'image_id' => 0,
        'options' => [
                [
                                'name' => '',
                                'product_option_id' => 0,
                                'product_option_position' => 0,
                                'product_option_value_id' => 0,
                                'product_value_position' => 0,
                                'value' => ''
                ]
        ],
        'price' => '',
        'sku' => '',
        'stock' => 0,
        'stock_unlimited' => null
    ]
  ]),
  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}}/products/:id/variants.json?login=&authtoken=', [
  'body' => '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/variants.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'variant' => [
    'image_id' => 0,
    'options' => [
        [
                'name' => '',
                'product_option_id' => 0,
                'product_option_position' => 0,
                'product_option_value_id' => 0,
                'product_value_position' => 0,
                'value' => ''
        ]
    ],
    'price' => '',
    'sku' => '',
    'stock' => 0,
    'stock_unlimited' => null
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'variant' => [
    'image_id' => 0,
    'options' => [
        [
                'name' => '',
                'product_option_id' => 0,
                'product_option_position' => 0,
                'product_option_value_id' => 0,
                'product_value_position' => 0,
                'value' => ''
        ]
    ],
    'price' => '',
    'sku' => '',
    'stock' => 0,
    'stock_unlimited' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/variants.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/variants.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/variants.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products/:id/variants.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/variants.json"

querystring = {"login":"","authtoken":""}

payload = { "variant": {
        "image_id": 0,
        "options": [
            {
                "name": "",
                "product_option_id": 0,
                "product_option_position": 0,
                "product_option_value_id": 0,
                "product_value_position": 0,
                "value": ""
            }
        ],
        "price": "",
        "sku": "",
        "stock": 0,
        "stock_unlimited": False
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/variants.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")

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  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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/products/:id/variants.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/variants.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"variant": json!({
            "image_id": 0,
            "options": (
                json!({
                    "name": "",
                    "product_option_id": 0,
                    "product_option_position": 0,
                    "product_option_value_id": 0,
                    "product_value_position": 0,
                    "value": ""
                })
            ),
            "price": "",
            "sku": "",
            "stock": 0,
            "stock_unlimited": false
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products/:id/variants.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}'
echo '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}' |  \
  http POST '{{baseUrl}}/products/:id/variants.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "variant": {\n    "image_id": 0,\n    "options": [\n      {\n        "name": "",\n        "product_option_id": 0,\n        "product_option_position": 0,\n        "product_option_value_id": 0,\n        "product_value_position": 0,\n        "value": ""\n      }\n    ],\n    "price": "",\n    "sku": "",\n    "stock": 0,\n    "stock_unlimited": false\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/variants.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["variant": [
    "image_id": 0,
    "options": [
      [
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      ]
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/variants.json?login=&authtoken=")! 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()
PUT Modify an existing Product Variant.
{{baseUrl}}/products/:id/variants/:variant_id.json
QUERY PARAMS

login
authtoken
id
variant_id
BODY json

{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=");

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  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/products/:id/variants/:variant_id.json" {:query-params {:login ""
                                                                                                 :authtoken ""}
                                                                                  :content-type :json
                                                                                  :form-params {:variant {:image_id 0
                                                                                                          :options [{:name ""
                                                                                                                     :product_option_id 0
                                                                                                                     :product_option_position 0
                                                                                                                     :product_option_value_id 0
                                                                                                                     :product_value_position 0
                                                                                                                     :value ""}]
                                                                                                          :price ""
                                                                                                          :sku ""
                                                                                                          :stock 0
                                                                                                          :stock_unlimited false}}})
require "http/client"

url = "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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}}/products/:id/variants/:variant_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/products/:id/variants/:variant_id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 343

{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")
  .asString();
const data = JSON.stringify({
  variant: {
    image_id: 0,
    options: [
      {
        name: '',
        product_option_id: 0,
        product_option_position: 0,
        product_option_value_id: 0,
        product_value_position: 0,
        value: ''
      }
    ],
    price: '',
    sku: '',
    stock: 0,
    stock_unlimited: false
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/variants/:variant_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    variant: {
      image_id: 0,
      options: [
        {
          name: '',
          product_option_id: 0,
          product_option_position: 0,
          product_option_value_id: 0,
          product_value_position: 0,
          value: ''
        }
      ],
      price: '',
      sku: '',
      stock: 0,
      stock_unlimited: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"variant":{"image_id":0,"options":[{"name":"","product_option_id":0,"product_option_position":0,"product_option_value_id":0,"product_value_position":0,"value":""}],"price":"","sku":"","stock":0,"stock_unlimited":false}}'
};

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}}/products/:id/variants/:variant_id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "variant": {\n    "image_id": 0,\n    "options": [\n      {\n        "name": "",\n        "product_option_id": 0,\n        "product_option_position": 0,\n        "product_option_value_id": 0,\n        "product_value_position": 0,\n        "value": ""\n      }\n    ],\n    "price": "",\n    "sku": "",\n    "stock": 0,\n    "stock_unlimited": false\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/variants/:variant_id.json?login=&authtoken=',
  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({
  variant: {
    image_id: 0,
    options: [
      {
        name: '',
        product_option_id: 0,
        product_option_position: 0,
        product_option_value_id: 0,
        product_value_position: 0,
        value: ''
      }
    ],
    price: '',
    sku: '',
    stock: 0,
    stock_unlimited: false
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/variants/:variant_id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    variant: {
      image_id: 0,
      options: [
        {
          name: '',
          product_option_id: 0,
          product_option_position: 0,
          product_option_value_id: 0,
          product_value_position: 0,
          value: ''
        }
      ],
      price: '',
      sku: '',
      stock: 0,
      stock_unlimited: false
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/products/:id/variants/:variant_id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  variant: {
    image_id: 0,
    options: [
      {
        name: '',
        product_option_id: 0,
        product_option_position: 0,
        product_option_value_id: 0,
        product_value_position: 0,
        value: ''
      }
    ],
    price: '',
    sku: '',
    stock: 0,
    stock_unlimited: false
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id/variants/:variant_id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    variant: {
      image_id: 0,
      options: [
        {
          name: '',
          product_option_id: 0,
          product_option_position: 0,
          product_option_value_id: 0,
          product_value_position: 0,
          value: ''
        }
      ],
      price: '',
      sku: '',
      stock: 0,
      stock_unlimited: false
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"variant":{"image_id":0,"options":[{"name":"","product_option_id":0,"product_option_position":0,"product_option_value_id":0,"product_value_position":0,"value":""}],"price":"","sku":"","stock":0,"stock_unlimited":false}}'
};

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 = @{ @"variant": @{ @"image_id": @0, @"options": @[ @{ @"name": @"", @"product_option_id": @0, @"product_option_position": @0, @"product_option_value_id": @0, @"product_value_position": @0, @"value": @"" } ], @"price": @"", @"sku": @"", @"stock": @0, @"stock_unlimited": @NO } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/products/:id/variants/:variant_id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'variant' => [
        'image_id' => 0,
        'options' => [
                [
                                'name' => '',
                                'product_option_id' => 0,
                                'product_option_position' => 0,
                                'product_option_value_id' => 0,
                                'product_value_position' => 0,
                                'value' => ''
                ]
        ],
        'price' => '',
        'sku' => '',
        'stock' => 0,
        'stock_unlimited' => null
    ]
  ]),
  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('PUT', '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=', [
  'body' => '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/variants/:variant_id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'variant' => [
    'image_id' => 0,
    'options' => [
        [
                'name' => '',
                'product_option_id' => 0,
                'product_option_position' => 0,
                'product_option_value_id' => 0,
                'product_value_position' => 0,
                'value' => ''
        ]
    ],
    'price' => '',
    'sku' => '',
    'stock' => 0,
    'stock_unlimited' => null
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'variant' => [
    'image_id' => 0,
    'options' => [
        [
                'name' => '',
                'product_option_id' => 0,
                'product_option_position' => 0,
                'product_option_value_id' => 0,
                'product_value_position' => 0,
                'value' => ''
        ]
    ],
    'price' => '',
    'sku' => '',
    'stock' => 0,
    'stock_unlimited' => null
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id/variants/:variant_id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id/variants/:variant_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/products/:id/variants/:variant_id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/variants/:variant_id.json"

querystring = {"login":"","authtoken":""}

payload = { "variant": {
        "image_id": 0,
        "options": [
            {
                "name": "",
                "product_option_id": 0,
                "product_option_position": 0,
                "product_option_value_id": 0,
                "product_value_position": 0,
                "value": ""
            }
        ],
        "price": "",
        "sku": "",
        "stock": 0,
        "stock_unlimited": False
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/variants/:variant_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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.put('/baseUrl/products/:id/variants/:variant_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"variant\": {\n    \"image_id\": 0,\n    \"options\": [\n      {\n        \"name\": \"\",\n        \"product_option_id\": 0,\n        \"product_option_position\": 0,\n        \"product_option_value_id\": 0,\n        \"product_value_position\": 0,\n        \"value\": \"\"\n      }\n    ],\n    \"price\": \"\",\n    \"sku\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false\n  }\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}}/products/:id/variants/:variant_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"variant": json!({
            "image_id": 0,
            "options": (
                json!({
                    "name": "",
                    "product_option_id": 0,
                    "product_option_position": 0,
                    "product_option_value_id": 0,
                    "product_value_position": 0,
                    "value": ""
                })
            ),
            "price": "",
            "sku": "",
            "stock": 0,
            "stock_unlimited": false
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}'
echo '{
  "variant": {
    "image_id": 0,
    "options": [
      {
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      }
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  }
}' |  \
  http PUT '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "variant": {\n    "image_id": 0,\n    "options": [\n      {\n        "name": "",\n        "product_option_id": 0,\n        "product_option_position": 0,\n        "product_option_value_id": 0,\n        "product_value_position": 0,\n        "value": ""\n      }\n    ],\n    "price": "",\n    "sku": "",\n    "stock": 0,\n    "stock_unlimited": false\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["variant": [
    "image_id": 0,
    "options": [
      [
        "name": "",
        "product_option_id": 0,
        "product_option_position": 0,
        "product_option_value_id": 0,
        "product_value_position": 0,
        "value": ""
      ]
    ],
    "price": "",
    "sku": "",
    "stock": 0,
    "stock_unlimited": false
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve a single Product Variant.
{{baseUrl}}/products/:id/variants/:variant_id.json
QUERY PARAMS

login
authtoken
id
variant_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/variants/:variant_id.json" {:query-params {:login ""
                                                                                                 :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="

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}}/products/:id/variants/:variant_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="

	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/products/:id/variants/:variant_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken="))
    .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}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .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}}/products/:id/variants/:variant_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/variants/:variant_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=';
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}}/products/:id/variants/:variant_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/variants/:variant_id.json?login=&authtoken=',
  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}}/products/:id/variants/:variant_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/variants/:variant_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/variants/:variant_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=';
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}}/products/:id/variants/:variant_id.json?login=&authtoken="]
                                                       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}}/products/:id/variants/:variant_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=",
  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}}/products/:id/variants/:variant_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/variants/:variant_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/variants/:variant_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/variants/:variant_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/variants/:variant_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/variants/:variant_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")

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/products/:id/variants/:variant_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/variants/:variant_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/variants/:variant_id.json?login=&authtoken=")! 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 Retrieve all Product Variants.
{{baseUrl}}/products/:id/variants.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id/variants.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id/variants.json" {:query-params {:login ""
                                                                                     :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id/variants.json?login=&authtoken="

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}}/products/:id/variants.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id/variants.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id/variants.json?login=&authtoken="

	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/products/:id/variants.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id/variants.json?login=&authtoken="))
    .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}}/products/:id/variants.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .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}}/products/:id/variants.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id/variants.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id/variants.json?login=&authtoken=';
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}}/products/:id/variants.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id/variants.json?login=&authtoken=',
  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}}/products/:id/variants.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id/variants.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id/variants.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id/variants.json?login=&authtoken=';
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}}/products/:id/variants.json?login=&authtoken="]
                                                       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}}/products/:id/variants.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id/variants.json?login=&authtoken=",
  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}}/products/:id/variants.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id/variants.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id/variants.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id/variants.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id/variants.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id/variants.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id/variants.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id/variants.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id/variants.json?login=&authtoken=")

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/products/:id/variants.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id/variants.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id/variants.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id/variants.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id/variants.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id/variants.json?login=&authtoken=")! 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 Count Products filtered by category.
{{baseUrl}}/products/category/:category_id/count.json
QUERY PARAMS

login
authtoken
category_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/category/:category_id/count.json" {:query-params {:login ""
                                                                                                    :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken="

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}}/products/category/:category_id/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken="

	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/products/category/:category_id/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken="))
    .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}}/products/category/:category_id/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=")
  .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}}/products/category/:category_id/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/category/:category_id/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=';
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}}/products/category/:category_id/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/category/:category_id/count.json?login=&authtoken=',
  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}}/products/category/:category_id/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/category/:category_id/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/category/:category_id/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=';
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}}/products/category/:category_id/count.json?login=&authtoken="]
                                                       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}}/products/category/:category_id/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=",
  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}}/products/category/:category_id/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/category/:category_id/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/category/:category_id/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/category/:category_id/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/category/:category_id/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/category/:category_id/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=")

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/products/category/:category_id/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/category/:category_id/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/category/:category_id/count.json?login=&authtoken=")! 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 Count Products filtered by status.
{{baseUrl}}/products/status/:status/count.json
QUERY PARAMS

login
authtoken
status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/status/:status/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/status/:status/count.json" {:query-params {:login ""
                                                                                             :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/status/:status/count.json?login=&authtoken="

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}}/products/status/:status/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/status/:status/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/status/:status/count.json?login=&authtoken="

	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/products/status/:status/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/status/:status/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/status/:status/count.json?login=&authtoken="))
    .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}}/products/status/:status/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/status/:status/count.json?login=&authtoken=")
  .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}}/products/status/:status/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/status/:status/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/status/:status/count.json?login=&authtoken=';
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}}/products/status/:status/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/status/:status/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/status/:status/count.json?login=&authtoken=',
  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}}/products/status/:status/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/status/:status/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/status/:status/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/status/:status/count.json?login=&authtoken=';
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}}/products/status/:status/count.json?login=&authtoken="]
                                                       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}}/products/status/:status/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/status/:status/count.json?login=&authtoken=",
  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}}/products/status/:status/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/status/:status/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/status/:status/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/status/:status/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/status/:status/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/status/:status/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/status/:status/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/status/:status/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/status/:status/count.json?login=&authtoken=")

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/products/status/:status/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/status/:status/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/status/:status/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/status/:status/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/status/:status/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/status/:status/count.json?login=&authtoken=")! 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 Count all Products.
{{baseUrl}}/products/count.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/count.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/count.json" {:query-params {:login ""
                                                                              :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/count.json?login=&authtoken="

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}}/products/count.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/count.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/count.json?login=&authtoken="

	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/products/count.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/count.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/count.json?login=&authtoken="))
    .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}}/products/count.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/count.json?login=&authtoken=")
  .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}}/products/count.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/count.json?login=&authtoken=';
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}}/products/count.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/count.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/count.json?login=&authtoken=',
  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}}/products/count.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/count.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/count.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/count.json?login=&authtoken=';
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}}/products/count.json?login=&authtoken="]
                                                       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}}/products/count.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/count.json?login=&authtoken=",
  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}}/products/count.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/count.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/count.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/count.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/count.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/count.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/count.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/count.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/count.json?login=&authtoken=")

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/products/count.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/count.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/count.json?login=&authtoken='
http GET '{{baseUrl}}/products/count.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/count.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/count.json?login=&authtoken=")! 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 Create a new Product.
{{baseUrl}}/products.json
QUERY PARAMS

login
authtoken
BODY json

{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products.json?login=&authtoken=");

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  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/products.json" {:query-params {:login ""
                                                                         :authtoken ""}
                                                          :content-type :json
                                                          :form-params {:product {:barcode ""
                                                                                  :categories [{:id 0
                                                                                                :name ""
                                                                                                :parent_id 0
                                                                                                :permalink ""}]
                                                                                  :description ""
                                                                                  :diameter ""
                                                                                  :featured false
                                                                                  :google_product_category ""
                                                                                  :height ""
                                                                                  :length ""
                                                                                  :meta_description ""
                                                                                  :name ""
                                                                                  :package_format ""
                                                                                  :page_title ""
                                                                                  :permalink ""
                                                                                  :price ""
                                                                                  :shipping_required false
                                                                                  :sku ""
                                                                                  :status ""
                                                                                  :stock 0
                                                                                  :stock_unlimited false
                                                                                  :weight ""
                                                                                  :width ""}}})
require "http/client"

url = "{{baseUrl}}/products.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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}}/products.json?login=&authtoken="),
    Content = new StringContent("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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}}/products.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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/products.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 581

{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/products.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/products.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  product: {
    barcode: '',
    categories: [
      {
        id: 0,
        name: '',
        parent_id: 0,
        permalink: ''
      }
    ],
    description: '',
    diameter: '',
    featured: false,
    google_product_category: '',
    height: '',
    length: '',
    meta_description: '',
    name: '',
    package_format: '',
    page_title: '',
    permalink: '',
    price: '',
    shipping_required: false,
    sku: '',
    status: '',
    stock: 0,
    stock_unlimited: false,
    weight: '',
    width: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/products.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    product: {
      barcode: '',
      categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
      description: '',
      diameter: '',
      featured: false,
      google_product_category: '',
      height: '',
      length: '',
      meta_description: '',
      name: '',
      package_format: '',
      page_title: '',
      permalink: '',
      price: '',
      shipping_required: false,
      sku: '',
      status: '',
      stock: 0,
      stock_unlimited: false,
      weight: '',
      width: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"product":{"barcode":"","categories":[{"id":0,"name":"","parent_id":0,"permalink":""}],"description":"","diameter":"","featured":false,"google_product_category":"","height":"","length":"","meta_description":"","name":"","package_format":"","page_title":"","permalink":"","price":"","shipping_required":false,"sku":"","status":"","stock":0,"stock_unlimited":false,"weight":"","width":""}}'
};

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}}/products.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "product": {\n    "barcode": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "parent_id": 0,\n        "permalink": ""\n      }\n    ],\n    "description": "",\n    "diameter": "",\n    "featured": false,\n    "google_product_category": "",\n    "height": "",\n    "length": "",\n    "meta_description": "",\n    "name": "",\n    "package_format": "",\n    "page_title": "",\n    "permalink": "",\n    "price": "",\n    "shipping_required": false,\n    "sku": "",\n    "status": "",\n    "stock": 0,\n    "stock_unlimited": false,\n    "weight": "",\n    "width": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products.json?login=&authtoken=")
  .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/products.json?login=&authtoken=',
  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({
  product: {
    barcode: '',
    categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
    description: '',
    diameter: '',
    featured: false,
    google_product_category: '',
    height: '',
    length: '',
    meta_description: '',
    name: '',
    package_format: '',
    page_title: '',
    permalink: '',
    price: '',
    shipping_required: false,
    sku: '',
    status: '',
    stock: 0,
    stock_unlimited: false,
    weight: '',
    width: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/products.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    product: {
      barcode: '',
      categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
      description: '',
      diameter: '',
      featured: false,
      google_product_category: '',
      height: '',
      length: '',
      meta_description: '',
      name: '',
      package_format: '',
      page_title: '',
      permalink: '',
      price: '',
      shipping_required: false,
      sku: '',
      status: '',
      stock: 0,
      stock_unlimited: false,
      weight: '',
      width: ''
    }
  },
  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}}/products.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  product: {
    barcode: '',
    categories: [
      {
        id: 0,
        name: '',
        parent_id: 0,
        permalink: ''
      }
    ],
    description: '',
    diameter: '',
    featured: false,
    google_product_category: '',
    height: '',
    length: '',
    meta_description: '',
    name: '',
    package_format: '',
    page_title: '',
    permalink: '',
    price: '',
    shipping_required: false,
    sku: '',
    status: '',
    stock: 0,
    stock_unlimited: false,
    weight: '',
    width: ''
  }
});

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}}/products.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    product: {
      barcode: '',
      categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
      description: '',
      diameter: '',
      featured: false,
      google_product_category: '',
      height: '',
      length: '',
      meta_description: '',
      name: '',
      package_format: '',
      page_title: '',
      permalink: '',
      price: '',
      shipping_required: false,
      sku: '',
      status: '',
      stock: 0,
      stock_unlimited: false,
      weight: '',
      width: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"product":{"barcode":"","categories":[{"id":0,"name":"","parent_id":0,"permalink":""}],"description":"","diameter":"","featured":false,"google_product_category":"","height":"","length":"","meta_description":"","name":"","package_format":"","page_title":"","permalink":"","price":"","shipping_required":false,"sku":"","status":"","stock":0,"stock_unlimited":false,"weight":"","width":""}}'
};

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 = @{ @"product": @{ @"barcode": @"", @"categories": @[ @{ @"id": @0, @"name": @"", @"parent_id": @0, @"permalink": @"" } ], @"description": @"", @"diameter": @"", @"featured": @NO, @"google_product_category": @"", @"height": @"", @"length": @"", @"meta_description": @"", @"name": @"", @"package_format": @"", @"page_title": @"", @"permalink": @"", @"price": @"", @"shipping_required": @NO, @"sku": @"", @"status": @"", @"stock": @0, @"stock_unlimited": @NO, @"weight": @"", @"width": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products.json?login=&authtoken="]
                                                       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}}/products.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products.json?login=&authtoken=",
  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([
    'product' => [
        'barcode' => '',
        'categories' => [
                [
                                'id' => 0,
                                'name' => '',
                                'parent_id' => 0,
                                'permalink' => ''
                ]
        ],
        'description' => '',
        'diameter' => '',
        'featured' => null,
        'google_product_category' => '',
        'height' => '',
        'length' => '',
        'meta_description' => '',
        'name' => '',
        'package_format' => '',
        'page_title' => '',
        'permalink' => '',
        'price' => '',
        'shipping_required' => null,
        'sku' => '',
        'status' => '',
        'stock' => 0,
        'stock_unlimited' => null,
        'weight' => '',
        'width' => ''
    ]
  ]),
  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}}/products.json?login=&authtoken=', [
  'body' => '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'product' => [
    'barcode' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'parent_id' => 0,
                'permalink' => ''
        ]
    ],
    'description' => '',
    'diameter' => '',
    'featured' => null,
    'google_product_category' => '',
    'height' => '',
    'length' => '',
    'meta_description' => '',
    'name' => '',
    'package_format' => '',
    'page_title' => '',
    'permalink' => '',
    'price' => '',
    'shipping_required' => null,
    'sku' => '',
    'status' => '',
    'stock' => 0,
    'stock_unlimited' => null,
    'weight' => '',
    'width' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'product' => [
    'barcode' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'parent_id' => 0,
                'permalink' => ''
        ]
    ],
    'description' => '',
    'diameter' => '',
    'featured' => null,
    'google_product_category' => '',
    'height' => '',
    'length' => '',
    'meta_description' => '',
    'name' => '',
    'package_format' => '',
    'page_title' => '',
    'permalink' => '',
    'price' => '',
    'shipping_required' => null,
    'sku' => '',
    'status' => '',
    'stock' => 0,
    'stock_unlimited' => null,
    'weight' => '',
    'width' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/products.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products.json"

querystring = {"login":"","authtoken":""}

payload = { "product": {
        "barcode": "",
        "categories": [
            {
                "id": 0,
                "name": "",
                "parent_id": 0,
                "permalink": ""
            }
        ],
        "description": "",
        "diameter": "",
        "featured": False,
        "google_product_category": "",
        "height": "",
        "length": "",
        "meta_description": "",
        "name": "",
        "package_format": "",
        "page_title": "",
        "permalink": "",
        "price": "",
        "shipping_required": False,
        "sku": "",
        "status": "",
        "stock": 0,
        "stock_unlimited": False,
        "weight": "",
        "width": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products.json?login=&authtoken=")

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  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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/products.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"product": json!({
            "barcode": "",
            "categories": (
                json!({
                    "id": 0,
                    "name": "",
                    "parent_id": 0,
                    "permalink": ""
                })
            ),
            "description": "",
            "diameter": "",
            "featured": false,
            "google_product_category": "",
            "height": "",
            "length": "",
            "meta_description": "",
            "name": "",
            "package_format": "",
            "page_title": "",
            "permalink": "",
            "price": "",
            "shipping_required": false,
            "sku": "",
            "status": "",
            "stock": 0,
            "stock_unlimited": false,
            "weight": "",
            "width": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/products.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}'
echo '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}' |  \
  http POST '{{baseUrl}}/products.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "product": {\n    "barcode": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "parent_id": 0,\n        "permalink": ""\n      }\n    ],\n    "description": "",\n    "diameter": "",\n    "featured": false,\n    "google_product_category": "",\n    "height": "",\n    "length": "",\n    "meta_description": "",\n    "name": "",\n    "package_format": "",\n    "page_title": "",\n    "permalink": "",\n    "price": "",\n    "shipping_required": false,\n    "sku": "",\n    "status": "",\n    "stock": 0,\n    "stock_unlimited": false,\n    "weight": "",\n    "width": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["product": [
    "barcode": "",
    "categories": [
      [
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      ]
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products.json?login=&authtoken=")! 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()
DELETE Delete an existing Product.
{{baseUrl}}/products/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/products/:id.json" {:query-params {:login ""
                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id.json?login=&authtoken="

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}}/products/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id.json?login=&authtoken="

	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/products/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/products/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id.json?login=&authtoken="))
    .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}}/products/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .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}}/products/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/products/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id.json?login=&authtoken=';
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}}/products/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id.json?login=&authtoken=',
  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}}/products/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/products/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id.json?login=&authtoken=';
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}}/products/:id.json?login=&authtoken="]
                                                       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}}/products/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id.json?login=&authtoken=",
  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}}/products/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/products/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id.json?login=&authtoken=")

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/products/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/products/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/products/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/products/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id.json?login=&authtoken=")! 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()
PUT Modify an existing Product.
{{baseUrl}}/products/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id.json?login=&authtoken=");

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  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/products/:id.json" {:query-params {:login ""
                                                                            :authtoken ""}
                                                             :content-type :json
                                                             :form-params {:product {:barcode ""
                                                                                     :categories [{:id 0
                                                                                                   :name ""
                                                                                                   :parent_id 0
                                                                                                   :permalink ""}]
                                                                                     :description ""
                                                                                     :diameter ""
                                                                                     :featured false
                                                                                     :google_product_category ""
                                                                                     :height ""
                                                                                     :length ""
                                                                                     :meta_description ""
                                                                                     :name ""
                                                                                     :package_format ""
                                                                                     :page_title ""
                                                                                     :permalink ""
                                                                                     :price ""
                                                                                     :shipping_required false
                                                                                     :sku ""
                                                                                     :status ""
                                                                                     :stock 0
                                                                                     :stock_unlimited false
                                                                                     :weight ""
                                                                                     :width ""}}})
require "http/client"

url = "{{baseUrl}}/products/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/products/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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}}/products/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/products/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 581

{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/products/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  product: {
    barcode: '',
    categories: [
      {
        id: 0,
        name: '',
        parent_id: 0,
        permalink: ''
      }
    ],
    description: '',
    diameter: '',
    featured: false,
    google_product_category: '',
    height: '',
    length: '',
    meta_description: '',
    name: '',
    package_format: '',
    page_title: '',
    permalink: '',
    price: '',
    shipping_required: false,
    sku: '',
    status: '',
    stock: 0,
    stock_unlimited: false,
    weight: '',
    width: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/products/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    product: {
      barcode: '',
      categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
      description: '',
      diameter: '',
      featured: false,
      google_product_category: '',
      height: '',
      length: '',
      meta_description: '',
      name: '',
      package_format: '',
      page_title: '',
      permalink: '',
      price: '',
      shipping_required: false,
      sku: '',
      status: '',
      stock: 0,
      stock_unlimited: false,
      weight: '',
      width: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"product":{"barcode":"","categories":[{"id":0,"name":"","parent_id":0,"permalink":""}],"description":"","diameter":"","featured":false,"google_product_category":"","height":"","length":"","meta_description":"","name":"","package_format":"","page_title":"","permalink":"","price":"","shipping_required":false,"sku":"","status":"","stock":0,"stock_unlimited":false,"weight":"","width":""}}'
};

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}}/products/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "product": {\n    "barcode": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "parent_id": 0,\n        "permalink": ""\n      }\n    ],\n    "description": "",\n    "diameter": "",\n    "featured": false,\n    "google_product_category": "",\n    "height": "",\n    "length": "",\n    "meta_description": "",\n    "name": "",\n    "package_format": "",\n    "page_title": "",\n    "permalink": "",\n    "price": "",\n    "shipping_required": false,\n    "sku": "",\n    "status": "",\n    "stock": 0,\n    "stock_unlimited": false,\n    "weight": "",\n    "width": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id.json?login=&authtoken=',
  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({
  product: {
    barcode: '',
    categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
    description: '',
    diameter: '',
    featured: false,
    google_product_category: '',
    height: '',
    length: '',
    meta_description: '',
    name: '',
    package_format: '',
    page_title: '',
    permalink: '',
    price: '',
    shipping_required: false,
    sku: '',
    status: '',
    stock: 0,
    stock_unlimited: false,
    weight: '',
    width: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    product: {
      barcode: '',
      categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
      description: '',
      diameter: '',
      featured: false,
      google_product_category: '',
      height: '',
      length: '',
      meta_description: '',
      name: '',
      package_format: '',
      page_title: '',
      permalink: '',
      price: '',
      shipping_required: false,
      sku: '',
      status: '',
      stock: 0,
      stock_unlimited: false,
      weight: '',
      width: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/products/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  product: {
    barcode: '',
    categories: [
      {
        id: 0,
        name: '',
        parent_id: 0,
        permalink: ''
      }
    ],
    description: '',
    diameter: '',
    featured: false,
    google_product_category: '',
    height: '',
    length: '',
    meta_description: '',
    name: '',
    package_format: '',
    page_title: '',
    permalink: '',
    price: '',
    shipping_required: false,
    sku: '',
    status: '',
    stock: 0,
    stock_unlimited: false,
    weight: '',
    width: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/products/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    product: {
      barcode: '',
      categories: [{id: 0, name: '', parent_id: 0, permalink: ''}],
      description: '',
      diameter: '',
      featured: false,
      google_product_category: '',
      height: '',
      length: '',
      meta_description: '',
      name: '',
      package_format: '',
      page_title: '',
      permalink: '',
      price: '',
      shipping_required: false,
      sku: '',
      status: '',
      stock: 0,
      stock_unlimited: false,
      weight: '',
      width: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"product":{"barcode":"","categories":[{"id":0,"name":"","parent_id":0,"permalink":""}],"description":"","diameter":"","featured":false,"google_product_category":"","height":"","length":"","meta_description":"","name":"","package_format":"","page_title":"","permalink":"","price":"","shipping_required":false,"sku":"","status":"","stock":0,"stock_unlimited":false,"weight":"","width":""}}'
};

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 = @{ @"product": @{ @"barcode": @"", @"categories": @[ @{ @"id": @0, @"name": @"", @"parent_id": @0, @"permalink": @"" } ], @"description": @"", @"diameter": @"", @"featured": @NO, @"google_product_category": @"", @"height": @"", @"length": @"", @"meta_description": @"", @"name": @"", @"package_format": @"", @"page_title": @"", @"permalink": @"", @"price": @"", @"shipping_required": @NO, @"sku": @"", @"status": @"", @"stock": @0, @"stock_unlimited": @NO, @"weight": @"", @"width": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/products/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/products/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'product' => [
        'barcode' => '',
        'categories' => [
                [
                                'id' => 0,
                                'name' => '',
                                'parent_id' => 0,
                                'permalink' => ''
                ]
        ],
        'description' => '',
        'diameter' => '',
        'featured' => null,
        'google_product_category' => '',
        'height' => '',
        'length' => '',
        'meta_description' => '',
        'name' => '',
        'package_format' => '',
        'page_title' => '',
        'permalink' => '',
        'price' => '',
        'shipping_required' => null,
        'sku' => '',
        'status' => '',
        'stock' => 0,
        'stock_unlimited' => null,
        'weight' => '',
        'width' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/products/:id.json?login=&authtoken=', [
  'body' => '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'product' => [
    'barcode' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'parent_id' => 0,
                'permalink' => ''
        ]
    ],
    'description' => '',
    'diameter' => '',
    'featured' => null,
    'google_product_category' => '',
    'height' => '',
    'length' => '',
    'meta_description' => '',
    'name' => '',
    'package_format' => '',
    'page_title' => '',
    'permalink' => '',
    'price' => '',
    'shipping_required' => null,
    'sku' => '',
    'status' => '',
    'stock' => 0,
    'stock_unlimited' => null,
    'weight' => '',
    'width' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'product' => [
    'barcode' => '',
    'categories' => [
        [
                'id' => 0,
                'name' => '',
                'parent_id' => 0,
                'permalink' => ''
        ]
    ],
    'description' => '',
    'diameter' => '',
    'featured' => null,
    'google_product_category' => '',
    'height' => '',
    'length' => '',
    'meta_description' => '',
    'name' => '',
    'package_format' => '',
    'page_title' => '',
    'permalink' => '',
    'price' => '',
    'shipping_required' => null,
    'sku' => '',
    'status' => '',
    'stock' => 0,
    'stock_unlimited' => null,
    'weight' => '',
    'width' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/products/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/products/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/products/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "product": {
        "barcode": "",
        "categories": [
            {
                "id": 0,
                "name": "",
                "parent_id": 0,
                "permalink": ""
            }
        ],
        "description": "",
        "diameter": "",
        "featured": False,
        "google_product_category": "",
        "height": "",
        "length": "",
        "meta_description": "",
        "name": "",
        "package_format": "",
        "page_title": "",
        "permalink": "",
        "price": "",
        "shipping_required": False,
        "sku": "",
        "status": "",
        "stock": 0,
        "stock_unlimited": False,
        "weight": "",
        "width": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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.put('/baseUrl/products/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"product\": {\n    \"barcode\": \"\",\n    \"categories\": [\n      {\n        \"id\": 0,\n        \"name\": \"\",\n        \"parent_id\": 0,\n        \"permalink\": \"\"\n      }\n    ],\n    \"description\": \"\",\n    \"diameter\": \"\",\n    \"featured\": false,\n    \"google_product_category\": \"\",\n    \"height\": \"\",\n    \"length\": \"\",\n    \"meta_description\": \"\",\n    \"name\": \"\",\n    \"package_format\": \"\",\n    \"page_title\": \"\",\n    \"permalink\": \"\",\n    \"price\": \"\",\n    \"shipping_required\": false,\n    \"sku\": \"\",\n    \"status\": \"\",\n    \"stock\": 0,\n    \"stock_unlimited\": false,\n    \"weight\": \"\",\n    \"width\": \"\"\n  }\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}}/products/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"product": json!({
            "barcode": "",
            "categories": (
                json!({
                    "id": 0,
                    "name": "",
                    "parent_id": 0,
                    "permalink": ""
                })
            ),
            "description": "",
            "diameter": "",
            "featured": false,
            "google_product_category": "",
            "height": "",
            "length": "",
            "meta_description": "",
            "name": "",
            "package_format": "",
            "page_title": "",
            "permalink": "",
            "price": "",
            "shipping_required": false,
            "sku": "",
            "status": "",
            "stock": 0,
            "stock_unlimited": false,
            "weight": "",
            "width": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/products/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}'
echo '{
  "product": {
    "barcode": "",
    "categories": [
      {
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      }
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  }
}' |  \
  http PUT '{{baseUrl}}/products/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "product": {\n    "barcode": "",\n    "categories": [\n      {\n        "id": 0,\n        "name": "",\n        "parent_id": 0,\n        "permalink": ""\n      }\n    ],\n    "description": "",\n    "diameter": "",\n    "featured": false,\n    "google_product_category": "",\n    "height": "",\n    "length": "",\n    "meta_description": "",\n    "name": "",\n    "package_format": "",\n    "page_title": "",\n    "permalink": "",\n    "price": "",\n    "shipping_required": false,\n    "sku": "",\n    "status": "",\n    "stock": 0,\n    "stock_unlimited": false,\n    "weight": "",\n    "width": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/products/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["product": [
    "barcode": "",
    "categories": [
      [
        "id": 0,
        "name": "",
        "parent_id": 0,
        "permalink": ""
      ]
    ],
    "description": "",
    "diameter": "",
    "featured": false,
    "google_product_category": "",
    "height": "",
    "length": "",
    "meta_description": "",
    "name": "",
    "package_format": "",
    "page_title": "",
    "permalink": "",
    "price": "",
    "shipping_required": false,
    "sku": "",
    "status": "",
    "stock": 0,
    "stock_unlimited": false,
    "weight": "",
    "width": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve Products filtered by category.
{{baseUrl}}/products/category/:category_id.json
QUERY PARAMS

login
authtoken
category_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/category/:category_id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/category/:category_id.json" {:query-params {:login ""
                                                                                              :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/category/:category_id.json?login=&authtoken="

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}}/products/category/:category_id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/category/:category_id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/category/:category_id.json?login=&authtoken="

	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/products/category/:category_id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/category/:category_id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/category/:category_id.json?login=&authtoken="))
    .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}}/products/category/:category_id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/category/:category_id.json?login=&authtoken=")
  .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}}/products/category/:category_id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/category/:category_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/category/:category_id.json?login=&authtoken=';
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}}/products/category/:category_id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/category/:category_id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/category/:category_id.json?login=&authtoken=',
  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}}/products/category/:category_id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/category/:category_id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/category/:category_id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/category/:category_id.json?login=&authtoken=';
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}}/products/category/:category_id.json?login=&authtoken="]
                                                       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}}/products/category/:category_id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/category/:category_id.json?login=&authtoken=",
  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}}/products/category/:category_id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/category/:category_id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/category/:category_id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/category/:category_id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/category/:category_id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/category/:category_id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/category/:category_id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/category/:category_id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/category/:category_id.json?login=&authtoken=")

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/products/category/:category_id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/category/:category_id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/category/:category_id.json?login=&authtoken='
http GET '{{baseUrl}}/products/category/:category_id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/category/:category_id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/category/:category_id.json?login=&authtoken=")! 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 Retrieve Products filtered by status.
{{baseUrl}}/products/status/:status.json
QUERY PARAMS

login
authtoken
status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/status/:status.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/status/:status.json" {:query-params {:login ""
                                                                                       :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/status/:status.json?login=&authtoken="

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}}/products/status/:status.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/status/:status.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/status/:status.json?login=&authtoken="

	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/products/status/:status.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/status/:status.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/status/:status.json?login=&authtoken="))
    .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}}/products/status/:status.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/status/:status.json?login=&authtoken=")
  .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}}/products/status/:status.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/status/:status.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/status/:status.json?login=&authtoken=';
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}}/products/status/:status.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/status/:status.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/status/:status.json?login=&authtoken=',
  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}}/products/status/:status.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/status/:status.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/status/:status.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/status/:status.json?login=&authtoken=';
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}}/products/status/:status.json?login=&authtoken="]
                                                       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}}/products/status/:status.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/status/:status.json?login=&authtoken=",
  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}}/products/status/:status.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/status/:status.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/status/:status.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/status/:status.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/status/:status.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/status/:status.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/status/:status.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/status/:status.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/status/:status.json?login=&authtoken=")

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/products/status/:status.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/status/:status.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/status/:status.json?login=&authtoken='
http GET '{{baseUrl}}/products/status/:status.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/status/:status.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/status/:status.json?login=&authtoken=")! 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 Retrieve a Product List from a query.
{{baseUrl}}/products/search.json
QUERY PARAMS

login
authtoken
query
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/search.json?login=&authtoken=&query=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/search.json" {:query-params {:login ""
                                                                               :authtoken ""
                                                                               :query ""}})
require "http/client"

url = "{{baseUrl}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&query="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/search.json?login=&authtoken=&query=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/search.json?login=&authtoken=&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/products/search.json?login=&authtoken=&query= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/search.json?login=&authtoken=&query=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&query=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&query=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/search.json',
  params: {login: '', authtoken: '', query: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&query=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/search.json?login=&authtoken=&query=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/search.json?login=&authtoken=&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}}/products/search.json',
  qs: {login: '', authtoken: '', 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}}/products/search.json');

req.query({
  login: '',
  authtoken: '',
  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}}/products/search.json',
  params: {login: '', authtoken: '', query: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&query=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/search.json?login=&authtoken=&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}}/products/search.json?login=&authtoken=&query=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/search.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => '',
  'query' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/search.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => '',
  'query' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/search.json?login=&authtoken=&query=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/search.json?login=&authtoken=&query=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/search.json?login=&authtoken=&query=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/search.json"

querystring = {"login":"","authtoken":"","query":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/search.json"

queryString <- list(
  login = "",
  authtoken = "",
  query = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/search.json?login=&authtoken=&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/products/search.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.params['query'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/search.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
        ("query", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/search.json?login=&authtoken=&query='
http GET '{{baseUrl}}/products/search.json?login=&authtoken=&query='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/search.json?login=&authtoken=&query='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/search.json?login=&authtoken=&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 Retrieve a single Product.
{{baseUrl}}/products/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/:id.json" {:query-params {:login ""
                                                                            :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/:id.json?login=&authtoken="

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}}/products/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/:id.json?login=&authtoken="

	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/products/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/:id.json?login=&authtoken="))
    .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}}/products/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .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}}/products/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/:id.json?login=&authtoken=';
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}}/products/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/:id.json?login=&authtoken=',
  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}}/products/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/:id.json?login=&authtoken=';
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}}/products/:id.json?login=&authtoken="]
                                                       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}}/products/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/:id.json?login=&authtoken=",
  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}}/products/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/:id.json?login=&authtoken=")

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/products/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/:id.json?login=&authtoken='
http GET '{{baseUrl}}/products/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/:id.json?login=&authtoken=")! 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 Retrieve all Products.
{{baseUrl}}/products.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products.json" {:query-params {:login ""
                                                                        :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products.json?login=&authtoken="

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}}/products.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products.json?login=&authtoken="

	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/products.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products.json?login=&authtoken="))
    .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}}/products.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products.json?login=&authtoken=")
  .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}}/products.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products.json?login=&authtoken=';
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}}/products.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products.json?login=&authtoken=',
  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}}/products.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products.json?login=&authtoken=';
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}}/products.json?login=&authtoken="]
                                                       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}}/products.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products.json?login=&authtoken=",
  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}}/products.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products.json?login=&authtoken=")

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/products.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products.json?login=&authtoken='
http GET '{{baseUrl}}/products.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products.json?login=&authtoken=")! 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 Retrieves Products after the given id.
{{baseUrl}}/products/after/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/products/after/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/products/after/:id.json" {:query-params {:login ""
                                                                                  :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/products/after/:id.json?login=&authtoken="

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}}/products/after/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/products/after/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/products/after/:id.json?login=&authtoken="

	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/products/after/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/products/after/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/products/after/:id.json?login=&authtoken="))
    .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}}/products/after/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/products/after/:id.json?login=&authtoken=")
  .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}}/products/after/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/products/after/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/products/after/:id.json?login=&authtoken=';
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}}/products/after/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/products/after/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/products/after/:id.json?login=&authtoken=',
  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}}/products/after/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/products/after/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/products/after/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/products/after/:id.json?login=&authtoken=';
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}}/products/after/:id.json?login=&authtoken="]
                                                       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}}/products/after/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/products/after/:id.json?login=&authtoken=",
  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}}/products/after/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/products/after/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/products/after/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/products/after/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/products/after/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/products/after/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/products/after/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/products/after/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/products/after/:id.json?login=&authtoken=")

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/products/after/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/products/after/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/products/after/:id.json?login=&authtoken='
http GET '{{baseUrl}}/products/after/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/products/after/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/products/after/:id.json?login=&authtoken=")! 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 Create a new Promotion.
{{baseUrl}}/promotions.json
QUERY PARAMS

login
authtoken
BODY json

{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/promotions.json?login=&authtoken=");

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  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/promotions.json" {:query-params {:login ""
                                                                           :authtoken ""}
                                                            :content-type :json
                                                            :form-params {:promotion {:begins_at ""
                                                                                      :buys_at_least ""
                                                                                      :categories []
                                                                                      :code ""
                                                                                      :condition_price ""
                                                                                      :condition_qty 0
                                                                                      :cumulative false
                                                                                      :customer_categories []
                                                                                      :customers ""
                                                                                      :discount_amount_fix ""
                                                                                      :discount_amount_percent ""
                                                                                      :discount_target ""
                                                                                      :enabled false
                                                                                      :expires_at ""
                                                                                      :lasts ""
                                                                                      :max_times_used 0
                                                                                      :name ""
                                                                                      :products []
                                                                                      :products_x []
                                                                                      :quantity_x 0
                                                                                      :type ""}}})
require "http/client"

url = "{{baseUrl}}/promotions.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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}}/promotions.json?login=&authtoken="),
    Content = new StringContent("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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}}/promotions.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/promotions.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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/promotions.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 509

{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/promotions.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/promotions.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/promotions.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/promotions.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  promotion: {
    begins_at: '',
    buys_at_least: '',
    categories: [],
    code: '',
    condition_price: '',
    condition_qty: 0,
    cumulative: false,
    customer_categories: [],
    customers: '',
    discount_amount_fix: '',
    discount_amount_percent: '',
    discount_target: '',
    enabled: false,
    expires_at: '',
    lasts: '',
    max_times_used: 0,
    name: '',
    products: [],
    products_x: [],
    quantity_x: 0,
    type: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/promotions.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/promotions.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    promotion: {
      begins_at: '',
      buys_at_least: '',
      categories: [],
      code: '',
      condition_price: '',
      condition_qty: 0,
      cumulative: false,
      customer_categories: [],
      customers: '',
      discount_amount_fix: '',
      discount_amount_percent: '',
      discount_target: '',
      enabled: false,
      expires_at: '',
      lasts: '',
      max_times_used: 0,
      name: '',
      products: [],
      products_x: [],
      quantity_x: 0,
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/promotions.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"promotion":{"begins_at":"","buys_at_least":"","categories":[],"code":"","condition_price":"","condition_qty":0,"cumulative":false,"customer_categories":[],"customers":"","discount_amount_fix":"","discount_amount_percent":"","discount_target":"","enabled":false,"expires_at":"","lasts":"","max_times_used":0,"name":"","products":[],"products_x":[],"quantity_x":0,"type":""}}'
};

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}}/promotions.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "promotion": {\n    "begins_at": "",\n    "buys_at_least": "",\n    "categories": [],\n    "code": "",\n    "condition_price": "",\n    "condition_qty": 0,\n    "cumulative": false,\n    "customer_categories": [],\n    "customers": "",\n    "discount_amount_fix": "",\n    "discount_amount_percent": "",\n    "discount_target": "",\n    "enabled": false,\n    "expires_at": "",\n    "lasts": "",\n    "max_times_used": 0,\n    "name": "",\n    "products": [],\n    "products_x": [],\n    "quantity_x": 0,\n    "type": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/promotions.json?login=&authtoken=")
  .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/promotions.json?login=&authtoken=',
  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({
  promotion: {
    begins_at: '',
    buys_at_least: '',
    categories: [],
    code: '',
    condition_price: '',
    condition_qty: 0,
    cumulative: false,
    customer_categories: [],
    customers: '',
    discount_amount_fix: '',
    discount_amount_percent: '',
    discount_target: '',
    enabled: false,
    expires_at: '',
    lasts: '',
    max_times_used: 0,
    name: '',
    products: [],
    products_x: [],
    quantity_x: 0,
    type: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/promotions.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    promotion: {
      begins_at: '',
      buys_at_least: '',
      categories: [],
      code: '',
      condition_price: '',
      condition_qty: 0,
      cumulative: false,
      customer_categories: [],
      customers: '',
      discount_amount_fix: '',
      discount_amount_percent: '',
      discount_target: '',
      enabled: false,
      expires_at: '',
      lasts: '',
      max_times_used: 0,
      name: '',
      products: [],
      products_x: [],
      quantity_x: 0,
      type: ''
    }
  },
  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}}/promotions.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  promotion: {
    begins_at: '',
    buys_at_least: '',
    categories: [],
    code: '',
    condition_price: '',
    condition_qty: 0,
    cumulative: false,
    customer_categories: [],
    customers: '',
    discount_amount_fix: '',
    discount_amount_percent: '',
    discount_target: '',
    enabled: false,
    expires_at: '',
    lasts: '',
    max_times_used: 0,
    name: '',
    products: [],
    products_x: [],
    quantity_x: 0,
    type: ''
  }
});

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}}/promotions.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    promotion: {
      begins_at: '',
      buys_at_least: '',
      categories: [],
      code: '',
      condition_price: '',
      condition_qty: 0,
      cumulative: false,
      customer_categories: [],
      customers: '',
      discount_amount_fix: '',
      discount_amount_percent: '',
      discount_target: '',
      enabled: false,
      expires_at: '',
      lasts: '',
      max_times_used: 0,
      name: '',
      products: [],
      products_x: [],
      quantity_x: 0,
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/promotions.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"promotion":{"begins_at":"","buys_at_least":"","categories":[],"code":"","condition_price":"","condition_qty":0,"cumulative":false,"customer_categories":[],"customers":"","discount_amount_fix":"","discount_amount_percent":"","discount_target":"","enabled":false,"expires_at":"","lasts":"","max_times_used":0,"name":"","products":[],"products_x":[],"quantity_x":0,"type":""}}'
};

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 = @{ @"promotion": @{ @"begins_at": @"", @"buys_at_least": @"", @"categories": @[  ], @"code": @"", @"condition_price": @"", @"condition_qty": @0, @"cumulative": @NO, @"customer_categories": @[  ], @"customers": @"", @"discount_amount_fix": @"", @"discount_amount_percent": @"", @"discount_target": @"", @"enabled": @NO, @"expires_at": @"", @"lasts": @"", @"max_times_used": @0, @"name": @"", @"products": @[  ], @"products_x": @[  ], @"quantity_x": @0, @"type": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/promotions.json?login=&authtoken="]
                                                       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}}/promotions.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/promotions.json?login=&authtoken=",
  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([
    'promotion' => [
        'begins_at' => '',
        'buys_at_least' => '',
        'categories' => [
                
        ],
        'code' => '',
        'condition_price' => '',
        'condition_qty' => 0,
        'cumulative' => null,
        'customer_categories' => [
                
        ],
        'customers' => '',
        'discount_amount_fix' => '',
        'discount_amount_percent' => '',
        'discount_target' => '',
        'enabled' => null,
        'expires_at' => '',
        'lasts' => '',
        'max_times_used' => 0,
        'name' => '',
        'products' => [
                
        ],
        'products_x' => [
                
        ],
        'quantity_x' => 0,
        'type' => ''
    ]
  ]),
  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}}/promotions.json?login=&authtoken=', [
  'body' => '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/promotions.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'promotion' => [
    'begins_at' => '',
    'buys_at_least' => '',
    'categories' => [
        
    ],
    'code' => '',
    'condition_price' => '',
    'condition_qty' => 0,
    'cumulative' => null,
    'customer_categories' => [
        
    ],
    'customers' => '',
    'discount_amount_fix' => '',
    'discount_amount_percent' => '',
    'discount_target' => '',
    'enabled' => null,
    'expires_at' => '',
    'lasts' => '',
    'max_times_used' => 0,
    'name' => '',
    'products' => [
        
    ],
    'products_x' => [
        
    ],
    'quantity_x' => 0,
    'type' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'promotion' => [
    'begins_at' => '',
    'buys_at_least' => '',
    'categories' => [
        
    ],
    'code' => '',
    'condition_price' => '',
    'condition_qty' => 0,
    'cumulative' => null,
    'customer_categories' => [
        
    ],
    'customers' => '',
    'discount_amount_fix' => '',
    'discount_amount_percent' => '',
    'discount_target' => '',
    'enabled' => null,
    'expires_at' => '',
    'lasts' => '',
    'max_times_used' => 0,
    'name' => '',
    'products' => [
        
    ],
    'products_x' => [
        
    ],
    'quantity_x' => 0,
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/promotions.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/promotions.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/promotions.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/promotions.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/promotions.json"

querystring = {"login":"","authtoken":""}

payload = { "promotion": {
        "begins_at": "",
        "buys_at_least": "",
        "categories": [],
        "code": "",
        "condition_price": "",
        "condition_qty": 0,
        "cumulative": False,
        "customer_categories": [],
        "customers": "",
        "discount_amount_fix": "",
        "discount_amount_percent": "",
        "discount_target": "",
        "enabled": False,
        "expires_at": "",
        "lasts": "",
        "max_times_used": 0,
        "name": "",
        "products": [],
        "products_x": [],
        "quantity_x": 0,
        "type": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/promotions.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/promotions.json?login=&authtoken=")

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  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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/promotions.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/promotions.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"promotion": json!({
            "begins_at": "",
            "buys_at_least": "",
            "categories": (),
            "code": "",
            "condition_price": "",
            "condition_qty": 0,
            "cumulative": false,
            "customer_categories": (),
            "customers": "",
            "discount_amount_fix": "",
            "discount_amount_percent": "",
            "discount_target": "",
            "enabled": false,
            "expires_at": "",
            "lasts": "",
            "max_times_used": 0,
            "name": "",
            "products": (),
            "products_x": (),
            "quantity_x": 0,
            "type": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/promotions.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}'
echo '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}' |  \
  http POST '{{baseUrl}}/promotions.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "promotion": {\n    "begins_at": "",\n    "buys_at_least": "",\n    "categories": [],\n    "code": "",\n    "condition_price": "",\n    "condition_qty": 0,\n    "cumulative": false,\n    "customer_categories": [],\n    "customers": "",\n    "discount_amount_fix": "",\n    "discount_amount_percent": "",\n    "discount_target": "",\n    "enabled": false,\n    "expires_at": "",\n    "lasts": "",\n    "max_times_used": 0,\n    "name": "",\n    "products": [],\n    "products_x": [],\n    "quantity_x": 0,\n    "type": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/promotions.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["promotion": [
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/promotions.json?login=&authtoken=")! 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()
DELETE Delete an existing Promotion.
{{baseUrl}}/promotions/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/promotions/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/promotions/:id.json" {:query-params {:login ""
                                                                                 :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/promotions/:id.json?login=&authtoken="

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}}/promotions/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/promotions/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/promotions/:id.json?login=&authtoken="

	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/promotions/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/promotions/:id.json?login=&authtoken="))
    .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}}/promotions/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .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}}/promotions/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/promotions/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/promotions/:id.json?login=&authtoken=';
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}}/promotions/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/promotions/:id.json?login=&authtoken=',
  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}}/promotions/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/promotions/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/promotions/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/promotions/:id.json?login=&authtoken=';
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}}/promotions/:id.json?login=&authtoken="]
                                                       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}}/promotions/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/promotions/:id.json?login=&authtoken=",
  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}}/promotions/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/promotions/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/promotions/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/promotions/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/promotions/:id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/promotions/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/promotions/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/promotions/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/promotions/:id.json?login=&authtoken=")

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/promotions/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/promotions/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/promotions/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/promotions/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/promotions/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/promotions/:id.json?login=&authtoken=")! 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()
GET Retrieve a single Promotion.
{{baseUrl}}/promotions/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/promotions/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/promotions/:id.json" {:query-params {:login ""
                                                                              :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/promotions/:id.json?login=&authtoken="

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}}/promotions/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/promotions/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/promotions/:id.json?login=&authtoken="

	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/promotions/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/promotions/:id.json?login=&authtoken="))
    .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}}/promotions/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .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}}/promotions/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/promotions/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/promotions/:id.json?login=&authtoken=';
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}}/promotions/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/promotions/:id.json?login=&authtoken=',
  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}}/promotions/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/promotions/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/promotions/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/promotions/:id.json?login=&authtoken=';
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}}/promotions/:id.json?login=&authtoken="]
                                                       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}}/promotions/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/promotions/:id.json?login=&authtoken=",
  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}}/promotions/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/promotions/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/promotions/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/promotions/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/promotions/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/promotions/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/promotions/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/promotions/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/promotions/:id.json?login=&authtoken=")

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/promotions/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/promotions/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/promotions/:id.json?login=&authtoken='
http GET '{{baseUrl}}/promotions/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/promotions/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/promotions/:id.json?login=&authtoken=")! 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 Retrieve all Promotions.
{{baseUrl}}/promotions.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/promotions.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/promotions.json" {:query-params {:login ""
                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/promotions.json?login=&authtoken="

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}}/promotions.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/promotions.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/promotions.json?login=&authtoken="

	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/promotions.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/promotions.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/promotions.json?login=&authtoken="))
    .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}}/promotions.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/promotions.json?login=&authtoken=")
  .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}}/promotions.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/promotions.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/promotions.json?login=&authtoken=';
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}}/promotions.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/promotions.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/promotions.json?login=&authtoken=',
  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}}/promotions.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/promotions.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/promotions.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/promotions.json?login=&authtoken=';
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}}/promotions.json?login=&authtoken="]
                                                       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}}/promotions.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/promotions.json?login=&authtoken=",
  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}}/promotions.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/promotions.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/promotions.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/promotions.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/promotions.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/promotions.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/promotions.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/promotions.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/promotions.json?login=&authtoken=")

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/promotions.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/promotions.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/promotions.json?login=&authtoken='
http GET '{{baseUrl}}/promotions.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/promotions.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/promotions.json?login=&authtoken=")! 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()
PUT Update a Promotion.
{{baseUrl}}/promotions/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/promotions/:id.json?login=&authtoken=");

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  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/promotions/:id.json" {:query-params {:login ""
                                                                              :authtoken ""}
                                                               :content-type :json
                                                               :form-params {:promotion {:begins_at ""
                                                                                         :buys_at_least ""
                                                                                         :categories []
                                                                                         :code ""
                                                                                         :condition_price ""
                                                                                         :condition_qty 0
                                                                                         :cumulative false
                                                                                         :customer_categories []
                                                                                         :customers ""
                                                                                         :discount_amount_fix ""
                                                                                         :discount_amount_percent ""
                                                                                         :discount_target ""
                                                                                         :enabled false
                                                                                         :expires_at ""
                                                                                         :lasts ""
                                                                                         :max_times_used 0
                                                                                         :name ""
                                                                                         :products []
                                                                                         :products_x []
                                                                                         :quantity_x 0
                                                                                         :type ""}}})
require "http/client"

url = "{{baseUrl}}/promotions/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/promotions/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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}}/promotions/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/promotions/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/promotions/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 509

{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/promotions/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  promotion: {
    begins_at: '',
    buys_at_least: '',
    categories: [],
    code: '',
    condition_price: '',
    condition_qty: 0,
    cumulative: false,
    customer_categories: [],
    customers: '',
    discount_amount_fix: '',
    discount_amount_percent: '',
    discount_target: '',
    enabled: false,
    expires_at: '',
    lasts: '',
    max_times_used: 0,
    name: '',
    products: [],
    products_x: [],
    quantity_x: 0,
    type: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/promotions/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/promotions/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    promotion: {
      begins_at: '',
      buys_at_least: '',
      categories: [],
      code: '',
      condition_price: '',
      condition_qty: 0,
      cumulative: false,
      customer_categories: [],
      customers: '',
      discount_amount_fix: '',
      discount_amount_percent: '',
      discount_target: '',
      enabled: false,
      expires_at: '',
      lasts: '',
      max_times_used: 0,
      name: '',
      products: [],
      products_x: [],
      quantity_x: 0,
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/promotions/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"promotion":{"begins_at":"","buys_at_least":"","categories":[],"code":"","condition_price":"","condition_qty":0,"cumulative":false,"customer_categories":[],"customers":"","discount_amount_fix":"","discount_amount_percent":"","discount_target":"","enabled":false,"expires_at":"","lasts":"","max_times_used":0,"name":"","products":[],"products_x":[],"quantity_x":0,"type":""}}'
};

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}}/promotions/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "promotion": {\n    "begins_at": "",\n    "buys_at_least": "",\n    "categories": [],\n    "code": "",\n    "condition_price": "",\n    "condition_qty": 0,\n    "cumulative": false,\n    "customer_categories": [],\n    "customers": "",\n    "discount_amount_fix": "",\n    "discount_amount_percent": "",\n    "discount_target": "",\n    "enabled": false,\n    "expires_at": "",\n    "lasts": "",\n    "max_times_used": 0,\n    "name": "",\n    "products": [],\n    "products_x": [],\n    "quantity_x": 0,\n    "type": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/promotions/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/promotions/:id.json?login=&authtoken=',
  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({
  promotion: {
    begins_at: '',
    buys_at_least: '',
    categories: [],
    code: '',
    condition_price: '',
    condition_qty: 0,
    cumulative: false,
    customer_categories: [],
    customers: '',
    discount_amount_fix: '',
    discount_amount_percent: '',
    discount_target: '',
    enabled: false,
    expires_at: '',
    lasts: '',
    max_times_used: 0,
    name: '',
    products: [],
    products_x: [],
    quantity_x: 0,
    type: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/promotions/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    promotion: {
      begins_at: '',
      buys_at_least: '',
      categories: [],
      code: '',
      condition_price: '',
      condition_qty: 0,
      cumulative: false,
      customer_categories: [],
      customers: '',
      discount_amount_fix: '',
      discount_amount_percent: '',
      discount_target: '',
      enabled: false,
      expires_at: '',
      lasts: '',
      max_times_used: 0,
      name: '',
      products: [],
      products_x: [],
      quantity_x: 0,
      type: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/promotions/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  promotion: {
    begins_at: '',
    buys_at_least: '',
    categories: [],
    code: '',
    condition_price: '',
    condition_qty: 0,
    cumulative: false,
    customer_categories: [],
    customers: '',
    discount_amount_fix: '',
    discount_amount_percent: '',
    discount_target: '',
    enabled: false,
    expires_at: '',
    lasts: '',
    max_times_used: 0,
    name: '',
    products: [],
    products_x: [],
    quantity_x: 0,
    type: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/promotions/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    promotion: {
      begins_at: '',
      buys_at_least: '',
      categories: [],
      code: '',
      condition_price: '',
      condition_qty: 0,
      cumulative: false,
      customer_categories: [],
      customers: '',
      discount_amount_fix: '',
      discount_amount_percent: '',
      discount_target: '',
      enabled: false,
      expires_at: '',
      lasts: '',
      max_times_used: 0,
      name: '',
      products: [],
      products_x: [],
      quantity_x: 0,
      type: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/promotions/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"promotion":{"begins_at":"","buys_at_least":"","categories":[],"code":"","condition_price":"","condition_qty":0,"cumulative":false,"customer_categories":[],"customers":"","discount_amount_fix":"","discount_amount_percent":"","discount_target":"","enabled":false,"expires_at":"","lasts":"","max_times_used":0,"name":"","products":[],"products_x":[],"quantity_x":0,"type":""}}'
};

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 = @{ @"promotion": @{ @"begins_at": @"", @"buys_at_least": @"", @"categories": @[  ], @"code": @"", @"condition_price": @"", @"condition_qty": @0, @"cumulative": @NO, @"customer_categories": @[  ], @"customers": @"", @"discount_amount_fix": @"", @"discount_amount_percent": @"", @"discount_target": @"", @"enabled": @NO, @"expires_at": @"", @"lasts": @"", @"max_times_used": @0, @"name": @"", @"products": @[  ], @"products_x": @[  ], @"quantity_x": @0, @"type": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/promotions/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/promotions/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/promotions/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'promotion' => [
        'begins_at' => '',
        'buys_at_least' => '',
        'categories' => [
                
        ],
        'code' => '',
        'condition_price' => '',
        'condition_qty' => 0,
        'cumulative' => null,
        'customer_categories' => [
                
        ],
        'customers' => '',
        'discount_amount_fix' => '',
        'discount_amount_percent' => '',
        'discount_target' => '',
        'enabled' => null,
        'expires_at' => '',
        'lasts' => '',
        'max_times_used' => 0,
        'name' => '',
        'products' => [
                
        ],
        'products_x' => [
                
        ],
        'quantity_x' => 0,
        'type' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/promotions/:id.json?login=&authtoken=', [
  'body' => '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/promotions/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'promotion' => [
    'begins_at' => '',
    'buys_at_least' => '',
    'categories' => [
        
    ],
    'code' => '',
    'condition_price' => '',
    'condition_qty' => 0,
    'cumulative' => null,
    'customer_categories' => [
        
    ],
    'customers' => '',
    'discount_amount_fix' => '',
    'discount_amount_percent' => '',
    'discount_target' => '',
    'enabled' => null,
    'expires_at' => '',
    'lasts' => '',
    'max_times_used' => 0,
    'name' => '',
    'products' => [
        
    ],
    'products_x' => [
        
    ],
    'quantity_x' => 0,
    'type' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'promotion' => [
    'begins_at' => '',
    'buys_at_least' => '',
    'categories' => [
        
    ],
    'code' => '',
    'condition_price' => '',
    'condition_qty' => 0,
    'cumulative' => null,
    'customer_categories' => [
        
    ],
    'customers' => '',
    'discount_amount_fix' => '',
    'discount_amount_percent' => '',
    'discount_target' => '',
    'enabled' => null,
    'expires_at' => '',
    'lasts' => '',
    'max_times_used' => 0,
    'name' => '',
    'products' => [
        
    ],
    'products_x' => [
        
    ],
    'quantity_x' => 0,
    'type' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/promotions/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/promotions/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/promotions/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/promotions/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/promotions/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "promotion": {
        "begins_at": "",
        "buys_at_least": "",
        "categories": [],
        "code": "",
        "condition_price": "",
        "condition_qty": 0,
        "cumulative": False,
        "customer_categories": [],
        "customers": "",
        "discount_amount_fix": "",
        "discount_amount_percent": "",
        "discount_target": "",
        "enabled": False,
        "expires_at": "",
        "lasts": "",
        "max_times_used": 0,
        "name": "",
        "products": [],
        "products_x": [],
        "quantity_x": 0,
        "type": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/promotions/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/promotions/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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.put('/baseUrl/promotions/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"promotion\": {\n    \"begins_at\": \"\",\n    \"buys_at_least\": \"\",\n    \"categories\": [],\n    \"code\": \"\",\n    \"condition_price\": \"\",\n    \"condition_qty\": 0,\n    \"cumulative\": false,\n    \"customer_categories\": [],\n    \"customers\": \"\",\n    \"discount_amount_fix\": \"\",\n    \"discount_amount_percent\": \"\",\n    \"discount_target\": \"\",\n    \"enabled\": false,\n    \"expires_at\": \"\",\n    \"lasts\": \"\",\n    \"max_times_used\": 0,\n    \"name\": \"\",\n    \"products\": [],\n    \"products_x\": [],\n    \"quantity_x\": 0,\n    \"type\": \"\"\n  }\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}}/promotions/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"promotion": json!({
            "begins_at": "",
            "buys_at_least": "",
            "categories": (),
            "code": "",
            "condition_price": "",
            "condition_qty": 0,
            "cumulative": false,
            "customer_categories": (),
            "customers": "",
            "discount_amount_fix": "",
            "discount_amount_percent": "",
            "discount_target": "",
            "enabled": false,
            "expires_at": "",
            "lasts": "",
            "max_times_used": 0,
            "name": "",
            "products": (),
            "products_x": (),
            "quantity_x": 0,
            "type": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/promotions/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}'
echo '{
  "promotion": {
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  }
}' |  \
  http PUT '{{baseUrl}}/promotions/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "promotion": {\n    "begins_at": "",\n    "buys_at_least": "",\n    "categories": [],\n    "code": "",\n    "condition_price": "",\n    "condition_qty": 0,\n    "cumulative": false,\n    "customer_categories": [],\n    "customers": "",\n    "discount_amount_fix": "",\n    "discount_amount_percent": "",\n    "discount_target": "",\n    "enabled": false,\n    "expires_at": "",\n    "lasts": "",\n    "max_times_used": 0,\n    "name": "",\n    "products": [],\n    "products_x": [],\n    "quantity_x": 0,\n    "type": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/promotions/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["promotion": [
    "begins_at": "",
    "buys_at_least": "",
    "categories": [],
    "code": "",
    "condition_price": "",
    "condition_qty": 0,
    "cumulative": false,
    "customer_categories": [],
    "customers": "",
    "discount_amount_fix": "",
    "discount_amount_percent": "",
    "discount_target": "",
    "enabled": false,
    "expires_at": "",
    "lasts": "",
    "max_times_used": 0,
    "name": "",
    "products": [],
    "products_x": [],
    "quantity_x": 0,
    "type": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/promotions/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Creates a Shipping Method.
{{baseUrl}}/shipping_methods.json
QUERY PARAMS

login
authtoken
BODY json

{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipping_methods.json?login=&authtoken=");

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  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/shipping_methods.json" {:query-params {:login ""
                                                                                 :authtoken ""}
                                                                  :content-type :json
                                                                  :form-params {:shipping_method {:callback_url ""
                                                                                                  :city ""
                                                                                                  :fetch_services_url ""
                                                                                                  :name ""
                                                                                                  :postal ""
                                                                                                  :state ""
                                                                                                  :token ""}}})
require "http/client"

url = "{{baseUrl}}/shipping_methods.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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}}/shipping_methods.json?login=&authtoken="),
    Content = new StringContent("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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}}/shipping_methods.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/shipping_methods.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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/shipping_methods.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 167

{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_methods.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  shipping_method: {
    callback_url: '',
    city: '',
    fetch_services_url: '',
    name: '',
    postal: '',
    state: '',
    token: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/shipping_methods.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shipping_methods.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    shipping_method: {
      callback_url: '',
      city: '',
      fetch_services_url: '',
      name: '',
      postal: '',
      state: '',
      token: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipping_methods.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"shipping_method":{"callback_url":"","city":"","fetch_services_url":"","name":"","postal":"","state":"","token":""}}'
};

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}}/shipping_methods.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "shipping_method": {\n    "callback_url": "",\n    "city": "",\n    "fetch_services_url": "",\n    "name": "",\n    "postal": "",\n    "state": "",\n    "token": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .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/shipping_methods.json?login=&authtoken=',
  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({
  shipping_method: {
    callback_url: '',
    city: '',
    fetch_services_url: '',
    name: '',
    postal: '',
    state: '',
    token: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/shipping_methods.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    shipping_method: {
      callback_url: '',
      city: '',
      fetch_services_url: '',
      name: '',
      postal: '',
      state: '',
      token: ''
    }
  },
  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}}/shipping_methods.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  shipping_method: {
    callback_url: '',
    city: '',
    fetch_services_url: '',
    name: '',
    postal: '',
    state: '',
    token: ''
  }
});

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}}/shipping_methods.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    shipping_method: {
      callback_url: '',
      city: '',
      fetch_services_url: '',
      name: '',
      postal: '',
      state: '',
      token: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/shipping_methods.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"shipping_method":{"callback_url":"","city":"","fetch_services_url":"","name":"","postal":"","state":"","token":""}}'
};

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 = @{ @"shipping_method": @{ @"callback_url": @"", @"city": @"", @"fetch_services_url": @"", @"name": @"", @"postal": @"", @"state": @"", @"token": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/shipping_methods.json?login=&authtoken="]
                                                       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}}/shipping_methods.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipping_methods.json?login=&authtoken=",
  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([
    'shipping_method' => [
        'callback_url' => '',
        'city' => '',
        'fetch_services_url' => '',
        'name' => '',
        'postal' => '',
        'state' => '',
        'token' => ''
    ]
  ]),
  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}}/shipping_methods.json?login=&authtoken=', [
  'body' => '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/shipping_methods.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'shipping_method' => [
    'callback_url' => '',
    'city' => '',
    'fetch_services_url' => '',
    'name' => '',
    'postal' => '',
    'state' => '',
    'token' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'shipping_method' => [
    'callback_url' => '',
    'city' => '',
    'fetch_services_url' => '',
    'name' => '',
    'postal' => '',
    'state' => '',
    'token' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/shipping_methods.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/shipping_methods.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipping_methods.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/shipping_methods.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/shipping_methods.json"

querystring = {"login":"","authtoken":""}

payload = { "shipping_method": {
        "callback_url": "",
        "city": "",
        "fetch_services_url": "",
        "name": "",
        "postal": "",
        "state": "",
        "token": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/shipping_methods.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/shipping_methods.json?login=&authtoken=")

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  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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/shipping_methods.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/shipping_methods.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"shipping_method": json!({
            "callback_url": "",
            "city": "",
            "fetch_services_url": "",
            "name": "",
            "postal": "",
            "state": "",
            "token": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/shipping_methods.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}'
echo '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}' |  \
  http POST '{{baseUrl}}/shipping_methods.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "shipping_method": {\n    "callback_url": "",\n    "city": "",\n    "fetch_services_url": "",\n    "name": "",\n    "postal": "",\n    "state": "",\n    "token": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/shipping_methods.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["shipping_method": [
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shipping_methods.json?login=&authtoken=")! 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()
DELETE Delete an existing Shipping Method.
{{baseUrl}}/shipping_methods/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/shipping_methods/:id.json" {:query-params {:login ""
                                                                                       :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="

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}}/shipping_methods/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="

	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/shipping_methods/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="))
    .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}}/shipping_methods/:id.json?login=&authtoken=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .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}}/shipping_methods/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/shipping_methods/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=';
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}}/shipping_methods/:id.json?login=&authtoken=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/shipping_methods/:id.json?login=&authtoken=',
  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}}/shipping_methods/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/shipping_methods/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/shipping_methods/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=';
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}}/shipping_methods/:id.json?login=&authtoken="]
                                                       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}}/shipping_methods/:id.json?login=&authtoken=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=",
  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}}/shipping_methods/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/shipping_methods/:id.json');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/shipping_methods/:id.json');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/shipping_methods/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/shipping_methods/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/shipping_methods/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")

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/shipping_methods/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/shipping_methods/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
http DELETE '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")! 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()
GET Retrieve a single Shipping Method.
{{baseUrl}}/shipping_methods/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/shipping_methods/:id.json" {:query-params {:login ""
                                                                                    :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="

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}}/shipping_methods/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="

	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/shipping_methods/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="))
    .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}}/shipping_methods/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .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}}/shipping_methods/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/shipping_methods/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=';
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}}/shipping_methods/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/shipping_methods/:id.json?login=&authtoken=',
  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}}/shipping_methods/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/shipping_methods/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/shipping_methods/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=';
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}}/shipping_methods/:id.json?login=&authtoken="]
                                                       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}}/shipping_methods/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=",
  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}}/shipping_methods/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/shipping_methods/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/shipping_methods/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/shipping_methods/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/shipping_methods/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/shipping_methods/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")

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/shipping_methods/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/shipping_methods/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
http GET '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")! 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 Retrieve all Store's Shipping Methods.
{{baseUrl}}/shipping_methods.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipping_methods.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/shipping_methods.json" {:query-params {:login ""
                                                                                :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/shipping_methods.json?login=&authtoken="

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}}/shipping_methods.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/shipping_methods.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/shipping_methods.json?login=&authtoken="

	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/shipping_methods.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_methods.json?login=&authtoken="))
    .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}}/shipping_methods.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .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}}/shipping_methods.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/shipping_methods.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipping_methods.json?login=&authtoken=';
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}}/shipping_methods.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/shipping_methods.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/shipping_methods.json?login=&authtoken=',
  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}}/shipping_methods.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/shipping_methods.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/shipping_methods.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/shipping_methods.json?login=&authtoken=';
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}}/shipping_methods.json?login=&authtoken="]
                                                       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}}/shipping_methods.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipping_methods.json?login=&authtoken=",
  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}}/shipping_methods.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/shipping_methods.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/shipping_methods.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/shipping_methods.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipping_methods.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/shipping_methods.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/shipping_methods.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/shipping_methods.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/shipping_methods.json?login=&authtoken=")

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/shipping_methods.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/shipping_methods.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/shipping_methods.json?login=&authtoken='
http GET '{{baseUrl}}/shipping_methods.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/shipping_methods.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shipping_methods.json?login=&authtoken=")! 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()
PUT Update a Shipping Method.
{{baseUrl}}/shipping_methods/:id.json
QUERY PARAMS

login
authtoken
id
BODY json

{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=");

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  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/shipping_methods/:id.json" {:query-params {:login ""
                                                                                    :authtoken ""}
                                                                     :content-type :json
                                                                     :form-params {:shipping_method {:callback_url ""
                                                                                                     :city ""
                                                                                                     :fetch_services_url ""
                                                                                                     :name ""
                                                                                                     :postal ""
                                                                                                     :state ""
                                                                                                     :token ""}}})
require "http/client"

url = "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="),
    Content = new StringContent("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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}}/shipping_methods/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/shipping_methods/:id.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 167

{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  shipping_method: {
    callback_url: '',
    city: '',
    fetch_services_url: '',
    name: '',
    postal: '',
    state: '',
    token: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/shipping_methods/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    shipping_method: {
      callback_url: '',
      city: '',
      fetch_services_url: '',
      name: '',
      postal: '',
      state: '',
      token: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"shipping_method":{"callback_url":"","city":"","fetch_services_url":"","name":"","postal":"","state":"","token":""}}'
};

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}}/shipping_methods/:id.json?login=&authtoken=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "shipping_method": {\n    "callback_url": "",\n    "city": "",\n    "fetch_services_url": "",\n    "name": "",\n    "postal": "",\n    "state": "",\n    "token": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/shipping_methods/:id.json?login=&authtoken=',
  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({
  shipping_method: {
    callback_url: '',
    city: '',
    fetch_services_url: '',
    name: '',
    postal: '',
    state: '',
    token: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/shipping_methods/:id.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    shipping_method: {
      callback_url: '',
      city: '',
      fetch_services_url: '',
      name: '',
      postal: '',
      state: '',
      token: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/shipping_methods/:id.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  shipping_method: {
    callback_url: '',
    city: '',
    fetch_services_url: '',
    name: '',
    postal: '',
    state: '',
    token: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/shipping_methods/:id.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    shipping_method: {
      callback_url: '',
      city: '',
      fetch_services_url: '',
      name: '',
      postal: '',
      state: '',
      token: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"shipping_method":{"callback_url":"","city":"","fetch_services_url":"","name":"","postal":"","state":"","token":""}}'
};

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 = @{ @"shipping_method": @{ @"callback_url": @"", @"city": @"", @"fetch_services_url": @"", @"name": @"", @"postal": @"", @"state": @"", @"token": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/shipping_methods/:id.json?login=&authtoken="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/shipping_methods/:id.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'shipping_method' => [
        'callback_url' => '',
        'city' => '',
        'fetch_services_url' => '',
        'name' => '',
        'postal' => '',
        'state' => '',
        'token' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=', [
  'body' => '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/shipping_methods/:id.json');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'shipping_method' => [
    'callback_url' => '',
    'city' => '',
    'fetch_services_url' => '',
    'name' => '',
    'postal' => '',
    'state' => '',
    'token' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'shipping_method' => [
    'callback_url' => '',
    'city' => '',
    'fetch_services_url' => '',
    'name' => '',
    'postal' => '',
    'state' => '',
    'token' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/shipping_methods/:id.json');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/shipping_methods/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/shipping_methods/:id.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/shipping_methods/:id.json"

querystring = {"login":"","authtoken":""}

payload = { "shipping_method": {
        "callback_url": "",
        "city": "",
        "fetch_services_url": "",
        "name": "",
        "postal": "",
        "state": "",
        "token": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/shipping_methods/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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.put('/baseUrl/shipping_methods/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"shipping_method\": {\n    \"callback_url\": \"\",\n    \"city\": \"\",\n    \"fetch_services_url\": \"\",\n    \"name\": \"\",\n    \"postal\": \"\",\n    \"state\": \"\",\n    \"token\": \"\"\n  }\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}}/shipping_methods/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"shipping_method": json!({
            "callback_url": "",
            "city": "",
            "fetch_services_url": "",
            "name": "",
            "postal": "",
            "state": "",
            "token": ""
        })});

    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("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}'
echo '{
  "shipping_method": {
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  }
}' |  \
  http PUT '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "shipping_method": {\n    "callback_url": "",\n    "city": "",\n    "fetch_services_url": "",\n    "name": "",\n    "postal": "",\n    "state": "",\n    "token": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/shipping_methods/:id.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["shipping_method": [
    "callback_url": "",
    "city": "",
    "fetch_services_url": "",
    "name": "",
    "postal": "",
    "state": "",
    "token": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/shipping_methods/:id.json?login=&authtoken=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 Retrieve Store Information.
{{baseUrl}}/store/info.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/store/info.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/store/info.json" {:query-params {:login ""
                                                                          :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/store/info.json?login=&authtoken="

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}}/store/info.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/store/info.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/store/info.json?login=&authtoken="

	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/store/info.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/store/info.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/store/info.json?login=&authtoken="))
    .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}}/store/info.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/store/info.json?login=&authtoken=")
  .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}}/store/info.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/store/info.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/store/info.json?login=&authtoken=';
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}}/store/info.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/store/info.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/store/info.json?login=&authtoken=',
  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}}/store/info.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/store/info.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/store/info.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/store/info.json?login=&authtoken=';
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}}/store/info.json?login=&authtoken="]
                                                       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}}/store/info.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/store/info.json?login=&authtoken=",
  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}}/store/info.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/store/info.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/store/info.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/store/info.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/store/info.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/store/info.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/store/info.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/store/info.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/store/info.json?login=&authtoken=")

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/store/info.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/store/info.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/store/info.json?login=&authtoken='
http GET '{{baseUrl}}/store/info.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/store/info.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/store/info.json?login=&authtoken=")! 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 Retrieve Store Languages.
{{baseUrl}}/store/languages.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/store/languages.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/store/languages.json" {:query-params {:login ""
                                                                               :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/store/languages.json?login=&authtoken="

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}}/store/languages.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/store/languages.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/store/languages.json?login=&authtoken="

	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/store/languages.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/store/languages.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/store/languages.json?login=&authtoken="))
    .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}}/store/languages.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/store/languages.json?login=&authtoken=")
  .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}}/store/languages.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/store/languages.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/store/languages.json?login=&authtoken=';
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}}/store/languages.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/store/languages.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/store/languages.json?login=&authtoken=',
  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}}/store/languages.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/store/languages.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/store/languages.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/store/languages.json?login=&authtoken=';
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}}/store/languages.json?login=&authtoken="]
                                                       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}}/store/languages.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/store/languages.json?login=&authtoken=",
  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}}/store/languages.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/store/languages.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/store/languages.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/store/languages.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/store/languages.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/store/languages.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/store/languages.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/store/languages.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/store/languages.json?login=&authtoken=")

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/store/languages.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/store/languages.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/store/languages.json?login=&authtoken='
http GET '{{baseUrl}}/store/languages.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/store/languages.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/store/languages.json?login=&authtoken=")! 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 Create a new Tax.
{{baseUrl}}/taxes.json
QUERY PARAMS

login
authtoken
BODY json

{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/taxes.json?login=&authtoken=");

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  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/taxes.json" {:query-params {:login ""
                                                                      :authtoken ""}
                                                       :content-type :json
                                                       :form-params {:tax {:category_id 0
                                                                           :country ""
                                                                           :fixed false
                                                                           :name ""
                                                                           :region ""
                                                                           :shipping false
                                                                           :tax ""}}})
require "http/client"

url = "{{baseUrl}}/taxes.json?login=&authtoken="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\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}}/taxes.json?login=&authtoken="),
    Content = new StringContent("{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\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}}/taxes.json?login=&authtoken=");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/taxes.json?login=&authtoken="

	payload := strings.NewReader("{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\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/taxes.json?login=&authtoken= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 150

{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/taxes.json?login=&authtoken=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/taxes.json?login=&authtoken="))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\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  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/taxes.json?login=&authtoken=")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/taxes.json?login=&authtoken=")
  .header("content-type", "application/json")
  .body("{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  tax: {
    category_id: 0,
    country: '',
    fixed: false,
    name: '',
    region: '',
    shipping: false,
    tax: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/taxes.json?login=&authtoken=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/taxes.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    tax: {
      category_id: 0,
      country: '',
      fixed: false,
      name: '',
      region: '',
      shipping: false,
      tax: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/taxes.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"tax":{"category_id":0,"country":"","fixed":false,"name":"","region":"","shipping":false,"tax":""}}'
};

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}}/taxes.json?login=&authtoken=',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "tax": {\n    "category_id": 0,\n    "country": "",\n    "fixed": false,\n    "name": "",\n    "region": "",\n    "shipping": false,\n    "tax": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/taxes.json?login=&authtoken=")
  .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/taxes.json?login=&authtoken=',
  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({
  tax: {
    category_id: 0,
    country: '',
    fixed: false,
    name: '',
    region: '',
    shipping: false,
    tax: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/taxes.json',
  qs: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  body: {
    tax: {
      category_id: 0,
      country: '',
      fixed: false,
      name: '',
      region: '',
      shipping: false,
      tax: ''
    }
  },
  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}}/taxes.json');

req.query({
  login: '',
  authtoken: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  tax: {
    category_id: 0,
    country: '',
    fixed: false,
    name: '',
    region: '',
    shipping: false,
    tax: ''
  }
});

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}}/taxes.json',
  params: {login: '', authtoken: ''},
  headers: {'content-type': 'application/json'},
  data: {
    tax: {
      category_id: 0,
      country: '',
      fixed: false,
      name: '',
      region: '',
      shipping: false,
      tax: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/taxes.json?login=&authtoken=';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"tax":{"category_id":0,"country":"","fixed":false,"name":"","region":"","shipping":false,"tax":""}}'
};

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 = @{ @"tax": @{ @"category_id": @0, @"country": @"", @"fixed": @NO, @"name": @"", @"region": @"", @"shipping": @NO, @"tax": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/taxes.json?login=&authtoken="]
                                                       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}}/taxes.json?login=&authtoken=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/taxes.json?login=&authtoken=",
  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([
    'tax' => [
        'category_id' => 0,
        'country' => '',
        'fixed' => null,
        'name' => '',
        'region' => '',
        'shipping' => null,
        'tax' => ''
    ]
  ]),
  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}}/taxes.json?login=&authtoken=', [
  'body' => '{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/taxes.json');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'tax' => [
    'category_id' => 0,
    'country' => '',
    'fixed' => null,
    'name' => '',
    'region' => '',
    'shipping' => null,
    'tax' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'tax' => [
    'category_id' => 0,
    'country' => '',
    'fixed' => null,
    'name' => '',
    'region' => '',
    'shipping' => null,
    'tax' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/taxes.json');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$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}}/taxes.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/taxes.json?login=&authtoken=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/taxes.json?login=&authtoken=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/taxes.json"

querystring = {"login":"","authtoken":""}

payload = { "tax": {
        "category_id": 0,
        "country": "",
        "fixed": False,
        "name": "",
        "region": "",
        "shipping": False,
        "tax": ""
    } }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/taxes.json"

queryString <- list(
  login = "",
  authtoken = ""
)

payload <- "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/taxes.json?login=&authtoken=")

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  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\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/taxes.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
  req.body = "{\n  \"tax\": {\n    \"category_id\": 0,\n    \"country\": \"\",\n    \"fixed\": false,\n    \"name\": \"\",\n    \"region\": \"\",\n    \"shipping\": false,\n    \"tax\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/taxes.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let payload = json!({"tax": json!({
            "category_id": 0,
            "country": "",
            "fixed": false,
            "name": "",
            "region": "",
            "shipping": false,
            "tax": ""
        })});

    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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/taxes.json?login=&authtoken=' \
  --header 'content-type: application/json' \
  --data '{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}'
echo '{
  "tax": {
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  }
}' |  \
  http POST '{{baseUrl}}/taxes.json?login=&authtoken=' \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "tax": {\n    "category_id": 0,\n    "country": "",\n    "fixed": false,\n    "name": "",\n    "region": "",\n    "shipping": false,\n    "tax": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/taxes.json?login=&authtoken='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["tax": [
    "category_id": 0,
    "country": "",
    "fixed": false,
    "name": "",
    "region": "",
    "shipping": false,
    "tax": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/taxes.json?login=&authtoken=")! 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 Retrieve a single Tax information.
{{baseUrl}}/taxes/:id.json
QUERY PARAMS

login
authtoken
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/taxes/:id.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/taxes/:id.json" {:query-params {:login ""
                                                                         :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/taxes/:id.json?login=&authtoken="

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}}/taxes/:id.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/taxes/:id.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/taxes/:id.json?login=&authtoken="

	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/taxes/:id.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/taxes/:id.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/taxes/:id.json?login=&authtoken="))
    .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}}/taxes/:id.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/taxes/:id.json?login=&authtoken=")
  .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}}/taxes/:id.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/taxes/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/taxes/:id.json?login=&authtoken=';
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}}/taxes/:id.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/taxes/:id.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/taxes/:id.json?login=&authtoken=',
  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}}/taxes/:id.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/taxes/:id.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/taxes/:id.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/taxes/:id.json?login=&authtoken=';
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}}/taxes/:id.json?login=&authtoken="]
                                                       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}}/taxes/:id.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/taxes/:id.json?login=&authtoken=",
  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}}/taxes/:id.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/taxes/:id.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/taxes/:id.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/taxes/:id.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/taxes/:id.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/taxes/:id.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/taxes/:id.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/taxes/:id.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/taxes/:id.json?login=&authtoken=")

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/taxes/:id.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/taxes/:id.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/taxes/:id.json?login=&authtoken='
http GET '{{baseUrl}}/taxes/:id.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/taxes/:id.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/taxes/:id.json?login=&authtoken=")! 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 Retrieve all Taxes.
{{baseUrl}}/taxes.json
QUERY PARAMS

login
authtoken
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/taxes.json?login=&authtoken=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/taxes.json" {:query-params {:login ""
                                                                     :authtoken ""}})
require "http/client"

url = "{{baseUrl}}/taxes.json?login=&authtoken="

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}}/taxes.json?login=&authtoken="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/taxes.json?login=&authtoken=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/taxes.json?login=&authtoken="

	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/taxes.json?login=&authtoken= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/taxes.json?login=&authtoken=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/taxes.json?login=&authtoken="))
    .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}}/taxes.json?login=&authtoken=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/taxes.json?login=&authtoken=")
  .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}}/taxes.json?login=&authtoken=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/taxes.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/taxes.json?login=&authtoken=';
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}}/taxes.json?login=&authtoken=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/taxes.json?login=&authtoken=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/taxes.json?login=&authtoken=',
  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}}/taxes.json',
  qs: {login: '', authtoken: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/taxes.json');

req.query({
  login: '',
  authtoken: ''
});

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}}/taxes.json',
  params: {login: '', authtoken: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/taxes.json?login=&authtoken=';
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}}/taxes.json?login=&authtoken="]
                                                       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}}/taxes.json?login=&authtoken=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/taxes.json?login=&authtoken=",
  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}}/taxes.json?login=&authtoken=');

echo $response->getBody();
setUrl('{{baseUrl}}/taxes.json');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'login' => '',
  'authtoken' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/taxes.json');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'login' => '',
  'authtoken' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/taxes.json?login=&authtoken=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/taxes.json?login=&authtoken=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/taxes.json?login=&authtoken=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/taxes.json"

querystring = {"login":"","authtoken":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/taxes.json"

queryString <- list(
  login = "",
  authtoken = ""
)

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/taxes.json?login=&authtoken=")

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/taxes.json') do |req|
  req.params['login'] = ''
  req.params['authtoken'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/taxes.json";

    let querystring = [
        ("login", ""),
        ("authtoken", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/taxes.json?login=&authtoken='
http GET '{{baseUrl}}/taxes.json?login=&authtoken='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/taxes.json?login=&authtoken='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/taxes.json?login=&authtoken=")! 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()