DELETE calendar.acl.delete
{{baseUrl}}/calendars/:calendarId/acl/:ruleId
QUERY PARAMS

calendarId
ruleId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl/:ruleId");

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

(client/delete "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

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}}/calendars/:calendarId/acl/:ruleId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/calendars/:calendarId/acl/:ruleId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

	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/calendars/:calendarId/acl/:ruleId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/acl/:ruleId"))
    .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}}/calendars/:calendarId/acl/:ruleId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .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}}/calendars/:calendarId/acl/:ruleId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
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}}/calendars/:calendarId/acl/:ruleId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/acl/:ruleId',
  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}}/calendars/:calendarId/acl/:ruleId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/calendars/:calendarId/acl/:ruleId');

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}}/calendars/:calendarId/acl/:ruleId'
};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
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}}/calendars/:calendarId/acl/:ruleId"]
                                                       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}}/calendars/:calendarId/acl/:ruleId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl/:ruleId",
  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}}/calendars/:calendarId/acl/:ruleId');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/calendars/:calendarId/acl/:ruleId")

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")

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/calendars/:calendarId/acl/:ruleId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId";

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")! 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 calendar.acl.get
{{baseUrl}}/calendars/:calendarId/acl/:ruleId
QUERY PARAMS

calendarId
ruleId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl/:ruleId");

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

(client/get "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

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}}/calendars/:calendarId/acl/:ruleId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/calendars/:calendarId/acl/:ruleId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

	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/calendars/:calendarId/acl/:ruleId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
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}}/calendars/:calendarId/acl/:ruleId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/acl/:ruleId',
  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}}/calendars/:calendarId/acl/:ruleId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/calendars/:calendarId/acl/:ruleId');

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}}/calendars/:calendarId/acl/:ruleId'
};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
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}}/calendars/:calendarId/acl/:ruleId"]
                                                       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}}/calendars/:calendarId/acl/:ruleId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl/:ruleId",
  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}}/calendars/:calendarId/acl/:ruleId');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/acl/:ruleId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/acl/:ruleId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/calendars/:calendarId/acl/:ruleId")

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

response = requests.get(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")

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/calendars/:calendarId/acl/:ruleId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId";

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/calendars/:calendarId/acl/:ruleId
http GET {{baseUrl}}/calendars/:calendarId/acl/:ruleId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/acl/:ruleId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")! 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 calendar.acl.insert
{{baseUrl}}/calendars/:calendarId/acl
QUERY PARAMS

calendarId
BODY json

{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl");

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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/calendars/:calendarId/acl" {:content-type :json
                                                                      :form-params {:etag ""
                                                                                    :id ""
                                                                                    :kind ""
                                                                                    :role ""
                                                                                    :scope {:type ""
                                                                                            :value ""}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl"),
    Content = new StringContent("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl"

	payload := strings.NewReader("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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/calendars/:calendarId/acl HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106

{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/acl")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/acl"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/acl")
  .header("content-type", "application/json")
  .body("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  etag: '',
  id: '',
  kind: '',
  role: '',
  scope: {
    type: '',
    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}}/calendars/:calendarId/acl');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/acl',
  headers: {'content-type': 'application/json'},
  data: {etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"etag":"","id":"","kind":"","role":"","scope":{"type":"","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}}/calendars/:calendarId/acl',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "role": "",\n  "scope": {\n    "type": "",\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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl")
  .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/calendars/:calendarId/acl',
  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({etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/acl',
  headers: {'content-type': 'application/json'},
  body: {etag: '', id: '', kind: '', role: '', scope: {type: '', 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}}/calendars/:calendarId/acl');

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

req.type('json');
req.send({
  etag: '',
  id: '',
  kind: '',
  role: '',
  scope: {
    type: '',
    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}}/calendars/:calendarId/acl',
  headers: {'content-type': 'application/json'},
  data: {etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}
};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"etag":"","id":"","kind":"","role":"","scope":{"type":"","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 = @{ @"etag": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"role": @"",
                              @"scope": @{ @"type": @"", @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/acl"]
                                                       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}}/calendars/:calendarId/acl" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl",
  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([
    'etag' => '',
    'id' => '',
    'kind' => '',
    'role' => '',
    'scope' => [
        'type' => '',
        '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}}/calendars/:calendarId/acl', [
  'body' => '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'etag' => '',
  'id' => '',
  'kind' => '',
  'role' => '',
  'scope' => [
    'type' => '',
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'etag' => '',
  'id' => '',
  'kind' => '',
  'role' => '',
  'scope' => [
    'type' => '',
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/acl');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/acl' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/acl' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

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

conn.request("POST", "/baseUrl/calendars/:calendarId/acl", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl"

payload = {
    "etag": "",
    "id": "",
    "kind": "",
    "role": "",
    "scope": {
        "type": "",
        "value": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/acl"

payload <- "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl")

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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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/calendars/:calendarId/acl') do |req|
  req.body = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl";

    let payload = json!({
        "etag": "",
        "id": "",
        "kind": "",
        "role": "",
        "scope": json!({
            "type": "",
            "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars/:calendarId/acl \
  --header 'content-type: application/json' \
  --data '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
echo '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}' |  \
  http POST {{baseUrl}}/calendars/:calendarId/acl \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "role": "",\n  "scope": {\n    "type": "",\n    "value": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/acl
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": [
    "type": "",
    "value": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/acl")! 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 calendar.acl.list
{{baseUrl}}/calendars/:calendarId/acl
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl");

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

(client/get "{{baseUrl}}/calendars/:calendarId/acl")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl"

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

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl"

	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/calendars/:calendarId/acl HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/calendars/:calendarId/acl'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl';
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}}/calendars/:calendarId/acl',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/acl',
  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}}/calendars/:calendarId/acl'};

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

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

const req = unirest('GET', '{{baseUrl}}/calendars/:calendarId/acl');

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}}/calendars/:calendarId/acl'};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl';
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}}/calendars/:calendarId/acl"]
                                                       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}}/calendars/:calendarId/acl" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl",
  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}}/calendars/:calendarId/acl');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/calendars/:calendarId/acl")

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl"

response = requests.get(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/acl"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl")

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/calendars/:calendarId/acl') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

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

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

dataTask.resume()
PATCH calendar.acl.patch
{{baseUrl}}/calendars/:calendarId/acl/:ruleId
QUERY PARAMS

calendarId
ruleId
BODY json

{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl/:ruleId");

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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}");

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

(client/patch "{{baseUrl}}/calendars/:calendarId/acl/:ruleId" {:content-type :json
                                                                               :form-params {:etag ""
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :role ""
                                                                                             :scope {:type ""
                                                                                                     :value ""}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/calendars/:calendarId/acl/:ruleId"),
    Content = new StringContent("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl/:ruleId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

	payload := strings.NewReader("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")

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

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

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

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

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

}
PATCH /baseUrl/calendars/:calendarId/acl/:ruleId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106

{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/acl/:ruleId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .header("content-type", "application/json")
  .body("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  etag: '',
  id: '',
  kind: '',
  role: '',
  scope: {
    type: '',
    value: ''
  }
});

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

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

xhr.open('PATCH', '{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId',
  headers: {'content-type': 'application/json'},
  data: {etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"etag":"","id":"","kind":"","role":"","scope":{"type":"","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}}/calendars/:calendarId/acl/:ruleId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "role": "",\n  "scope": {\n    "type": "",\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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/acl/:ruleId',
  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({etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId',
  headers: {'content-type': 'application/json'},
  body: {etag: '', id: '', kind: '', role: '', scope: {type: '', 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('PATCH', '{{baseUrl}}/calendars/:calendarId/acl/:ruleId');

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

req.type('json');
req.send({
  etag: '',
  id: '',
  kind: '',
  role: '',
  scope: {
    type: '',
    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: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId',
  headers: {'content-type': 'application/json'},
  data: {etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}
};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"etag":"","id":"","kind":"","role":"","scope":{"type":"","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 = @{ @"etag": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"role": @"",
                              @"scope": @{ @"type": @"", @"value": @"" } };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/calendars/:calendarId/acl/:ruleId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl/:ruleId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'etag' => '',
    'id' => '',
    'kind' => '',
    'role' => '',
    'scope' => [
        'type' => '',
        '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('PATCH', '{{baseUrl}}/calendars/:calendarId/acl/:ruleId', [
  'body' => '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'etag' => '',
  'id' => '',
  'kind' => '',
  'role' => '',
  'scope' => [
    'type' => '',
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'etag' => '',
  'id' => '',
  'kind' => '',
  'role' => '',
  'scope' => [
    'type' => '',
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/acl/:ruleId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/acl/:ruleId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

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

conn.request("PATCH", "/baseUrl/calendars/:calendarId/acl/:ruleId", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

payload = {
    "etag": "",
    "id": "",
    "kind": "",
    "role": "",
    "scope": {
        "type": "",
        "value": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

payload <- "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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.patch('/baseUrl/calendars/:calendarId/acl/:ruleId') do |req|
  req.body = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl/:ruleId";

    let payload = json!({
        "etag": "",
        "id": "",
        "kind": "",
        "role": "",
        "scope": json!({
            "type": "",
            "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("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/calendars/:calendarId/acl/:ruleId \
  --header 'content-type: application/json' \
  --data '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
echo '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}' |  \
  http PATCH {{baseUrl}}/calendars/:calendarId/acl/:ruleId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "role": "",\n  "scope": {\n    "type": "",\n    "value": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/acl/:ruleId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": [
    "type": "",
    "value": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
PUT calendar.acl.update
{{baseUrl}}/calendars/:calendarId/acl/:ruleId
QUERY PARAMS

calendarId
ruleId
BODY json

{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl/:ruleId");

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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}");

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

(client/put "{{baseUrl}}/calendars/:calendarId/acl/:ruleId" {:content-type :json
                                                                             :form-params {:etag ""
                                                                                           :id ""
                                                                                           :kind ""
                                                                                           :role ""
                                                                                           :scope {:type ""
                                                                                                   :value ""}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl/:ruleId"),
    Content = new StringContent("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl/:ruleId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

	payload := strings.NewReader("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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/calendars/:calendarId/acl/:ruleId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 106

{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/acl/:ruleId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .header("content-type", "application/json")
  .body("{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  etag: '',
  id: '',
  kind: '',
  role: '',
  scope: {
    type: '',
    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}}/calendars/:calendarId/acl/:ruleId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId',
  headers: {'content-type': 'application/json'},
  data: {etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"etag":"","id":"","kind":"","role":"","scope":{"type":"","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}}/calendars/:calendarId/acl/:ruleId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "role": "",\n  "scope": {\n    "type": "",\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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")
  .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/calendars/:calendarId/acl/:ruleId',
  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({etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/calendars/:calendarId/acl/:ruleId',
  headers: {'content-type': 'application/json'},
  body: {etag: '', id: '', kind: '', role: '', scope: {type: '', 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}}/calendars/:calendarId/acl/:ruleId');

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

req.type('json');
req.send({
  etag: '',
  id: '',
  kind: '',
  role: '',
  scope: {
    type: '',
    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}}/calendars/:calendarId/acl/:ruleId',
  headers: {'content-type': 'application/json'},
  data: {etag: '', id: '', kind: '', role: '', scope: {type: '', value: ''}}
};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl/:ruleId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"etag":"","id":"","kind":"","role":"","scope":{"type":"","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 = @{ @"etag": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"role": @"",
                              @"scope": @{ @"type": @"", @"value": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/acl/:ruleId"]
                                                       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}}/calendars/:calendarId/acl/:ruleId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl/:ruleId",
  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([
    'etag' => '',
    'id' => '',
    'kind' => '',
    'role' => '',
    'scope' => [
        'type' => '',
        '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}}/calendars/:calendarId/acl/:ruleId', [
  'body' => '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'etag' => '',
  'id' => '',
  'kind' => '',
  'role' => '',
  'scope' => [
    'type' => '',
    'value' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'etag' => '',
  'id' => '',
  'kind' => '',
  'role' => '',
  'scope' => [
    'type' => '',
    'value' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/acl/:ruleId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/acl/:ruleId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/acl/:ruleId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
import http.client

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

payload = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

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

conn.request("PUT", "/baseUrl/calendars/:calendarId/acl/:ruleId", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

payload = {
    "etag": "",
    "id": "",
    "kind": "",
    "role": "",
    "scope": {
        "type": "",
        "value": ""
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/acl/:ruleId"

payload <- "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\n    \"value\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl/:ruleId")

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  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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/calendars/:calendarId/acl/:ruleId') do |req|
  req.body = "{\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"role\": \"\",\n  \"scope\": {\n    \"type\": \"\",\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}}/calendars/:calendarId/acl/:ruleId";

    let payload = json!({
        "etag": "",
        "id": "",
        "kind": "",
        "role": "",
        "scope": json!({
            "type": "",
            "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/calendars/:calendarId/acl/:ruleId \
  --header 'content-type: application/json' \
  --data '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}'
echo '{
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": {
    "type": "",
    "value": ""
  }
}' |  \
  http PUT {{baseUrl}}/calendars/:calendarId/acl/:ruleId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "role": "",\n  "scope": {\n    "type": "",\n    "value": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/acl/:ruleId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "etag": "",
  "id": "",
  "kind": "",
  "role": "",
  "scope": [
    "type": "",
    "value": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/acl/:ruleId")! 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 calendar.acl.watch
{{baseUrl}}/calendars/:calendarId/acl/watch
QUERY PARAMS

calendarId
BODY json

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/acl/watch");

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/calendars/:calendarId/acl/watch" {:content-type :json
                                                                            :form-params {:address ""
                                                                                          :expiration ""
                                                                                          :id ""
                                                                                          :kind ""
                                                                                          :params {}
                                                                                          :payload false
                                                                                          :resourceId ""
                                                                                          :resourceUri ""
                                                                                          :token ""
                                                                                          :type ""}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/acl/watch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/calendars/:calendarId/acl/watch"),
    Content = new StringContent("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/calendars/:calendarId/acl/watch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/acl/watch"

	payload := strings.NewReader("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/calendars/:calendarId/acl/watch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 171

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/acl/watch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/acl/watch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/watch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/acl/watch")
  .header("content-type", "application/json")
  .body("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/calendars/:calendarId/acl/watch');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/acl/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/acl/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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}}/calendars/:calendarId/acl/watch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/acl/watch")
  .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/calendars/:calendarId/acl/watch',
  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({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/acl/watch',
  headers: {'content-type': 'application/json'},
  body: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    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}}/calendars/:calendarId/acl/watch');

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

req.type('json');
req.send({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/calendars/:calendarId/acl/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

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

const url = '{{baseUrl}}/calendars/:calendarId/acl/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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 = @{ @"address": @"",
                              @"expiration": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"params": @{  },
                              @"payload": @NO,
                              @"resourceId": @"",
                              @"resourceUri": @"",
                              @"token": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/acl/watch"]
                                                       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}}/calendars/:calendarId/acl/watch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/acl/watch",
  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([
    'address' => '',
    'expiration' => '',
    'id' => '',
    'kind' => '',
    'params' => [
        
    ],
    'payload' => null,
    'resourceId' => '',
    'resourceUri' => '',
    'token' => '',
    '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}}/calendars/:calendarId/acl/watch', [
  'body' => '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/acl/watch');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/acl/watch');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/acl/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/acl/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

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

conn.request("POST", "/baseUrl/calendars/:calendarId/acl/watch", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/acl/watch"

payload = {
    "address": "",
    "expiration": "",
    "id": "",
    "kind": "",
    "params": {},
    "payload": False,
    "resourceId": "",
    "resourceUri": "",
    "token": "",
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/acl/watch"

payload <- "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/acl/watch")

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/calendars/:calendarId/acl/watch') do |req|
  req.body = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/acl/watch";

    let payload = json!({
        "address": "",
        "expiration": "",
        "id": "",
        "kind": "",
        "params": json!({}),
        "payload": false,
        "resourceId": "",
        "resourceUri": "",
        "token": "",
        "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars/:calendarId/acl/watch \
  --header 'content-type: application/json' \
  --data '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
echo '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/calendars/:calendarId/acl/watch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/acl/watch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": [],
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/acl/watch")! 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 calendar.calendarList.delete
{{baseUrl}}/users/me/calendarList/:calendarId
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList/:calendarId");

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

(client/delete "{{baseUrl}}/users/me/calendarList/:calendarId")
require "http/client"

url = "{{baseUrl}}/users/me/calendarList/:calendarId"

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}}/users/me/calendarList/:calendarId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/users/me/calendarList/:calendarId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList/:calendarId"

	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/users/me/calendarList/:calendarId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/calendarList/:calendarId"))
    .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}}/users/me/calendarList/:calendarId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/users/me/calendarList/:calendarId")
  .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}}/users/me/calendarList/:calendarId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
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}}/users/me/calendarList/:calendarId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/:calendarId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/users/me/calendarList/:calendarId',
  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}}/users/me/calendarList/:calendarId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/users/me/calendarList/:calendarId');

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}}/users/me/calendarList/:calendarId'
};

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

const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
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}}/users/me/calendarList/:calendarId"]
                                                       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}}/users/me/calendarList/:calendarId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList/:calendarId",
  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}}/users/me/calendarList/:calendarId');

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/users/me/calendarList/:calendarId")

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

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

url = "{{baseUrl}}/users/me/calendarList/:calendarId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/users/me/calendarList/:calendarId"

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

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

url = URI("{{baseUrl}}/users/me/calendarList/:calendarId")

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/users/me/calendarList/:calendarId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/users/me/calendarList/:calendarId";

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/calendarList/:calendarId")! 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 calendar.calendarList.get
{{baseUrl}}/users/me/calendarList/:calendarId
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList/:calendarId");

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

(client/get "{{baseUrl}}/users/me/calendarList/:calendarId")
require "http/client"

url = "{{baseUrl}}/users/me/calendarList/:calendarId"

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}}/users/me/calendarList/:calendarId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/users/me/calendarList/:calendarId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList/:calendarId"

	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/users/me/calendarList/:calendarId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/users/me/calendarList/:calendarId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
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}}/users/me/calendarList/:calendarId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/:calendarId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/users/me/calendarList/:calendarId',
  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}}/users/me/calendarList/:calendarId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/users/me/calendarList/:calendarId');

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}}/users/me/calendarList/:calendarId'
};

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

const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
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}}/users/me/calendarList/:calendarId"]
                                                       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}}/users/me/calendarList/:calendarId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList/:calendarId",
  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}}/users/me/calendarList/:calendarId');

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/calendarList/:calendarId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/calendarList/:calendarId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/users/me/calendarList/:calendarId")

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

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

url = "{{baseUrl}}/users/me/calendarList/:calendarId"

response = requests.get(url)

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

url <- "{{baseUrl}}/users/me/calendarList/:calendarId"

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

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

url = URI("{{baseUrl}}/users/me/calendarList/:calendarId")

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/users/me/calendarList/:calendarId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/users/me/calendarList/:calendarId";

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/users/me/calendarList/:calendarId
http GET {{baseUrl}}/users/me/calendarList/:calendarId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/users/me/calendarList/:calendarId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/calendarList/:calendarId")! 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 calendar.calendarList.insert
{{baseUrl}}/users/me/calendarList
BODY json

{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList");

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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}");

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

(client/post "{{baseUrl}}/users/me/calendarList" {:content-type :json
                                                                  :form-params {:accessRole ""
                                                                                :backgroundColor ""
                                                                                :colorId ""
                                                                                :conferenceProperties {:allowedConferenceSolutionTypes []}
                                                                                :defaultReminders [{:method ""
                                                                                                    :minutes 0}]
                                                                                :deleted false
                                                                                :description ""
                                                                                :etag ""
                                                                                :foregroundColor ""
                                                                                :hidden false
                                                                                :id ""
                                                                                :kind ""
                                                                                :location ""
                                                                                :notificationSettings {:notifications [{:method ""
                                                                                                                        :type ""}]}
                                                                                :primary false
                                                                                :selected false
                                                                                :summary ""
                                                                                :summaryOverride ""
                                                                                :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/users/me/calendarList"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList"),
    Content = new StringContent("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList"

	payload := strings.NewReader("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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/users/me/calendarList HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 581

{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/users/me/calendarList")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/calendarList"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/users/me/calendarList")
  .header("content-type", "application/json")
  .body("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  defaultReminders: [
    {
      method: '',
      minutes: 0
    }
  ],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {
    notifications: [
      {
        method: '',
        type: ''
      }
    ]
  },
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/users/me/calendarList');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/users/me/calendarList',
  headers: {'content-type': 'application/json'},
  data: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accessRole":"","backgroundColor":"","colorId":"","conferenceProperties":{"allowedConferenceSolutionTypes":[]},"defaultReminders":[{"method":"","minutes":0}],"deleted":false,"description":"","etag":"","foregroundColor":"","hidden":false,"id":"","kind":"","location":"","notificationSettings":{"notifications":[{"method":"","type":""}]},"primary":false,"selected":false,"summary":"","summaryOverride":"","timeZone":""}'
};

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}}/users/me/calendarList',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accessRole": "",\n  "backgroundColor": "",\n  "colorId": "",\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "defaultReminders": [\n    {\n      "method": "",\n      "minutes": 0\n    }\n  ],\n  "deleted": false,\n  "description": "",\n  "etag": "",\n  "foregroundColor": "",\n  "hidden": false,\n  "id": "",\n  "kind": "",\n  "location": "",\n  "notificationSettings": {\n    "notifications": [\n      {\n        "method": "",\n        "type": ""\n      }\n    ]\n  },\n  "primary": false,\n  "selected": false,\n  "summary": "",\n  "summaryOverride": "",\n  "timeZone": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList")
  .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/users/me/calendarList',
  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({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {allowedConferenceSolutionTypes: []},
  defaultReminders: [{method: '', minutes: 0}],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {notifications: [{method: '', type: ''}]},
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/users/me/calendarList',
  headers: {'content-type': 'application/json'},
  body: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  },
  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}}/users/me/calendarList');

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

req.type('json');
req.send({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  defaultReminders: [
    {
      method: '',
      minutes: 0
    }
  ],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {
    notifications: [
      {
        method: '',
        type: ''
      }
    ]
  },
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
});

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}}/users/me/calendarList',
  headers: {'content-type': 'application/json'},
  data: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  }
};

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

const url = '{{baseUrl}}/users/me/calendarList';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accessRole":"","backgroundColor":"","colorId":"","conferenceProperties":{"allowedConferenceSolutionTypes":[]},"defaultReminders":[{"method":"","minutes":0}],"deleted":false,"description":"","etag":"","foregroundColor":"","hidden":false,"id":"","kind":"","location":"","notificationSettings":{"notifications":[{"method":"","type":""}]},"primary":false,"selected":false,"summary":"","summaryOverride":"","timeZone":""}'
};

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 = @{ @"accessRole": @"",
                              @"backgroundColor": @"",
                              @"colorId": @"",
                              @"conferenceProperties": @{ @"allowedConferenceSolutionTypes": @[  ] },
                              @"defaultReminders": @[ @{ @"method": @"", @"minutes": @0 } ],
                              @"deleted": @NO,
                              @"description": @"",
                              @"etag": @"",
                              @"foregroundColor": @"",
                              @"hidden": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"notificationSettings": @{ @"notifications": @[ @{ @"method": @"", @"type": @"" } ] },
                              @"primary": @NO,
                              @"selected": @NO,
                              @"summary": @"",
                              @"summaryOverride": @"",
                              @"timeZone": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/users/me/calendarList"]
                                                       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}}/users/me/calendarList" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList",
  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([
    'accessRole' => '',
    'backgroundColor' => '',
    'colorId' => '',
    'conferenceProperties' => [
        'allowedConferenceSolutionTypes' => [
                
        ]
    ],
    'defaultReminders' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'deleted' => null,
    'description' => '',
    'etag' => '',
    'foregroundColor' => '',
    'hidden' => null,
    'id' => '',
    'kind' => '',
    'location' => '',
    'notificationSettings' => [
        'notifications' => [
                [
                                'method' => '',
                                'type' => ''
                ]
        ]
    ],
    'primary' => null,
    'selected' => null,
    'summary' => '',
    'summaryOverride' => '',
    'timeZone' => ''
  ]),
  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}}/users/me/calendarList', [
  'body' => '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accessRole' => '',
  'backgroundColor' => '',
  'colorId' => '',
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'defaultReminders' => [
    [
        'method' => '',
        'minutes' => 0
    ]
  ],
  'deleted' => null,
  'description' => '',
  'etag' => '',
  'foregroundColor' => '',
  'hidden' => null,
  'id' => '',
  'kind' => '',
  'location' => '',
  'notificationSettings' => [
    'notifications' => [
        [
                'method' => '',
                'type' => ''
        ]
    ]
  ],
  'primary' => null,
  'selected' => null,
  'summary' => '',
  'summaryOverride' => '',
  'timeZone' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accessRole' => '',
  'backgroundColor' => '',
  'colorId' => '',
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'defaultReminders' => [
    [
        'method' => '',
        'minutes' => 0
    ]
  ],
  'deleted' => null,
  'description' => '',
  'etag' => '',
  'foregroundColor' => '',
  'hidden' => null,
  'id' => '',
  'kind' => '',
  'location' => '',
  'notificationSettings' => [
    'notifications' => [
        [
                'method' => '',
                'type' => ''
        ]
    ]
  ],
  'primary' => null,
  'selected' => null,
  'summary' => '',
  'summaryOverride' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/users/me/calendarList');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/calendarList' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/calendarList' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
import http.client

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

payload = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

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

conn.request("POST", "/baseUrl/users/me/calendarList", payload, headers)

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

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

url = "{{baseUrl}}/users/me/calendarList"

payload = {
    "accessRole": "",
    "backgroundColor": "",
    "colorId": "",
    "conferenceProperties": { "allowedConferenceSolutionTypes": [] },
    "defaultReminders": [
        {
            "method": "",
            "minutes": 0
        }
    ],
    "deleted": False,
    "description": "",
    "etag": "",
    "foregroundColor": "",
    "hidden": False,
    "id": "",
    "kind": "",
    "location": "",
    "notificationSettings": { "notifications": [
            {
                "method": "",
                "type": ""
            }
        ] },
    "primary": False,
    "selected": False,
    "summary": "",
    "summaryOverride": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/users/me/calendarList"

payload <- "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/users/me/calendarList")

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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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/users/me/calendarList') do |req|
  req.body = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"
end

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

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

    let payload = json!({
        "accessRole": "",
        "backgroundColor": "",
        "colorId": "",
        "conferenceProperties": json!({"allowedConferenceSolutionTypes": ()}),
        "defaultReminders": (
            json!({
                "method": "",
                "minutes": 0
            })
        ),
        "deleted": false,
        "description": "",
        "etag": "",
        "foregroundColor": "",
        "hidden": false,
        "id": "",
        "kind": "",
        "location": "",
        "notificationSettings": json!({"notifications": (
                json!({
                    "method": "",
                    "type": ""
                })
            )}),
        "primary": false,
        "selected": false,
        "summary": "",
        "summaryOverride": "",
        "timeZone": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/users/me/calendarList \
  --header 'content-type: application/json' \
  --data '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
echo '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}' |  \
  http POST {{baseUrl}}/users/me/calendarList \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accessRole": "",\n  "backgroundColor": "",\n  "colorId": "",\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "defaultReminders": [\n    {\n      "method": "",\n      "minutes": 0\n    }\n  ],\n  "deleted": false,\n  "description": "",\n  "etag": "",\n  "foregroundColor": "",\n  "hidden": false,\n  "id": "",\n  "kind": "",\n  "location": "",\n  "notificationSettings": {\n    "notifications": [\n      {\n        "method": "",\n        "type": ""\n      }\n    ]\n  },\n  "primary": false,\n  "selected": false,\n  "summary": "",\n  "summaryOverride": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/users/me/calendarList
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": ["allowedConferenceSolutionTypes": []],
  "defaultReminders": [
    [
      "method": "",
      "minutes": 0
    ]
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": ["notifications": [
      [
        "method": "",
        "type": ""
      ]
    ]],
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/calendarList")! 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 calendar.calendarList.list
{{baseUrl}}/users/me/calendarList
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList");

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

(client/get "{{baseUrl}}/users/me/calendarList")
require "http/client"

url = "{{baseUrl}}/users/me/calendarList"

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

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList"

	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/users/me/calendarList HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/users/me/calendarList'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList';
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}}/users/me/calendarList',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/users/me/calendarList',
  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}}/users/me/calendarList'};

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

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

const req = unirest('GET', '{{baseUrl}}/users/me/calendarList');

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}}/users/me/calendarList'};

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

const url = '{{baseUrl}}/users/me/calendarList';
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}}/users/me/calendarList"]
                                                       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}}/users/me/calendarList" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList",
  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}}/users/me/calendarList');

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/users/me/calendarList');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/calendarList' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/calendarList' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/users/me/calendarList")

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

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

url = "{{baseUrl}}/users/me/calendarList"

response = requests.get(url)

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

url <- "{{baseUrl}}/users/me/calendarList"

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

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

url = URI("{{baseUrl}}/users/me/calendarList")

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/users/me/calendarList') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/users/me/calendarList
http GET {{baseUrl}}/users/me/calendarList
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/users/me/calendarList
import Foundation

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

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

dataTask.resume()
PATCH calendar.calendarList.patch
{{baseUrl}}/users/me/calendarList/:calendarId
QUERY PARAMS

calendarId
BODY json

{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList/:calendarId");

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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}");

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

(client/patch "{{baseUrl}}/users/me/calendarList/:calendarId" {:content-type :json
                                                                               :form-params {:accessRole ""
                                                                                             :backgroundColor ""
                                                                                             :colorId ""
                                                                                             :conferenceProperties {:allowedConferenceSolutionTypes []}
                                                                                             :defaultReminders [{:method ""
                                                                                                                 :minutes 0}]
                                                                                             :deleted false
                                                                                             :description ""
                                                                                             :etag ""
                                                                                             :foregroundColor ""
                                                                                             :hidden false
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :location ""
                                                                                             :notificationSettings {:notifications [{:method ""
                                                                                                                                     :type ""}]}
                                                                                             :primary false
                                                                                             :selected false
                                                                                             :summary ""
                                                                                             :summaryOverride ""
                                                                                             :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/users/me/calendarList/:calendarId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/users/me/calendarList/:calendarId"),
    Content = new StringContent("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList/:calendarId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList/:calendarId"

	payload := strings.NewReader("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")

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

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

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

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

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

}
PATCH /baseUrl/users/me/calendarList/:calendarId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 581

{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/users/me/calendarList/:calendarId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/calendarList/:calendarId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/:calendarId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/users/me/calendarList/:calendarId")
  .header("content-type", "application/json")
  .body("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  defaultReminders: [
    {
      method: '',
      minutes: 0
    }
  ],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {
    notifications: [
      {
        method: '',
        type: ''
      }
    ]
  },
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/users/me/calendarList/:calendarId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accessRole":"","backgroundColor":"","colorId":"","conferenceProperties":{"allowedConferenceSolutionTypes":[]},"defaultReminders":[{"method":"","minutes":0}],"deleted":false,"description":"","etag":"","foregroundColor":"","hidden":false,"id":"","kind":"","location":"","notificationSettings":{"notifications":[{"method":"","type":""}]},"primary":false,"selected":false,"summary":"","summaryOverride":"","timeZone":""}'
};

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}}/users/me/calendarList/:calendarId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accessRole": "",\n  "backgroundColor": "",\n  "colorId": "",\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "defaultReminders": [\n    {\n      "method": "",\n      "minutes": 0\n    }\n  ],\n  "deleted": false,\n  "description": "",\n  "etag": "",\n  "foregroundColor": "",\n  "hidden": false,\n  "id": "",\n  "kind": "",\n  "location": "",\n  "notificationSettings": {\n    "notifications": [\n      {\n        "method": "",\n        "type": ""\n      }\n    ]\n  },\n  "primary": false,\n  "selected": false,\n  "summary": "",\n  "summaryOverride": "",\n  "timeZone": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/:calendarId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/users/me/calendarList/:calendarId',
  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({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {allowedConferenceSolutionTypes: []},
  defaultReminders: [{method: '', minutes: 0}],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {notifications: [{method: '', type: ''}]},
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId',
  headers: {'content-type': 'application/json'},
  body: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/users/me/calendarList/:calendarId');

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

req.type('json');
req.send({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  defaultReminders: [
    {
      method: '',
      minutes: 0
    }
  ],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {
    notifications: [
      {
        method: '',
        type: ''
      }
    ]
  },
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  }
};

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

const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accessRole":"","backgroundColor":"","colorId":"","conferenceProperties":{"allowedConferenceSolutionTypes":[]},"defaultReminders":[{"method":"","minutes":0}],"deleted":false,"description":"","etag":"","foregroundColor":"","hidden":false,"id":"","kind":"","location":"","notificationSettings":{"notifications":[{"method":"","type":""}]},"primary":false,"selected":false,"summary":"","summaryOverride":"","timeZone":""}'
};

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 = @{ @"accessRole": @"",
                              @"backgroundColor": @"",
                              @"colorId": @"",
                              @"conferenceProperties": @{ @"allowedConferenceSolutionTypes": @[  ] },
                              @"defaultReminders": @[ @{ @"method": @"", @"minutes": @0 } ],
                              @"deleted": @NO,
                              @"description": @"",
                              @"etag": @"",
                              @"foregroundColor": @"",
                              @"hidden": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"notificationSettings": @{ @"notifications": @[ @{ @"method": @"", @"type": @"" } ] },
                              @"primary": @NO,
                              @"selected": @NO,
                              @"summary": @"",
                              @"summaryOverride": @"",
                              @"timeZone": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/users/me/calendarList/:calendarId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList/:calendarId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'accessRole' => '',
    'backgroundColor' => '',
    'colorId' => '',
    'conferenceProperties' => [
        'allowedConferenceSolutionTypes' => [
                
        ]
    ],
    'defaultReminders' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'deleted' => null,
    'description' => '',
    'etag' => '',
    'foregroundColor' => '',
    'hidden' => null,
    'id' => '',
    'kind' => '',
    'location' => '',
    'notificationSettings' => [
        'notifications' => [
                [
                                'method' => '',
                                'type' => ''
                ]
        ]
    ],
    'primary' => null,
    'selected' => null,
    'summary' => '',
    'summaryOverride' => '',
    'timeZone' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/users/me/calendarList/:calendarId', [
  'body' => '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accessRole' => '',
  'backgroundColor' => '',
  'colorId' => '',
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'defaultReminders' => [
    [
        'method' => '',
        'minutes' => 0
    ]
  ],
  'deleted' => null,
  'description' => '',
  'etag' => '',
  'foregroundColor' => '',
  'hidden' => null,
  'id' => '',
  'kind' => '',
  'location' => '',
  'notificationSettings' => [
    'notifications' => [
        [
                'method' => '',
                'type' => ''
        ]
    ]
  ],
  'primary' => null,
  'selected' => null,
  'summary' => '',
  'summaryOverride' => '',
  'timeZone' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accessRole' => '',
  'backgroundColor' => '',
  'colorId' => '',
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'defaultReminders' => [
    [
        'method' => '',
        'minutes' => 0
    ]
  ],
  'deleted' => null,
  'description' => '',
  'etag' => '',
  'foregroundColor' => '',
  'hidden' => null,
  'id' => '',
  'kind' => '',
  'location' => '',
  'notificationSettings' => [
    'notifications' => [
        [
                'method' => '',
                'type' => ''
        ]
    ]
  ],
  'primary' => null,
  'selected' => null,
  'summary' => '',
  'summaryOverride' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/calendarList/:calendarId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/calendarList/:calendarId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
import http.client

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

payload = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/users/me/calendarList/:calendarId", payload, headers)

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

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

url = "{{baseUrl}}/users/me/calendarList/:calendarId"

payload = {
    "accessRole": "",
    "backgroundColor": "",
    "colorId": "",
    "conferenceProperties": { "allowedConferenceSolutionTypes": [] },
    "defaultReminders": [
        {
            "method": "",
            "minutes": 0
        }
    ],
    "deleted": False,
    "description": "",
    "etag": "",
    "foregroundColor": "",
    "hidden": False,
    "id": "",
    "kind": "",
    "location": "",
    "notificationSettings": { "notifications": [
            {
                "method": "",
                "type": ""
            }
        ] },
    "primary": False,
    "selected": False,
    "summary": "",
    "summaryOverride": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/users/me/calendarList/:calendarId"

payload <- "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/users/me/calendarList/:calendarId")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

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

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

response = conn.patch('/baseUrl/users/me/calendarList/:calendarId') do |req|
  req.body = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList/:calendarId";

    let payload = json!({
        "accessRole": "",
        "backgroundColor": "",
        "colorId": "",
        "conferenceProperties": json!({"allowedConferenceSolutionTypes": ()}),
        "defaultReminders": (
            json!({
                "method": "",
                "minutes": 0
            })
        ),
        "deleted": false,
        "description": "",
        "etag": "",
        "foregroundColor": "",
        "hidden": false,
        "id": "",
        "kind": "",
        "location": "",
        "notificationSettings": json!({"notifications": (
                json!({
                    "method": "",
                    "type": ""
                })
            )}),
        "primary": false,
        "selected": false,
        "summary": "",
        "summaryOverride": "",
        "timeZone": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/users/me/calendarList/:calendarId \
  --header 'content-type: application/json' \
  --data '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
echo '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}' |  \
  http PATCH {{baseUrl}}/users/me/calendarList/:calendarId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accessRole": "",\n  "backgroundColor": "",\n  "colorId": "",\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "defaultReminders": [\n    {\n      "method": "",\n      "minutes": 0\n    }\n  ],\n  "deleted": false,\n  "description": "",\n  "etag": "",\n  "foregroundColor": "",\n  "hidden": false,\n  "id": "",\n  "kind": "",\n  "location": "",\n  "notificationSettings": {\n    "notifications": [\n      {\n        "method": "",\n        "type": ""\n      }\n    ]\n  },\n  "primary": false,\n  "selected": false,\n  "summary": "",\n  "summaryOverride": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/users/me/calendarList/:calendarId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": ["allowedConferenceSolutionTypes": []],
  "defaultReminders": [
    [
      "method": "",
      "minutes": 0
    ]
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": ["notifications": [
      [
        "method": "",
        "type": ""
      ]
    ]],
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
] as [String : Any]

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

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

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

dataTask.resume()
PUT calendar.calendarList.update
{{baseUrl}}/users/me/calendarList/:calendarId
QUERY PARAMS

calendarId
BODY json

{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList/:calendarId");

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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}");

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

(client/put "{{baseUrl}}/users/me/calendarList/:calendarId" {:content-type :json
                                                                             :form-params {:accessRole ""
                                                                                           :backgroundColor ""
                                                                                           :colorId ""
                                                                                           :conferenceProperties {:allowedConferenceSolutionTypes []}
                                                                                           :defaultReminders [{:method ""
                                                                                                               :minutes 0}]
                                                                                           :deleted false
                                                                                           :description ""
                                                                                           :etag ""
                                                                                           :foregroundColor ""
                                                                                           :hidden false
                                                                                           :id ""
                                                                                           :kind ""
                                                                                           :location ""
                                                                                           :notificationSettings {:notifications [{:method ""
                                                                                                                                   :type ""}]}
                                                                                           :primary false
                                                                                           :selected false
                                                                                           :summary ""
                                                                                           :summaryOverride ""
                                                                                           :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/users/me/calendarList/:calendarId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList/:calendarId"),
    Content = new StringContent("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList/:calendarId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList/:calendarId"

	payload := strings.NewReader("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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/users/me/calendarList/:calendarId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 581

{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/users/me/calendarList/:calendarId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/calendarList/:calendarId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/:calendarId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/users/me/calendarList/:calendarId")
  .header("content-type", "application/json")
  .body("{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  defaultReminders: [
    {
      method: '',
      minutes: 0
    }
  ],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {
    notifications: [
      {
        method: '',
        type: ''
      }
    ]
  },
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/users/me/calendarList/:calendarId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accessRole":"","backgroundColor":"","colorId":"","conferenceProperties":{"allowedConferenceSolutionTypes":[]},"defaultReminders":[{"method":"","minutes":0}],"deleted":false,"description":"","etag":"","foregroundColor":"","hidden":false,"id":"","kind":"","location":"","notificationSettings":{"notifications":[{"method":"","type":""}]},"primary":false,"selected":false,"summary":"","summaryOverride":"","timeZone":""}'
};

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}}/users/me/calendarList/:calendarId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accessRole": "",\n  "backgroundColor": "",\n  "colorId": "",\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "defaultReminders": [\n    {\n      "method": "",\n      "minutes": 0\n    }\n  ],\n  "deleted": false,\n  "description": "",\n  "etag": "",\n  "foregroundColor": "",\n  "hidden": false,\n  "id": "",\n  "kind": "",\n  "location": "",\n  "notificationSettings": {\n    "notifications": [\n      {\n        "method": "",\n        "type": ""\n      }\n    ]\n  },\n  "primary": false,\n  "selected": false,\n  "summary": "",\n  "summaryOverride": "",\n  "timeZone": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/:calendarId")
  .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/users/me/calendarList/:calendarId',
  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({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {allowedConferenceSolutionTypes: []},
  defaultReminders: [{method: '', minutes: 0}],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {notifications: [{method: '', type: ''}]},
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/users/me/calendarList/:calendarId',
  headers: {'content-type': 'application/json'},
  body: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  },
  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}}/users/me/calendarList/:calendarId');

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

req.type('json');
req.send({
  accessRole: '',
  backgroundColor: '',
  colorId: '',
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  defaultReminders: [
    {
      method: '',
      minutes: 0
    }
  ],
  deleted: false,
  description: '',
  etag: '',
  foregroundColor: '',
  hidden: false,
  id: '',
  kind: '',
  location: '',
  notificationSettings: {
    notifications: [
      {
        method: '',
        type: ''
      }
    ]
  },
  primary: false,
  selected: false,
  summary: '',
  summaryOverride: '',
  timeZone: ''
});

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}}/users/me/calendarList/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    accessRole: '',
    backgroundColor: '',
    colorId: '',
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    defaultReminders: [{method: '', minutes: 0}],
    deleted: false,
    description: '',
    etag: '',
    foregroundColor: '',
    hidden: false,
    id: '',
    kind: '',
    location: '',
    notificationSettings: {notifications: [{method: '', type: ''}]},
    primary: false,
    selected: false,
    summary: '',
    summaryOverride: '',
    timeZone: ''
  }
};

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

const url = '{{baseUrl}}/users/me/calendarList/:calendarId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accessRole":"","backgroundColor":"","colorId":"","conferenceProperties":{"allowedConferenceSolutionTypes":[]},"defaultReminders":[{"method":"","minutes":0}],"deleted":false,"description":"","etag":"","foregroundColor":"","hidden":false,"id":"","kind":"","location":"","notificationSettings":{"notifications":[{"method":"","type":""}]},"primary":false,"selected":false,"summary":"","summaryOverride":"","timeZone":""}'
};

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 = @{ @"accessRole": @"",
                              @"backgroundColor": @"",
                              @"colorId": @"",
                              @"conferenceProperties": @{ @"allowedConferenceSolutionTypes": @[  ] },
                              @"defaultReminders": @[ @{ @"method": @"", @"minutes": @0 } ],
                              @"deleted": @NO,
                              @"description": @"",
                              @"etag": @"",
                              @"foregroundColor": @"",
                              @"hidden": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"notificationSettings": @{ @"notifications": @[ @{ @"method": @"", @"type": @"" } ] },
                              @"primary": @NO,
                              @"selected": @NO,
                              @"summary": @"",
                              @"summaryOverride": @"",
                              @"timeZone": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/users/me/calendarList/:calendarId"]
                                                       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}}/users/me/calendarList/:calendarId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList/:calendarId",
  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([
    'accessRole' => '',
    'backgroundColor' => '',
    'colorId' => '',
    'conferenceProperties' => [
        'allowedConferenceSolutionTypes' => [
                
        ]
    ],
    'defaultReminders' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'deleted' => null,
    'description' => '',
    'etag' => '',
    'foregroundColor' => '',
    'hidden' => null,
    'id' => '',
    'kind' => '',
    'location' => '',
    'notificationSettings' => [
        'notifications' => [
                [
                                'method' => '',
                                'type' => ''
                ]
        ]
    ],
    'primary' => null,
    'selected' => null,
    'summary' => '',
    'summaryOverride' => '',
    'timeZone' => ''
  ]),
  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}}/users/me/calendarList/:calendarId', [
  'body' => '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accessRole' => '',
  'backgroundColor' => '',
  'colorId' => '',
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'defaultReminders' => [
    [
        'method' => '',
        'minutes' => 0
    ]
  ],
  'deleted' => null,
  'description' => '',
  'etag' => '',
  'foregroundColor' => '',
  'hidden' => null,
  'id' => '',
  'kind' => '',
  'location' => '',
  'notificationSettings' => [
    'notifications' => [
        [
                'method' => '',
                'type' => ''
        ]
    ]
  ],
  'primary' => null,
  'selected' => null,
  'summary' => '',
  'summaryOverride' => '',
  'timeZone' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accessRole' => '',
  'backgroundColor' => '',
  'colorId' => '',
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'defaultReminders' => [
    [
        'method' => '',
        'minutes' => 0
    ]
  ],
  'deleted' => null,
  'description' => '',
  'etag' => '',
  'foregroundColor' => '',
  'hidden' => null,
  'id' => '',
  'kind' => '',
  'location' => '',
  'notificationSettings' => [
    'notifications' => [
        [
                'method' => '',
                'type' => ''
        ]
    ]
  ],
  'primary' => null,
  'selected' => null,
  'summary' => '',
  'summaryOverride' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/users/me/calendarList/:calendarId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/calendarList/:calendarId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/calendarList/:calendarId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
import http.client

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

payload = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/users/me/calendarList/:calendarId", payload, headers)

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

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

url = "{{baseUrl}}/users/me/calendarList/:calendarId"

payload = {
    "accessRole": "",
    "backgroundColor": "",
    "colorId": "",
    "conferenceProperties": { "allowedConferenceSolutionTypes": [] },
    "defaultReminders": [
        {
            "method": "",
            "minutes": 0
        }
    ],
    "deleted": False,
    "description": "",
    "etag": "",
    "foregroundColor": "",
    "hidden": False,
    "id": "",
    "kind": "",
    "location": "",
    "notificationSettings": { "notifications": [
            {
                "method": "",
                "type": ""
            }
        ] },
    "primary": False,
    "selected": False,
    "summary": "",
    "summaryOverride": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/users/me/calendarList/:calendarId"

payload <- "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/users/me/calendarList/:calendarId")

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  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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/users/me/calendarList/:calendarId') do |req|
  req.body = "{\n  \"accessRole\": \"\",\n  \"backgroundColor\": \"\",\n  \"colorId\": \"\",\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"defaultReminders\": [\n    {\n      \"method\": \"\",\n      \"minutes\": 0\n    }\n  ],\n  \"deleted\": false,\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"foregroundColor\": \"\",\n  \"hidden\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"notificationSettings\": {\n    \"notifications\": [\n      {\n        \"method\": \"\",\n        \"type\": \"\"\n      }\n    ]\n  },\n  \"primary\": false,\n  \"selected\": false,\n  \"summary\": \"\",\n  \"summaryOverride\": \"\",\n  \"timeZone\": \"\"\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}}/users/me/calendarList/:calendarId";

    let payload = json!({
        "accessRole": "",
        "backgroundColor": "",
        "colorId": "",
        "conferenceProperties": json!({"allowedConferenceSolutionTypes": ()}),
        "defaultReminders": (
            json!({
                "method": "",
                "minutes": 0
            })
        ),
        "deleted": false,
        "description": "",
        "etag": "",
        "foregroundColor": "",
        "hidden": false,
        "id": "",
        "kind": "",
        "location": "",
        "notificationSettings": json!({"notifications": (
                json!({
                    "method": "",
                    "type": ""
                })
            )}),
        "primary": false,
        "selected": false,
        "summary": "",
        "summaryOverride": "",
        "timeZone": ""
    });

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/users/me/calendarList/:calendarId \
  --header 'content-type: application/json' \
  --data '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}'
echo '{
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "defaultReminders": [
    {
      "method": "",
      "minutes": 0
    }
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": {
    "notifications": [
      {
        "method": "",
        "type": ""
      }
    ]
  },
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
}' |  \
  http PUT {{baseUrl}}/users/me/calendarList/:calendarId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accessRole": "",\n  "backgroundColor": "",\n  "colorId": "",\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "defaultReminders": [\n    {\n      "method": "",\n      "minutes": 0\n    }\n  ],\n  "deleted": false,\n  "description": "",\n  "etag": "",\n  "foregroundColor": "",\n  "hidden": false,\n  "id": "",\n  "kind": "",\n  "location": "",\n  "notificationSettings": {\n    "notifications": [\n      {\n        "method": "",\n        "type": ""\n      }\n    ]\n  },\n  "primary": false,\n  "selected": false,\n  "summary": "",\n  "summaryOverride": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/users/me/calendarList/:calendarId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accessRole": "",
  "backgroundColor": "",
  "colorId": "",
  "conferenceProperties": ["allowedConferenceSolutionTypes": []],
  "defaultReminders": [
    [
      "method": "",
      "minutes": 0
    ]
  ],
  "deleted": false,
  "description": "",
  "etag": "",
  "foregroundColor": "",
  "hidden": false,
  "id": "",
  "kind": "",
  "location": "",
  "notificationSettings": ["notifications": [
      [
        "method": "",
        "type": ""
      ]
    ]],
  "primary": false,
  "selected": false,
  "summary": "",
  "summaryOverride": "",
  "timeZone": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/calendarList/:calendarId")! 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 calendar.calendarList.watch
{{baseUrl}}/users/me/calendarList/watch
BODY json

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/calendarList/watch");

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/users/me/calendarList/watch" {:content-type :json
                                                                        :form-params {:address ""
                                                                                      :expiration ""
                                                                                      :id ""
                                                                                      :kind ""
                                                                                      :params {}
                                                                                      :payload false
                                                                                      :resourceId ""
                                                                                      :resourceUri ""
                                                                                      :token ""
                                                                                      :type ""}})
require "http/client"

url = "{{baseUrl}}/users/me/calendarList/watch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/users/me/calendarList/watch"),
    Content = new StringContent("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/users/me/calendarList/watch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/users/me/calendarList/watch"

	payload := strings.NewReader("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/users/me/calendarList/watch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 171

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/users/me/calendarList/watch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/calendarList/watch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/watch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/users/me/calendarList/watch")
  .header("content-type", "application/json")
  .body("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/users/me/calendarList/watch');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/users/me/calendarList/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/calendarList/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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}}/users/me/calendarList/watch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/users/me/calendarList/watch")
  .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/users/me/calendarList/watch',
  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({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/users/me/calendarList/watch',
  headers: {'content-type': 'application/json'},
  body: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    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}}/users/me/calendarList/watch');

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

req.type('json');
req.send({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/users/me/calendarList/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

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

const url = '{{baseUrl}}/users/me/calendarList/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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 = @{ @"address": @"",
                              @"expiration": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"params": @{  },
                              @"payload": @NO,
                              @"resourceId": @"",
                              @"resourceUri": @"",
                              @"token": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/users/me/calendarList/watch"]
                                                       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}}/users/me/calendarList/watch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/calendarList/watch",
  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([
    'address' => '',
    'expiration' => '',
    'id' => '',
    'kind' => '',
    'params' => [
        
    ],
    'payload' => null,
    'resourceId' => '',
    'resourceUri' => '',
    'token' => '',
    '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}}/users/me/calendarList/watch', [
  'body' => '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/calendarList/watch');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/users/me/calendarList/watch');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/calendarList/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/calendarList/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

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

conn.request("POST", "/baseUrl/users/me/calendarList/watch", payload, headers)

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

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

url = "{{baseUrl}}/users/me/calendarList/watch"

payload = {
    "address": "",
    "expiration": "",
    "id": "",
    "kind": "",
    "params": {},
    "payload": False,
    "resourceId": "",
    "resourceUri": "",
    "token": "",
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/users/me/calendarList/watch"

payload <- "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/users/me/calendarList/watch")

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/users/me/calendarList/watch') do |req|
  req.body = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/users/me/calendarList/watch";

    let payload = json!({
        "address": "",
        "expiration": "",
        "id": "",
        "kind": "",
        "params": json!({}),
        "payload": false,
        "resourceId": "",
        "resourceUri": "",
        "token": "",
        "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/users/me/calendarList/watch \
  --header 'content-type: application/json' \
  --data '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
echo '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/users/me/calendarList/watch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/users/me/calendarList/watch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": [],
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/calendarList/watch")! 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 calendar.calendars.clear
{{baseUrl}}/calendars/:calendarId/clear
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/clear");

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

(client/post "{{baseUrl}}/calendars/:calendarId/clear")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/clear"

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

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/clear"

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

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

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

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

}
POST /baseUrl/calendars/:calendarId/clear HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/clear")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/clear")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/clear")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/calendars/:calendarId/clear');

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

const options = {method: 'POST', url: '{{baseUrl}}/calendars/:calendarId/clear'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/clear';
const options = {method: 'POST'};

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}}/calendars/:calendarId/clear',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/clear")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/clear',
  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: 'POST', url: '{{baseUrl}}/calendars/:calendarId/clear'};

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

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

const req = unirest('POST', '{{baseUrl}}/calendars/:calendarId/clear');

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}}/calendars/:calendarId/clear'};

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

const url = '{{baseUrl}}/calendars/:calendarId/clear';
const options = {method: 'POST'};

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}}/calendars/:calendarId/clear"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/calendars/:calendarId/clear" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/calendars/:calendarId/clear');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/clear');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/calendars/:calendarId/clear');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/clear' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/clear' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/calendars/:calendarId/clear")

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

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

url = "{{baseUrl}}/calendars/:calendarId/clear"

response = requests.post(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/clear"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/clear")

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

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

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

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

response = conn.post('/baseUrl/calendars/:calendarId/clear') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars/:calendarId/clear
http POST {{baseUrl}}/calendars/:calendarId/clear
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/clear
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/clear")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 calendar.calendars.delete
{{baseUrl}}/calendars/:calendarId
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId");

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

(client/delete "{{baseUrl}}/calendars/:calendarId")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId"

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

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId"

	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/calendars/:calendarId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId"))
    .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}}/calendars/:calendarId")
  .delete(null)
  .build();

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

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

const options = {method: 'DELETE', url: '{{baseUrl}}/calendars/:calendarId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId';
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}}/calendars/:calendarId',
  method: 'DELETE',
  headers: {}
};

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId',
  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}}/calendars/:calendarId'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/calendars/:calendarId');

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}}/calendars/:calendarId'};

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

const url = '{{baseUrl}}/calendars/:calendarId';
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}}/calendars/:calendarId"]
                                                       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}}/calendars/:calendarId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId",
  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}}/calendars/:calendarId');

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

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

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

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

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

conn.request("DELETE", "/baseUrl/calendars/:calendarId")

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

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

url = "{{baseUrl}}/calendars/:calendarId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/calendars/:calendarId"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId")

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/calendars/:calendarId') do |req|
end

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId")! 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 calendar.calendars.get
{{baseUrl}}/calendars/:calendarId
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId");

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

(client/get "{{baseUrl}}/calendars/:calendarId")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId"

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

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId"

	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/calendars/:calendarId HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/calendars/:calendarId'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId',
  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}}/calendars/:calendarId'};

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

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

const req = unirest('GET', '{{baseUrl}}/calendars/:calendarId');

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}}/calendars/:calendarId'};

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

const url = '{{baseUrl}}/calendars/:calendarId';
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}}/calendars/:calendarId"]
                                                       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}}/calendars/:calendarId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId",
  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}}/calendars/:calendarId');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/calendars/:calendarId")

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

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

url = "{{baseUrl}}/calendars/:calendarId"

response = requests.get(url)

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

url <- "{{baseUrl}}/calendars/:calendarId"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId")

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/calendars/:calendarId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId")! 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 calendar.calendars.insert
{{baseUrl}}/calendars
BODY json

{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars");

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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}");

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

(client/post "{{baseUrl}}/calendars" {:content-type :json
                                                      :form-params {:conferenceProperties {:allowedConferenceSolutionTypes []}
                                                                    :description ""
                                                                    :etag ""
                                                                    :id ""
                                                                    :kind ""
                                                                    :location ""
                                                                    :summary ""
                                                                    :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/calendars"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars"),
    Content = new StringContent("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars"

	payload := strings.NewReader("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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/calendars HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 190

{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars")
  .header("content-type", "application/json")
  .body("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars',
  headers: {'content-type': 'application/json'},
  data: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"conferenceProperties":{"allowedConferenceSolutionTypes":[]},"description":"","etag":"","id":"","kind":"","location":"","summary":"","timeZone":""}'
};

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}}/calendars',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "description": "",\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "summary": "",\n  "timeZone": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars")
  .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/calendars',
  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({
  conferenceProperties: {allowedConferenceSolutionTypes: []},
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars',
  headers: {'content-type': 'application/json'},
  body: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  },
  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}}/calendars');

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

req.type('json');
req.send({
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
});

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}}/calendars',
  headers: {'content-type': 'application/json'},
  data: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  }
};

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

const url = '{{baseUrl}}/calendars';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"conferenceProperties":{"allowedConferenceSolutionTypes":[]},"description":"","etag":"","id":"","kind":"","location":"","summary":"","timeZone":""}'
};

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 = @{ @"conferenceProperties": @{ @"allowedConferenceSolutionTypes": @[  ] },
                              @"description": @"",
                              @"etag": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"summary": @"",
                              @"timeZone": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars"]
                                                       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}}/calendars" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars",
  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([
    'conferenceProperties' => [
        'allowedConferenceSolutionTypes' => [
                
        ]
    ],
    'description' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'summary' => '',
    'timeZone' => ''
  ]),
  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}}/calendars', [
  'body' => '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'description' => '',
  'etag' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'summary' => '',
  'timeZone' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'description' => '',
  'etag' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'summary' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/calendars');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
import http.client

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

payload = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

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

conn.request("POST", "/baseUrl/calendars", payload, headers)

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

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

url = "{{baseUrl}}/calendars"

payload = {
    "conferenceProperties": { "allowedConferenceSolutionTypes": [] },
    "description": "",
    "etag": "",
    "id": "",
    "kind": "",
    "location": "",
    "summary": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars"

payload <- "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars")

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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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/calendars') do |req|
  req.body = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"
end

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

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

    let payload = json!({
        "conferenceProperties": json!({"allowedConferenceSolutionTypes": ()}),
        "description": "",
        "etag": "",
        "id": "",
        "kind": "",
        "location": "",
        "summary": "",
        "timeZone": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars \
  --header 'content-type: application/json' \
  --data '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
echo '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}' |  \
  http POST {{baseUrl}}/calendars \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "description": "",\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "summary": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/calendars
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "conferenceProperties": ["allowedConferenceSolutionTypes": []],
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars")! 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()
PATCH calendar.calendars.patch
{{baseUrl}}/calendars/:calendarId
QUERY PARAMS

calendarId
BODY json

{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId");

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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}");

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

(client/patch "{{baseUrl}}/calendars/:calendarId" {:content-type :json
                                                                   :form-params {:conferenceProperties {:allowedConferenceSolutionTypes []}
                                                                                 :description ""
                                                                                 :etag ""
                                                                                 :id ""
                                                                                 :kind ""
                                                                                 :location ""
                                                                                 :summary ""
                                                                                 :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/calendars/:calendarId"),
    Content = new StringContent("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars/:calendarId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId"

	payload := strings.NewReader("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")

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

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

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

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

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

}
PATCH /baseUrl/calendars/:calendarId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 190

{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/calendars/:calendarId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/calendars/:calendarId")
  .header("content-type", "application/json")
  .body("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
});

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

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

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"conferenceProperties":{"allowedConferenceSolutionTypes":[]},"description":"","etag":"","id":"","kind":"","location":"","summary":"","timeZone":""}'
};

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}}/calendars/:calendarId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "description": "",\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "summary": "",\n  "timeZone": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId',
  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({
  conferenceProperties: {allowedConferenceSolutionTypes: []},
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId',
  headers: {'content-type': 'application/json'},
  body: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/calendars/:calendarId');

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

req.type('json');
req.send({
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  }
};

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

const url = '{{baseUrl}}/calendars/:calendarId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"conferenceProperties":{"allowedConferenceSolutionTypes":[]},"description":"","etag":"","id":"","kind":"","location":"","summary":"","timeZone":""}'
};

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 = @{ @"conferenceProperties": @{ @"allowedConferenceSolutionTypes": @[  ] },
                              @"description": @"",
                              @"etag": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"summary": @"",
                              @"timeZone": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/calendars/:calendarId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'conferenceProperties' => [
        'allowedConferenceSolutionTypes' => [
                
        ]
    ],
    'description' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'summary' => '',
    'timeZone' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/calendars/:calendarId', [
  'body' => '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'description' => '',
  'etag' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'summary' => '',
  'timeZone' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'description' => '',
  'etag' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'summary' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
import http.client

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

payload = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/calendars/:calendarId", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId"

payload = {
    "conferenceProperties": { "allowedConferenceSolutionTypes": [] },
    "description": "",
    "etag": "",
    "id": "",
    "kind": "",
    "location": "",
    "summary": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId"

payload <- "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

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

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

response = conn.patch('/baseUrl/calendars/:calendarId') do |req|
  req.body = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars/:calendarId";

    let payload = json!({
        "conferenceProperties": json!({"allowedConferenceSolutionTypes": ()}),
        "description": "",
        "etag": "",
        "id": "",
        "kind": "",
        "location": "",
        "summary": "",
        "timeZone": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/calendars/:calendarId \
  --header 'content-type: application/json' \
  --data '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
echo '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}' |  \
  http PATCH {{baseUrl}}/calendars/:calendarId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "description": "",\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "summary": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "conferenceProperties": ["allowedConferenceSolutionTypes": []],
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
] as [String : Any]

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

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

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

dataTask.resume()
PUT calendar.calendars.update
{{baseUrl}}/calendars/:calendarId
QUERY PARAMS

calendarId
BODY json

{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId");

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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}");

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

(client/put "{{baseUrl}}/calendars/:calendarId" {:content-type :json
                                                                 :form-params {:conferenceProperties {:allowedConferenceSolutionTypes []}
                                                                               :description ""
                                                                               :etag ""
                                                                               :id ""
                                                                               :kind ""
                                                                               :location ""
                                                                               :summary ""
                                                                               :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars/:calendarId"),
    Content = new StringContent("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars/:calendarId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId"

	payload := strings.NewReader("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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/calendars/:calendarId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 190

{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/calendars/:calendarId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/calendars/:calendarId")
  .header("content-type", "application/json")
  .body("{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/calendars/:calendarId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/calendars/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"conferenceProperties":{"allowedConferenceSolutionTypes":[]},"description":"","etag":"","id":"","kind":"","location":"","summary":"","timeZone":""}'
};

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}}/calendars/:calendarId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "description": "",\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "summary": "",\n  "timeZone": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId")
  .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/calendars/:calendarId',
  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({
  conferenceProperties: {allowedConferenceSolutionTypes: []},
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/calendars/:calendarId',
  headers: {'content-type': 'application/json'},
  body: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  },
  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}}/calendars/:calendarId');

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

req.type('json');
req.send({
  conferenceProperties: {
    allowedConferenceSolutionTypes: []
  },
  description: '',
  etag: '',
  id: '',
  kind: '',
  location: '',
  summary: '',
  timeZone: ''
});

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}}/calendars/:calendarId',
  headers: {'content-type': 'application/json'},
  data: {
    conferenceProperties: {allowedConferenceSolutionTypes: []},
    description: '',
    etag: '',
    id: '',
    kind: '',
    location: '',
    summary: '',
    timeZone: ''
  }
};

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

const url = '{{baseUrl}}/calendars/:calendarId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"conferenceProperties":{"allowedConferenceSolutionTypes":[]},"description":"","etag":"","id":"","kind":"","location":"","summary":"","timeZone":""}'
};

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 = @{ @"conferenceProperties": @{ @"allowedConferenceSolutionTypes": @[  ] },
                              @"description": @"",
                              @"etag": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"summary": @"",
                              @"timeZone": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId"]
                                                       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}}/calendars/:calendarId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId",
  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([
    'conferenceProperties' => [
        'allowedConferenceSolutionTypes' => [
                
        ]
    ],
    'description' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'summary' => '',
    'timeZone' => ''
  ]),
  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}}/calendars/:calendarId', [
  'body' => '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'description' => '',
  'etag' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'summary' => '',
  'timeZone' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'conferenceProperties' => [
    'allowedConferenceSolutionTypes' => [
        
    ]
  ],
  'description' => '',
  'etag' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'summary' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
import http.client

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

payload = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/calendars/:calendarId", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId"

payload = {
    "conferenceProperties": { "allowedConferenceSolutionTypes": [] },
    "description": "",
    "etag": "",
    "id": "",
    "kind": "",
    "location": "",
    "summary": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId"

payload <- "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId")

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  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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/calendars/:calendarId') do |req|
  req.body = "{\n  \"conferenceProperties\": {\n    \"allowedConferenceSolutionTypes\": []\n  },\n  \"description\": \"\",\n  \"etag\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"summary\": \"\",\n  \"timeZone\": \"\"\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}}/calendars/:calendarId";

    let payload = json!({
        "conferenceProperties": json!({"allowedConferenceSolutionTypes": ()}),
        "description": "",
        "etag": "",
        "id": "",
        "kind": "",
        "location": "",
        "summary": "",
        "timeZone": ""
    });

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/calendars/:calendarId \
  --header 'content-type: application/json' \
  --data '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}'
echo '{
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": []
  },
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
}' |  \
  http PUT {{baseUrl}}/calendars/:calendarId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "conferenceProperties": {\n    "allowedConferenceSolutionTypes": []\n  },\n  "description": "",\n  "etag": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "summary": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "conferenceProperties": ["allowedConferenceSolutionTypes": []],
  "description": "",
  "etag": "",
  "id": "",
  "kind": "",
  "location": "",
  "summary": "",
  "timeZone": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId")! 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 calendar.channels.stop
{{baseUrl}}/channels/stop
BODY json

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/stop");

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/channels/stop" {:content-type :json
                                                          :form-params {:address ""
                                                                        :expiration ""
                                                                        :id ""
                                                                        :kind ""
                                                                        :params {}
                                                                        :payload false
                                                                        :resourceId ""
                                                                        :resourceUri ""
                                                                        :token ""
                                                                        :type ""}})
require "http/client"

url = "{{baseUrl}}/channels/stop"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/channels/stop"),
    Content = new StringContent("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/channels/stop");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/channels/stop"

	payload := strings.NewReader("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/channels/stop HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 171

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/channels/stop")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/stop"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/channels/stop")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/channels/stop")
  .header("content-type", "application/json")
  .body("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/channels/stop');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/channels/stop',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/stop';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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}}/channels/stop',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/channels/stop")
  .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/channels/stop',
  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({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/channels/stop',
  headers: {'content-type': 'application/json'},
  body: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    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}}/channels/stop');

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

req.type('json');
req.send({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/channels/stop',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

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

const url = '{{baseUrl}}/channels/stop';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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 = @{ @"address": @"",
                              @"expiration": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"params": @{  },
                              @"payload": @NO,
                              @"resourceId": @"",
                              @"resourceUri": @"",
                              @"token": @"",
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/channels/stop"]
                                                       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}}/channels/stop" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels/stop",
  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([
    'address' => '',
    'expiration' => '',
    'id' => '',
    'kind' => '',
    'params' => [
        
    ],
    'payload' => null,
    'resourceId' => '',
    'resourceUri' => '',
    'token' => '',
    '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}}/channels/stop', [
  'body' => '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/channels/stop');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/channels/stop' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/channels/stop' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
import http.client

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

payload = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

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

conn.request("POST", "/baseUrl/channels/stop", payload, headers)

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

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

url = "{{baseUrl}}/channels/stop"

payload = {
    "address": "",
    "expiration": "",
    "id": "",
    "kind": "",
    "params": {},
    "payload": False,
    "resourceId": "",
    "resourceUri": "",
    "token": "",
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/channels/stop"

payload <- "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/channels/stop")

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/channels/stop') do |req|
  req.body = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "address": "",
        "expiration": "",
        "id": "",
        "kind": "",
        "params": json!({}),
        "payload": false,
        "resourceId": "",
        "resourceUri": "",
        "token": "",
        "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/channels/stop \
  --header 'content-type: application/json' \
  --data '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
echo '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/channels/stop \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/channels/stop
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": [],
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/stop")! 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 calendar.colors.get
{{baseUrl}}/colors
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/colors");

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

(client/get "{{baseUrl}}/colors")
require "http/client"

url = "{{baseUrl}}/colors"

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

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

func main() {

	url := "{{baseUrl}}/colors"

	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/colors HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/colors'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/colors")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/colors',
  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}}/colors'};

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

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

const req = unirest('GET', '{{baseUrl}}/colors');

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}}/colors'};

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

const url = '{{baseUrl}}/colors';
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}}/colors"]
                                                       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}}/colors" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/colors")

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

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

url = "{{baseUrl}}/colors"

response = requests.get(url)

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

url <- "{{baseUrl}}/colors"

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

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

url = URI("{{baseUrl}}/colors")

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/colors') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/colors")! 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 calendar.events.delete
{{baseUrl}}/calendars/:calendarId/events/:eventId
QUERY PARAMS

calendarId
eventId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/:eventId");

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

(client/delete "{{baseUrl}}/calendars/:calendarId/events/:eventId")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"

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}}/calendars/:calendarId/events/:eventId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/calendars/:calendarId/events/:eventId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/:eventId"

	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/calendars/:calendarId/events/:eventId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/:eventId"))
    .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}}/calendars/:calendarId/events/:eventId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .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}}/calendars/:calendarId/events/:eventId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
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}}/calendars/:calendarId/events/:eventId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events/:eventId',
  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}}/calendars/:calendarId/events/:eventId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/calendars/:calendarId/events/:eventId');

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}}/calendars/:calendarId/events/:eventId'
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
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}}/calendars/:calendarId/events/:eventId"]
                                                       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}}/calendars/:calendarId/events/:eventId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/:eventId",
  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}}/calendars/:calendarId/events/:eventId');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/calendars/:calendarId/events/:eventId")

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

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

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/events/:eventId"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events/:eventId")

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/calendars/:calendarId/events/:eventId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/events/:eventId";

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/:eventId")! 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 calendar.events.get
{{baseUrl}}/calendars/:calendarId/events/:eventId
QUERY PARAMS

calendarId
eventId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/:eventId");

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

(client/get "{{baseUrl}}/calendars/:calendarId/events/:eventId")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"

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}}/calendars/:calendarId/events/:eventId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/calendars/:calendarId/events/:eventId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/:eventId"

	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/calendars/:calendarId/events/:eventId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
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}}/calendars/:calendarId/events/:eventId',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events/:eventId',
  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}}/calendars/:calendarId/events/:eventId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/calendars/:calendarId/events/:eventId');

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}}/calendars/:calendarId/events/:eventId'
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
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}}/calendars/:calendarId/events/:eventId"]
                                                       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}}/calendars/:calendarId/events/:eventId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/:eventId",
  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}}/calendars/:calendarId/events/:eventId');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/calendars/:calendarId/events/:eventId")

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

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

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"

response = requests.get(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/events/:eventId"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events/:eventId")

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/calendars/:calendarId/events/:eventId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/events/:eventId";

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/calendars/:calendarId/events/:eventId
http GET {{baseUrl}}/calendars/:calendarId/events/:eventId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events/:eventId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/:eventId")! 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 calendar.events.import
{{baseUrl}}/calendars/:calendarId/events/import
QUERY PARAMS

calendarId
BODY json

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/import");

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/calendars/:calendarId/events/import" {:content-type :json
                                                                                :form-params {:anyoneCanAddSelf false
                                                                                              :attachments [{:fileId ""
                                                                                                             :fileUrl ""
                                                                                                             :iconLink ""
                                                                                                             :mimeType ""
                                                                                                             :title ""}]
                                                                                              :attendees [{:additionalGuests 0
                                                                                                           :comment ""
                                                                                                           :displayName ""
                                                                                                           :email ""
                                                                                                           :id ""
                                                                                                           :optional false
                                                                                                           :organizer false
                                                                                                           :resource false
                                                                                                           :responseStatus ""
                                                                                                           :self false}]
                                                                                              :attendeesOmitted false
                                                                                              :colorId ""
                                                                                              :conferenceData {:conferenceId ""
                                                                                                               :conferenceSolution {:iconUri ""
                                                                                                                                    :key {:type ""}
                                                                                                                                    :name ""}
                                                                                                               :createRequest {:conferenceSolutionKey {}
                                                                                                                               :requestId ""
                                                                                                                               :status {:statusCode ""}}
                                                                                                               :entryPoints [{:accessCode ""
                                                                                                                              :entryPointFeatures []
                                                                                                                              :entryPointType ""
                                                                                                                              :label ""
                                                                                                                              :meetingCode ""
                                                                                                                              :passcode ""
                                                                                                                              :password ""
                                                                                                                              :pin ""
                                                                                                                              :regionCode ""
                                                                                                                              :uri ""}]
                                                                                                               :notes ""
                                                                                                               :parameters {:addOnParameters {:parameters {}}}
                                                                                                               :signature ""}
                                                                                              :created ""
                                                                                              :creator {:displayName ""
                                                                                                        :email ""
                                                                                                        :id ""
                                                                                                        :self false}
                                                                                              :description ""
                                                                                              :end {:date ""
                                                                                                    :dateTime ""
                                                                                                    :timeZone ""}
                                                                                              :endTimeUnspecified false
                                                                                              :etag ""
                                                                                              :eventType ""
                                                                                              :extendedProperties {:private {}
                                                                                                                   :shared {}}
                                                                                              :gadget {:display ""
                                                                                                       :height 0
                                                                                                       :iconLink ""
                                                                                                       :link ""
                                                                                                       :preferences {}
                                                                                                       :title ""
                                                                                                       :type ""
                                                                                                       :width 0}
                                                                                              :guestsCanInviteOthers false
                                                                                              :guestsCanModify false
                                                                                              :guestsCanSeeOtherGuests false
                                                                                              :hangoutLink ""
                                                                                              :htmlLink ""
                                                                                              :iCalUID ""
                                                                                              :id ""
                                                                                              :kind ""
                                                                                              :location ""
                                                                                              :locked false
                                                                                              :organizer {:displayName ""
                                                                                                          :email ""
                                                                                                          :id ""
                                                                                                          :self false}
                                                                                              :originalStartTime {}
                                                                                              :privateCopy false
                                                                                              :recurrence []
                                                                                              :recurringEventId ""
                                                                                              :reminders {:overrides [{:method ""
                                                                                                                       :minutes 0}]
                                                                                                          :useDefault false}
                                                                                              :sequence 0
                                                                                              :source {:title ""
                                                                                                       :url ""}
                                                                                              :start {}
                                                                                              :status ""
                                                                                              :summary ""
                                                                                              :transparency ""
                                                                                              :updated ""
                                                                                              :visibility ""
                                                                                              :workingLocationProperties {:customLocation {:label ""}
                                                                                                                          :homeOffice ""
                                                                                                                          :officeLocation {:buildingId ""
                                                                                                                                           :deskId ""
                                                                                                                                           :floorId ""
                                                                                                                                           :floorSectionId ""
                                                                                                                                           :label ""}}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/import"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/import"),
    Content = new StringContent("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/import");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/import"

	payload := strings.NewReader("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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/calendars/:calendarId/events/import HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2664

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/events/import")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/import"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/import")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/events/import")
  .header("content-type", "application/json")
  .body("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/calendars/:calendarId/events/import');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/import',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/import';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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}}/calendars/:calendarId/events/import',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/import")
  .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/calendars/:calendarId/events/import',
  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({
  anyoneCanAddSelf: false,
  attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
    createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {addOnParameters: {parameters: {}}},
    signature: ''
  },
  created: '',
  creator: {displayName: '', email: '', id: '', self: false},
  description: '',
  end: {date: '', dateTime: '', timeZone: ''},
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {private: {}, shared: {}},
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {displayName: '', email: '', id: '', self: false},
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
  sequence: 0,
  source: {title: '', url: ''},
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {label: ''},
    homeOffice: '',
    officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/import',
  headers: {'content-type': 'application/json'},
  body: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  },
  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}}/calendars/:calendarId/events/import');

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

req.type('json');
req.send({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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}}/calendars/:calendarId/events/import',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events/import';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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 = @{ @"anyoneCanAddSelf": @NO,
                              @"attachments": @[ @{ @"fileId": @"", @"fileUrl": @"", @"iconLink": @"", @"mimeType": @"", @"title": @"" } ],
                              @"attendees": @[ @{ @"additionalGuests": @0, @"comment": @"", @"displayName": @"", @"email": @"", @"id": @"", @"optional": @NO, @"organizer": @NO, @"resource": @NO, @"responseStatus": @"", @"self": @NO } ],
                              @"attendeesOmitted": @NO,
                              @"colorId": @"",
                              @"conferenceData": @{ @"conferenceId": @"", @"conferenceSolution": @{ @"iconUri": @"", @"key": @{ @"type": @"" }, @"name": @"" }, @"createRequest": @{ @"conferenceSolutionKey": @{  }, @"requestId": @"", @"status": @{ @"statusCode": @"" } }, @"entryPoints": @[ @{ @"accessCode": @"", @"entryPointFeatures": @[  ], @"entryPointType": @"", @"label": @"", @"meetingCode": @"", @"passcode": @"", @"password": @"", @"pin": @"", @"regionCode": @"", @"uri": @"" } ], @"notes": @"", @"parameters": @{ @"addOnParameters": @{ @"parameters": @{  } } }, @"signature": @"" },
                              @"created": @"",
                              @"creator": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"description": @"",
                              @"end": @{ @"date": @"", @"dateTime": @"", @"timeZone": @"" },
                              @"endTimeUnspecified": @NO,
                              @"etag": @"",
                              @"eventType": @"",
                              @"extendedProperties": @{ @"private": @{  }, @"shared": @{  } },
                              @"gadget": @{ @"display": @"", @"height": @0, @"iconLink": @"", @"link": @"", @"preferences": @{  }, @"title": @"", @"type": @"", @"width": @0 },
                              @"guestsCanInviteOthers": @NO,
                              @"guestsCanModify": @NO,
                              @"guestsCanSeeOtherGuests": @NO,
                              @"hangoutLink": @"",
                              @"htmlLink": @"",
                              @"iCalUID": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"locked": @NO,
                              @"organizer": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"originalStartTime": @{  },
                              @"privateCopy": @NO,
                              @"recurrence": @[  ],
                              @"recurringEventId": @"",
                              @"reminders": @{ @"overrides": @[ @{ @"method": @"", @"minutes": @0 } ], @"useDefault": @NO },
                              @"sequence": @0,
                              @"source": @{ @"title": @"", @"url": @"" },
                              @"start": @{  },
                              @"status": @"",
                              @"summary": @"",
                              @"transparency": @"",
                              @"updated": @"",
                              @"visibility": @"",
                              @"workingLocationProperties": @{ @"customLocation": @{ @"label": @"" }, @"homeOffice": @"", @"officeLocation": @{ @"buildingId": @"", @"deskId": @"", @"floorId": @"", @"floorSectionId": @"", @"label": @"" } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/events/import"]
                                                       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}}/calendars/:calendarId/events/import" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/import",
  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([
    'anyoneCanAddSelf' => null,
    'attachments' => [
        [
                'fileId' => '',
                'fileUrl' => '',
                'iconLink' => '',
                'mimeType' => '',
                'title' => ''
        ]
    ],
    'attendees' => [
        [
                'additionalGuests' => 0,
                'comment' => '',
                'displayName' => '',
                'email' => '',
                'id' => '',
                'optional' => null,
                'organizer' => null,
                'resource' => null,
                'responseStatus' => '',
                'self' => null
        ]
    ],
    'attendeesOmitted' => null,
    'colorId' => '',
    'conferenceData' => [
        'conferenceId' => '',
        'conferenceSolution' => [
                'iconUri' => '',
                'key' => [
                                'type' => ''
                ],
                'name' => ''
        ],
        'createRequest' => [
                'conferenceSolutionKey' => [
                                
                ],
                'requestId' => '',
                'status' => [
                                'statusCode' => ''
                ]
        ],
        'entryPoints' => [
                [
                                'accessCode' => '',
                                'entryPointFeatures' => [
                                                                
                                ],
                                'entryPointType' => '',
                                'label' => '',
                                'meetingCode' => '',
                                'passcode' => '',
                                'password' => '',
                                'pin' => '',
                                'regionCode' => '',
                                'uri' => ''
                ]
        ],
        'notes' => '',
        'parameters' => [
                'addOnParameters' => [
                                'parameters' => [
                                                                
                                ]
                ]
        ],
        'signature' => ''
    ],
    'created' => '',
    'creator' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'description' => '',
    'end' => [
        'date' => '',
        'dateTime' => '',
        'timeZone' => ''
    ],
    'endTimeUnspecified' => null,
    'etag' => '',
    'eventType' => '',
    'extendedProperties' => [
        'private' => [
                
        ],
        'shared' => [
                
        ]
    ],
    'gadget' => [
        'display' => '',
        'height' => 0,
        'iconLink' => '',
        'link' => '',
        'preferences' => [
                
        ],
        'title' => '',
        'type' => '',
        'width' => 0
    ],
    'guestsCanInviteOthers' => null,
    'guestsCanModify' => null,
    'guestsCanSeeOtherGuests' => null,
    'hangoutLink' => '',
    'htmlLink' => '',
    'iCalUID' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'locked' => null,
    'organizer' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'originalStartTime' => [
        
    ],
    'privateCopy' => null,
    'recurrence' => [
        
    ],
    'recurringEventId' => '',
    'reminders' => [
        'overrides' => [
                [
                                'method' => '',
                                'minutes' => 0
                ]
        ],
        'useDefault' => null
    ],
    'sequence' => 0,
    'source' => [
        'title' => '',
        'url' => ''
    ],
    'start' => [
        
    ],
    'status' => '',
    'summary' => '',
    'transparency' => '',
    'updated' => '',
    'visibility' => '',
    'workingLocationProperties' => [
        'customLocation' => [
                'label' => ''
        ],
        'homeOffice' => '',
        'officeLocation' => [
                'buildingId' => '',
                'deskId' => '',
                'floorId' => '',
                'floorSectionId' => '',
                'label' => ''
        ]
    ]
  ]),
  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}}/calendars/:calendarId/events/import', [
  'body' => '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/import');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/import');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/import' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/import' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

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

conn.request("POST", "/baseUrl/calendars/:calendarId/events/import", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/events/import"

payload = {
    "anyoneCanAddSelf": False,
    "attachments": [
        {
            "fileId": "",
            "fileUrl": "",
            "iconLink": "",
            "mimeType": "",
            "title": ""
        }
    ],
    "attendees": [
        {
            "additionalGuests": 0,
            "comment": "",
            "displayName": "",
            "email": "",
            "id": "",
            "optional": False,
            "organizer": False,
            "resource": False,
            "responseStatus": "",
            "self": False
        }
    ],
    "attendeesOmitted": False,
    "colorId": "",
    "conferenceData": {
        "conferenceId": "",
        "conferenceSolution": {
            "iconUri": "",
            "key": { "type": "" },
            "name": ""
        },
        "createRequest": {
            "conferenceSolutionKey": {},
            "requestId": "",
            "status": { "statusCode": "" }
        },
        "entryPoints": [
            {
                "accessCode": "",
                "entryPointFeatures": [],
                "entryPointType": "",
                "label": "",
                "meetingCode": "",
                "passcode": "",
                "password": "",
                "pin": "",
                "regionCode": "",
                "uri": ""
            }
        ],
        "notes": "",
        "parameters": { "addOnParameters": { "parameters": {} } },
        "signature": ""
    },
    "created": "",
    "creator": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "description": "",
    "end": {
        "date": "",
        "dateTime": "",
        "timeZone": ""
    },
    "endTimeUnspecified": False,
    "etag": "",
    "eventType": "",
    "extendedProperties": {
        "private": {},
        "shared": {}
    },
    "gadget": {
        "display": "",
        "height": 0,
        "iconLink": "",
        "link": "",
        "preferences": {},
        "title": "",
        "type": "",
        "width": 0
    },
    "guestsCanInviteOthers": False,
    "guestsCanModify": False,
    "guestsCanSeeOtherGuests": False,
    "hangoutLink": "",
    "htmlLink": "",
    "iCalUID": "",
    "id": "",
    "kind": "",
    "location": "",
    "locked": False,
    "organizer": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "originalStartTime": {},
    "privateCopy": False,
    "recurrence": [],
    "recurringEventId": "",
    "reminders": {
        "overrides": [
            {
                "method": "",
                "minutes": 0
            }
        ],
        "useDefault": False
    },
    "sequence": 0,
    "source": {
        "title": "",
        "url": ""
    },
    "start": {},
    "status": "",
    "summary": "",
    "transparency": "",
    "updated": "",
    "visibility": "",
    "workingLocationProperties": {
        "customLocation": { "label": "" },
        "homeOffice": "",
        "officeLocation": {
            "buildingId": "",
            "deskId": "",
            "floorId": "",
            "floorSectionId": "",
            "label": ""
        }
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/events/import"

payload <- "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events/import")

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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/calendars/:calendarId/events/import') do |req|
  req.body = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/import";

    let payload = json!({
        "anyoneCanAddSelf": false,
        "attachments": (
            json!({
                "fileId": "",
                "fileUrl": "",
                "iconLink": "",
                "mimeType": "",
                "title": ""
            })
        ),
        "attendees": (
            json!({
                "additionalGuests": 0,
                "comment": "",
                "displayName": "",
                "email": "",
                "id": "",
                "optional": false,
                "organizer": false,
                "resource": false,
                "responseStatus": "",
                "self": false
            })
        ),
        "attendeesOmitted": false,
        "colorId": "",
        "conferenceData": json!({
            "conferenceId": "",
            "conferenceSolution": json!({
                "iconUri": "",
                "key": json!({"type": ""}),
                "name": ""
            }),
            "createRequest": json!({
                "conferenceSolutionKey": json!({}),
                "requestId": "",
                "status": json!({"statusCode": ""})
            }),
            "entryPoints": (
                json!({
                    "accessCode": "",
                    "entryPointFeatures": (),
                    "entryPointType": "",
                    "label": "",
                    "meetingCode": "",
                    "passcode": "",
                    "password": "",
                    "pin": "",
                    "regionCode": "",
                    "uri": ""
                })
            ),
            "notes": "",
            "parameters": json!({"addOnParameters": json!({"parameters": json!({})})}),
            "signature": ""
        }),
        "created": "",
        "creator": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "description": "",
        "end": json!({
            "date": "",
            "dateTime": "",
            "timeZone": ""
        }),
        "endTimeUnspecified": false,
        "etag": "",
        "eventType": "",
        "extendedProperties": json!({
            "private": json!({}),
            "shared": json!({})
        }),
        "gadget": json!({
            "display": "",
            "height": 0,
            "iconLink": "",
            "link": "",
            "preferences": json!({}),
            "title": "",
            "type": "",
            "width": 0
        }),
        "guestsCanInviteOthers": false,
        "guestsCanModify": false,
        "guestsCanSeeOtherGuests": false,
        "hangoutLink": "",
        "htmlLink": "",
        "iCalUID": "",
        "id": "",
        "kind": "",
        "location": "",
        "locked": false,
        "organizer": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "originalStartTime": json!({}),
        "privateCopy": false,
        "recurrence": (),
        "recurringEventId": "",
        "reminders": json!({
            "overrides": (
                json!({
                    "method": "",
                    "minutes": 0
                })
            ),
            "useDefault": false
        }),
        "sequence": 0,
        "source": json!({
            "title": "",
            "url": ""
        }),
        "start": json!({}),
        "status": "",
        "summary": "",
        "transparency": "",
        "updated": "",
        "visibility": "",
        "workingLocationProperties": json!({
            "customLocation": json!({"label": ""}),
            "homeOffice": "",
            "officeLocation": json!({
                "buildingId": "",
                "deskId": "",
                "floorId": "",
                "floorSectionId": "",
                "label": ""
            })
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars/:calendarId/events/import \
  --header 'content-type: application/json' \
  --data '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
echo '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/calendars/:calendarId/events/import \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events/import
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "anyoneCanAddSelf": false,
  "attachments": [
    [
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    ]
  ],
  "attendees": [
    [
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    ]
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": [
    "conferenceId": "",
    "conferenceSolution": [
      "iconUri": "",
      "key": ["type": ""],
      "name": ""
    ],
    "createRequest": [
      "conferenceSolutionKey": [],
      "requestId": "",
      "status": ["statusCode": ""]
    ],
    "entryPoints": [
      [
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      ]
    ],
    "notes": "",
    "parameters": ["addOnParameters": ["parameters": []]],
    "signature": ""
  ],
  "created": "",
  "creator": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "description": "",
  "end": [
    "date": "",
    "dateTime": "",
    "timeZone": ""
  ],
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": [
    "private": [],
    "shared": []
  ],
  "gadget": [
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": [],
    "title": "",
    "type": "",
    "width": 0
  ],
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "originalStartTime": [],
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": [
    "overrides": [
      [
        "method": "",
        "minutes": 0
      ]
    ],
    "useDefault": false
  ],
  "sequence": 0,
  "source": [
    "title": "",
    "url": ""
  ],
  "start": [],
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": [
    "customLocation": ["label": ""],
    "homeOffice": "",
    "officeLocation": [
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/import")! 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 calendar.events.insert
{{baseUrl}}/calendars/:calendarId/events
QUERY PARAMS

calendarId
BODY json

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events");

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");

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

(client/post "{{baseUrl}}/calendars/:calendarId/events" {:content-type :json
                                                                         :form-params {:anyoneCanAddSelf false
                                                                                       :attachments [{:fileId ""
                                                                                                      :fileUrl ""
                                                                                                      :iconLink ""
                                                                                                      :mimeType ""
                                                                                                      :title ""}]
                                                                                       :attendees [{:additionalGuests 0
                                                                                                    :comment ""
                                                                                                    :displayName ""
                                                                                                    :email ""
                                                                                                    :id ""
                                                                                                    :optional false
                                                                                                    :organizer false
                                                                                                    :resource false
                                                                                                    :responseStatus ""
                                                                                                    :self false}]
                                                                                       :attendeesOmitted false
                                                                                       :colorId ""
                                                                                       :conferenceData {:conferenceId ""
                                                                                                        :conferenceSolution {:iconUri ""
                                                                                                                             :key {:type ""}
                                                                                                                             :name ""}
                                                                                                        :createRequest {:conferenceSolutionKey {}
                                                                                                                        :requestId ""
                                                                                                                        :status {:statusCode ""}}
                                                                                                        :entryPoints [{:accessCode ""
                                                                                                                       :entryPointFeatures []
                                                                                                                       :entryPointType ""
                                                                                                                       :label ""
                                                                                                                       :meetingCode ""
                                                                                                                       :passcode ""
                                                                                                                       :password ""
                                                                                                                       :pin ""
                                                                                                                       :regionCode ""
                                                                                                                       :uri ""}]
                                                                                                        :notes ""
                                                                                                        :parameters {:addOnParameters {:parameters {}}}
                                                                                                        :signature ""}
                                                                                       :created ""
                                                                                       :creator {:displayName ""
                                                                                                 :email ""
                                                                                                 :id ""
                                                                                                 :self false}
                                                                                       :description ""
                                                                                       :end {:date ""
                                                                                             :dateTime ""
                                                                                             :timeZone ""}
                                                                                       :endTimeUnspecified false
                                                                                       :etag ""
                                                                                       :eventType ""
                                                                                       :extendedProperties {:private {}
                                                                                                            :shared {}}
                                                                                       :gadget {:display ""
                                                                                                :height 0
                                                                                                :iconLink ""
                                                                                                :link ""
                                                                                                :preferences {}
                                                                                                :title ""
                                                                                                :type ""
                                                                                                :width 0}
                                                                                       :guestsCanInviteOthers false
                                                                                       :guestsCanModify false
                                                                                       :guestsCanSeeOtherGuests false
                                                                                       :hangoutLink ""
                                                                                       :htmlLink ""
                                                                                       :iCalUID ""
                                                                                       :id ""
                                                                                       :kind ""
                                                                                       :location ""
                                                                                       :locked false
                                                                                       :organizer {:displayName ""
                                                                                                   :email ""
                                                                                                   :id ""
                                                                                                   :self false}
                                                                                       :originalStartTime {}
                                                                                       :privateCopy false
                                                                                       :recurrence []
                                                                                       :recurringEventId ""
                                                                                       :reminders {:overrides [{:method ""
                                                                                                                :minutes 0}]
                                                                                                   :useDefault false}
                                                                                       :sequence 0
                                                                                       :source {:title ""
                                                                                                :url ""}
                                                                                       :start {}
                                                                                       :status ""
                                                                                       :summary ""
                                                                                       :transparency ""
                                                                                       :updated ""
                                                                                       :visibility ""
                                                                                       :workingLocationProperties {:customLocation {:label ""}
                                                                                                                   :homeOffice ""
                                                                                                                   :officeLocation {:buildingId ""
                                                                                                                                    :deskId ""
                                                                                                                                    :floorId ""
                                                                                                                                    :floorSectionId ""
                                                                                                                                    :label ""}}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events"),
    Content = new StringContent("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events"

	payload := strings.NewReader("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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/calendars/:calendarId/events HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2664

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/events")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/events")
  .header("content-type", "application/json")
  .body("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/calendars/:calendarId/events');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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}}/calendars/:calendarId/events',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events")
  .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/calendars/:calendarId/events',
  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({
  anyoneCanAddSelf: false,
  attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
    createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {addOnParameters: {parameters: {}}},
    signature: ''
  },
  created: '',
  creator: {displayName: '', email: '', id: '', self: false},
  description: '',
  end: {date: '', dateTime: '', timeZone: ''},
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {private: {}, shared: {}},
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {displayName: '', email: '', id: '', self: false},
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
  sequence: 0,
  source: {title: '', url: ''},
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {label: ''},
    homeOffice: '',
    officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events',
  headers: {'content-type': 'application/json'},
  body: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  },
  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}}/calendars/:calendarId/events');

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

req.type('json');
req.send({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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}}/calendars/:calendarId/events',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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 = @{ @"anyoneCanAddSelf": @NO,
                              @"attachments": @[ @{ @"fileId": @"", @"fileUrl": @"", @"iconLink": @"", @"mimeType": @"", @"title": @"" } ],
                              @"attendees": @[ @{ @"additionalGuests": @0, @"comment": @"", @"displayName": @"", @"email": @"", @"id": @"", @"optional": @NO, @"organizer": @NO, @"resource": @NO, @"responseStatus": @"", @"self": @NO } ],
                              @"attendeesOmitted": @NO,
                              @"colorId": @"",
                              @"conferenceData": @{ @"conferenceId": @"", @"conferenceSolution": @{ @"iconUri": @"", @"key": @{ @"type": @"" }, @"name": @"" }, @"createRequest": @{ @"conferenceSolutionKey": @{  }, @"requestId": @"", @"status": @{ @"statusCode": @"" } }, @"entryPoints": @[ @{ @"accessCode": @"", @"entryPointFeatures": @[  ], @"entryPointType": @"", @"label": @"", @"meetingCode": @"", @"passcode": @"", @"password": @"", @"pin": @"", @"regionCode": @"", @"uri": @"" } ], @"notes": @"", @"parameters": @{ @"addOnParameters": @{ @"parameters": @{  } } }, @"signature": @"" },
                              @"created": @"",
                              @"creator": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"description": @"",
                              @"end": @{ @"date": @"", @"dateTime": @"", @"timeZone": @"" },
                              @"endTimeUnspecified": @NO,
                              @"etag": @"",
                              @"eventType": @"",
                              @"extendedProperties": @{ @"private": @{  }, @"shared": @{  } },
                              @"gadget": @{ @"display": @"", @"height": @0, @"iconLink": @"", @"link": @"", @"preferences": @{  }, @"title": @"", @"type": @"", @"width": @0 },
                              @"guestsCanInviteOthers": @NO,
                              @"guestsCanModify": @NO,
                              @"guestsCanSeeOtherGuests": @NO,
                              @"hangoutLink": @"",
                              @"htmlLink": @"",
                              @"iCalUID": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"locked": @NO,
                              @"organizer": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"originalStartTime": @{  },
                              @"privateCopy": @NO,
                              @"recurrence": @[  ],
                              @"recurringEventId": @"",
                              @"reminders": @{ @"overrides": @[ @{ @"method": @"", @"minutes": @0 } ], @"useDefault": @NO },
                              @"sequence": @0,
                              @"source": @{ @"title": @"", @"url": @"" },
                              @"start": @{  },
                              @"status": @"",
                              @"summary": @"",
                              @"transparency": @"",
                              @"updated": @"",
                              @"visibility": @"",
                              @"workingLocationProperties": @{ @"customLocation": @{ @"label": @"" }, @"homeOffice": @"", @"officeLocation": @{ @"buildingId": @"", @"deskId": @"", @"floorId": @"", @"floorSectionId": @"", @"label": @"" } } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/events"]
                                                       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}}/calendars/:calendarId/events" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events",
  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([
    'anyoneCanAddSelf' => null,
    'attachments' => [
        [
                'fileId' => '',
                'fileUrl' => '',
                'iconLink' => '',
                'mimeType' => '',
                'title' => ''
        ]
    ],
    'attendees' => [
        [
                'additionalGuests' => 0,
                'comment' => '',
                'displayName' => '',
                'email' => '',
                'id' => '',
                'optional' => null,
                'organizer' => null,
                'resource' => null,
                'responseStatus' => '',
                'self' => null
        ]
    ],
    'attendeesOmitted' => null,
    'colorId' => '',
    'conferenceData' => [
        'conferenceId' => '',
        'conferenceSolution' => [
                'iconUri' => '',
                'key' => [
                                'type' => ''
                ],
                'name' => ''
        ],
        'createRequest' => [
                'conferenceSolutionKey' => [
                                
                ],
                'requestId' => '',
                'status' => [
                                'statusCode' => ''
                ]
        ],
        'entryPoints' => [
                [
                                'accessCode' => '',
                                'entryPointFeatures' => [
                                                                
                                ],
                                'entryPointType' => '',
                                'label' => '',
                                'meetingCode' => '',
                                'passcode' => '',
                                'password' => '',
                                'pin' => '',
                                'regionCode' => '',
                                'uri' => ''
                ]
        ],
        'notes' => '',
        'parameters' => [
                'addOnParameters' => [
                                'parameters' => [
                                                                
                                ]
                ]
        ],
        'signature' => ''
    ],
    'created' => '',
    'creator' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'description' => '',
    'end' => [
        'date' => '',
        'dateTime' => '',
        'timeZone' => ''
    ],
    'endTimeUnspecified' => null,
    'etag' => '',
    'eventType' => '',
    'extendedProperties' => [
        'private' => [
                
        ],
        'shared' => [
                
        ]
    ],
    'gadget' => [
        'display' => '',
        'height' => 0,
        'iconLink' => '',
        'link' => '',
        'preferences' => [
                
        ],
        'title' => '',
        'type' => '',
        'width' => 0
    ],
    'guestsCanInviteOthers' => null,
    'guestsCanModify' => null,
    'guestsCanSeeOtherGuests' => null,
    'hangoutLink' => '',
    'htmlLink' => '',
    'iCalUID' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'locked' => null,
    'organizer' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'originalStartTime' => [
        
    ],
    'privateCopy' => null,
    'recurrence' => [
        
    ],
    'recurringEventId' => '',
    'reminders' => [
        'overrides' => [
                [
                                'method' => '',
                                'minutes' => 0
                ]
        ],
        'useDefault' => null
    ],
    'sequence' => 0,
    'source' => [
        'title' => '',
        'url' => ''
    ],
    'start' => [
        
    ],
    'status' => '',
    'summary' => '',
    'transparency' => '',
    'updated' => '',
    'visibility' => '',
    'workingLocationProperties' => [
        'customLocation' => [
                'label' => ''
        ],
        'homeOffice' => '',
        'officeLocation' => [
                'buildingId' => '',
                'deskId' => '',
                'floorId' => '',
                'floorSectionId' => '',
                'label' => ''
        ]
    ]
  ]),
  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}}/calendars/:calendarId/events', [
  'body' => '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/events');
$request->setRequestMethod('POST');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

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

conn.request("POST", "/baseUrl/calendars/:calendarId/events", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/events"

payload = {
    "anyoneCanAddSelf": False,
    "attachments": [
        {
            "fileId": "",
            "fileUrl": "",
            "iconLink": "",
            "mimeType": "",
            "title": ""
        }
    ],
    "attendees": [
        {
            "additionalGuests": 0,
            "comment": "",
            "displayName": "",
            "email": "",
            "id": "",
            "optional": False,
            "organizer": False,
            "resource": False,
            "responseStatus": "",
            "self": False
        }
    ],
    "attendeesOmitted": False,
    "colorId": "",
    "conferenceData": {
        "conferenceId": "",
        "conferenceSolution": {
            "iconUri": "",
            "key": { "type": "" },
            "name": ""
        },
        "createRequest": {
            "conferenceSolutionKey": {},
            "requestId": "",
            "status": { "statusCode": "" }
        },
        "entryPoints": [
            {
                "accessCode": "",
                "entryPointFeatures": [],
                "entryPointType": "",
                "label": "",
                "meetingCode": "",
                "passcode": "",
                "password": "",
                "pin": "",
                "regionCode": "",
                "uri": ""
            }
        ],
        "notes": "",
        "parameters": { "addOnParameters": { "parameters": {} } },
        "signature": ""
    },
    "created": "",
    "creator": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "description": "",
    "end": {
        "date": "",
        "dateTime": "",
        "timeZone": ""
    },
    "endTimeUnspecified": False,
    "etag": "",
    "eventType": "",
    "extendedProperties": {
        "private": {},
        "shared": {}
    },
    "gadget": {
        "display": "",
        "height": 0,
        "iconLink": "",
        "link": "",
        "preferences": {},
        "title": "",
        "type": "",
        "width": 0
    },
    "guestsCanInviteOthers": False,
    "guestsCanModify": False,
    "guestsCanSeeOtherGuests": False,
    "hangoutLink": "",
    "htmlLink": "",
    "iCalUID": "",
    "id": "",
    "kind": "",
    "location": "",
    "locked": False,
    "organizer": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "originalStartTime": {},
    "privateCopy": False,
    "recurrence": [],
    "recurringEventId": "",
    "reminders": {
        "overrides": [
            {
                "method": "",
                "minutes": 0
            }
        ],
        "useDefault": False
    },
    "sequence": 0,
    "source": {
        "title": "",
        "url": ""
    },
    "start": {},
    "status": "",
    "summary": "",
    "transparency": "",
    "updated": "",
    "visibility": "",
    "workingLocationProperties": {
        "customLocation": { "label": "" },
        "homeOffice": "",
        "officeLocation": {
            "buildingId": "",
            "deskId": "",
            "floorId": "",
            "floorSectionId": "",
            "label": ""
        }
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/events"

payload <- "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events")

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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/calendars/:calendarId/events') do |req|
  req.body = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events";

    let payload = json!({
        "anyoneCanAddSelf": false,
        "attachments": (
            json!({
                "fileId": "",
                "fileUrl": "",
                "iconLink": "",
                "mimeType": "",
                "title": ""
            })
        ),
        "attendees": (
            json!({
                "additionalGuests": 0,
                "comment": "",
                "displayName": "",
                "email": "",
                "id": "",
                "optional": false,
                "organizer": false,
                "resource": false,
                "responseStatus": "",
                "self": false
            })
        ),
        "attendeesOmitted": false,
        "colorId": "",
        "conferenceData": json!({
            "conferenceId": "",
            "conferenceSolution": json!({
                "iconUri": "",
                "key": json!({"type": ""}),
                "name": ""
            }),
            "createRequest": json!({
                "conferenceSolutionKey": json!({}),
                "requestId": "",
                "status": json!({"statusCode": ""})
            }),
            "entryPoints": (
                json!({
                    "accessCode": "",
                    "entryPointFeatures": (),
                    "entryPointType": "",
                    "label": "",
                    "meetingCode": "",
                    "passcode": "",
                    "password": "",
                    "pin": "",
                    "regionCode": "",
                    "uri": ""
                })
            ),
            "notes": "",
            "parameters": json!({"addOnParameters": json!({"parameters": json!({})})}),
            "signature": ""
        }),
        "created": "",
        "creator": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "description": "",
        "end": json!({
            "date": "",
            "dateTime": "",
            "timeZone": ""
        }),
        "endTimeUnspecified": false,
        "etag": "",
        "eventType": "",
        "extendedProperties": json!({
            "private": json!({}),
            "shared": json!({})
        }),
        "gadget": json!({
            "display": "",
            "height": 0,
            "iconLink": "",
            "link": "",
            "preferences": json!({}),
            "title": "",
            "type": "",
            "width": 0
        }),
        "guestsCanInviteOthers": false,
        "guestsCanModify": false,
        "guestsCanSeeOtherGuests": false,
        "hangoutLink": "",
        "htmlLink": "",
        "iCalUID": "",
        "id": "",
        "kind": "",
        "location": "",
        "locked": false,
        "organizer": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "originalStartTime": json!({}),
        "privateCopy": false,
        "recurrence": (),
        "recurringEventId": "",
        "reminders": json!({
            "overrides": (
                json!({
                    "method": "",
                    "minutes": 0
                })
            ),
            "useDefault": false
        }),
        "sequence": 0,
        "source": json!({
            "title": "",
            "url": ""
        }),
        "start": json!({}),
        "status": "",
        "summary": "",
        "transparency": "",
        "updated": "",
        "visibility": "",
        "workingLocationProperties": json!({
            "customLocation": json!({"label": ""}),
            "homeOffice": "",
            "officeLocation": json!({
                "buildingId": "",
                "deskId": "",
                "floorId": "",
                "floorSectionId": "",
                "label": ""
            })
        })
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars/:calendarId/events \
  --header 'content-type: application/json' \
  --data '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
echo '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/calendars/:calendarId/events \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "anyoneCanAddSelf": false,
  "attachments": [
    [
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    ]
  ],
  "attendees": [
    [
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    ]
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": [
    "conferenceId": "",
    "conferenceSolution": [
      "iconUri": "",
      "key": ["type": ""],
      "name": ""
    ],
    "createRequest": [
      "conferenceSolutionKey": [],
      "requestId": "",
      "status": ["statusCode": ""]
    ],
    "entryPoints": [
      [
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      ]
    ],
    "notes": "",
    "parameters": ["addOnParameters": ["parameters": []]],
    "signature": ""
  ],
  "created": "",
  "creator": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "description": "",
  "end": [
    "date": "",
    "dateTime": "",
    "timeZone": ""
  ],
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": [
    "private": [],
    "shared": []
  ],
  "gadget": [
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": [],
    "title": "",
    "type": "",
    "width": 0
  ],
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "originalStartTime": [],
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": [
    "overrides": [
      [
        "method": "",
        "minutes": 0
      ]
    ],
    "useDefault": false
  ],
  "sequence": 0,
  "source": [
    "title": "",
    "url": ""
  ],
  "start": [],
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": [
    "customLocation": ["label": ""],
    "homeOffice": "",
    "officeLocation": [
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events")! 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 calendar.events.instances
{{baseUrl}}/calendars/:calendarId/events/:eventId/instances
QUERY PARAMS

calendarId
eventId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances");

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

(client/get "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances"

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}}/calendars/:calendarId/events/:eventId/instances"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/calendars/:calendarId/events/:eventId/instances");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances"

	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/calendars/:calendarId/events/:eventId/instances HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/:eventId/instances"))
    .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}}/calendars/:calendarId/events/:eventId/instances")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/calendars/:calendarId/events/:eventId/instances")
  .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}}/calendars/:calendarId/events/:eventId/instances');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId/instances'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId/instances';
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}}/calendars/:calendarId/events/:eventId/instances',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId/instances")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events/:eventId/instances',
  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}}/calendars/:calendarId/events/:eventId/instances'
};

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

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

const req = unirest('GET', '{{baseUrl}}/calendars/:calendarId/events/:eventId/instances');

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}}/calendars/:calendarId/events/:eventId/instances'
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId/instances';
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}}/calendars/:calendarId/events/:eventId/instances"]
                                                       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}}/calendars/:calendarId/events/:eventId/instances" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances",
  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}}/calendars/:calendarId/events/:eventId/instances');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId/instances');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId/instances');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId/instances' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId/instances' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/calendars/:calendarId/events/:eventId/instances")

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

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

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances"

response = requests.get(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events/:eventId/instances")

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/calendars/:calendarId/events/:eventId/instances') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances";

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/calendars/:calendarId/events/:eventId/instances
http GET {{baseUrl}}/calendars/:calendarId/events/:eventId/instances
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events/:eventId/instances
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/:eventId/instances")! 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 calendar.events.list
{{baseUrl}}/calendars/:calendarId/events
QUERY PARAMS

calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events");

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

(client/get "{{baseUrl}}/calendars/:calendarId/events")
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events"

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

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events"

	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/calendars/:calendarId/events HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/calendars/:calendarId/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events';
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}}/calendars/:calendarId/events',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events',
  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}}/calendars/:calendarId/events'};

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

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

const req = unirest('GET', '{{baseUrl}}/calendars/:calendarId/events');

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}}/calendars/:calendarId/events'};

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

const url = '{{baseUrl}}/calendars/:calendarId/events';
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}}/calendars/:calendarId/events"]
                                                       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}}/calendars/:calendarId/events" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events",
  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}}/calendars/:calendarId/events');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/calendars/:calendarId/events")

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

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

url = "{{baseUrl}}/calendars/:calendarId/events"

response = requests.get(url)

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

url <- "{{baseUrl}}/calendars/:calendarId/events"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events")

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/calendars/:calendarId/events') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events")! 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 calendar.events.move
{{baseUrl}}/calendars/:calendarId/events/:eventId/move
QUERY PARAMS

destination
calendarId
eventId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=");

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

(client/post "{{baseUrl}}/calendars/:calendarId/events/:eventId/move" {:query-params {:destination ""}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination="

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination="

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

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

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

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

}
POST /baseUrl/calendars/:calendarId/events/:eventId/move?destination= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination="))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId/move',
  params: {destination: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=';
const options = {method: 'POST'};

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}}/calendars/:calendarId/events/:eventId/move?destination=',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events/:eventId/move?destination=',
  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: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId/move',
  qs: {destination: ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/calendars/:calendarId/events/:eventId/move');

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

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}}/calendars/:calendarId/events/:eventId/move',
  params: {destination: ''}
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=';
const options = {method: 'POST'};

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}}/calendars/:calendarId/events/:eventId/move?destination="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/calendars/:calendarId/events/:eventId/move?destination=" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId/move');
$request->setMethod(HTTP_METH_POST);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId/move');
$request->setRequestMethod('POST');
$request->setQuery(new http\QueryString([
  'destination' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/calendars/:calendarId/events/:eventId/move?destination=")

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

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

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId/move"

querystring = {"destination":""}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/events/:eventId/move"

queryString <- list(destination = "")

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=")

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

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

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

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

response = conn.post('/baseUrl/calendars/:calendarId/events/:eventId/move') do |req|
  req.params['destination'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/events/:eventId/move";

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

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

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

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination='
http POST '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination='
wget --quiet \
  --method POST \
  --output-document \
  - '{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/:eventId/move?destination=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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

dataTask.resume()
PATCH calendar.events.patch
{{baseUrl}}/calendars/:calendarId/events/:eventId
QUERY PARAMS

calendarId
eventId
BODY json

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/:eventId");

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");

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

(client/patch "{{baseUrl}}/calendars/:calendarId/events/:eventId" {:content-type :json
                                                                                   :form-params {:anyoneCanAddSelf false
                                                                                                 :attachments [{:fileId ""
                                                                                                                :fileUrl ""
                                                                                                                :iconLink ""
                                                                                                                :mimeType ""
                                                                                                                :title ""}]
                                                                                                 :attendees [{:additionalGuests 0
                                                                                                              :comment ""
                                                                                                              :displayName ""
                                                                                                              :email ""
                                                                                                              :id ""
                                                                                                              :optional false
                                                                                                              :organizer false
                                                                                                              :resource false
                                                                                                              :responseStatus ""
                                                                                                              :self false}]
                                                                                                 :attendeesOmitted false
                                                                                                 :colorId ""
                                                                                                 :conferenceData {:conferenceId ""
                                                                                                                  :conferenceSolution {:iconUri ""
                                                                                                                                       :key {:type ""}
                                                                                                                                       :name ""}
                                                                                                                  :createRequest {:conferenceSolutionKey {}
                                                                                                                                  :requestId ""
                                                                                                                                  :status {:statusCode ""}}
                                                                                                                  :entryPoints [{:accessCode ""
                                                                                                                                 :entryPointFeatures []
                                                                                                                                 :entryPointType ""
                                                                                                                                 :label ""
                                                                                                                                 :meetingCode ""
                                                                                                                                 :passcode ""
                                                                                                                                 :password ""
                                                                                                                                 :pin ""
                                                                                                                                 :regionCode ""
                                                                                                                                 :uri ""}]
                                                                                                                  :notes ""
                                                                                                                  :parameters {:addOnParameters {:parameters {}}}
                                                                                                                  :signature ""}
                                                                                                 :created ""
                                                                                                 :creator {:displayName ""
                                                                                                           :email ""
                                                                                                           :id ""
                                                                                                           :self false}
                                                                                                 :description ""
                                                                                                 :end {:date ""
                                                                                                       :dateTime ""
                                                                                                       :timeZone ""}
                                                                                                 :endTimeUnspecified false
                                                                                                 :etag ""
                                                                                                 :eventType ""
                                                                                                 :extendedProperties {:private {}
                                                                                                                      :shared {}}
                                                                                                 :gadget {:display ""
                                                                                                          :height 0
                                                                                                          :iconLink ""
                                                                                                          :link ""
                                                                                                          :preferences {}
                                                                                                          :title ""
                                                                                                          :type ""
                                                                                                          :width 0}
                                                                                                 :guestsCanInviteOthers false
                                                                                                 :guestsCanModify false
                                                                                                 :guestsCanSeeOtherGuests false
                                                                                                 :hangoutLink ""
                                                                                                 :htmlLink ""
                                                                                                 :iCalUID ""
                                                                                                 :id ""
                                                                                                 :kind ""
                                                                                                 :location ""
                                                                                                 :locked false
                                                                                                 :organizer {:displayName ""
                                                                                                             :email ""
                                                                                                             :id ""
                                                                                                             :self false}
                                                                                                 :originalStartTime {}
                                                                                                 :privateCopy false
                                                                                                 :recurrence []
                                                                                                 :recurringEventId ""
                                                                                                 :reminders {:overrides [{:method ""
                                                                                                                          :minutes 0}]
                                                                                                             :useDefault false}
                                                                                                 :sequence 0
                                                                                                 :source {:title ""
                                                                                                          :url ""}
                                                                                                 :start {}
                                                                                                 :status ""
                                                                                                 :summary ""
                                                                                                 :transparency ""
                                                                                                 :updated ""
                                                                                                 :visibility ""
                                                                                                 :workingLocationProperties {:customLocation {:label ""}
                                                                                                                             :homeOffice ""
                                                                                                                             :officeLocation {:buildingId ""
                                                                                                                                              :deskId ""
                                                                                                                                              :floorId ""
                                                                                                                                              :floorSectionId ""
                                                                                                                                              :label ""}}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/calendars/:calendarId/events/:eventId"),
    Content = new StringContent("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/:eventId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/:eventId"

	payload := strings.NewReader("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")

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

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

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

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

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

}
PATCH /baseUrl/calendars/:calendarId/events/:eventId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2664

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/:eventId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .header("content-type", "application/json")
  .body("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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

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

xhr.open('PATCH', '{{baseUrl}}/calendars/:calendarId/events/:eventId');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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}}/calendars/:calendarId/events/:eventId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events/:eventId',
  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({
  anyoneCanAddSelf: false,
  attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
    createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {addOnParameters: {parameters: {}}},
    signature: ''
  },
  created: '',
  creator: {displayName: '', email: '', id: '', self: false},
  description: '',
  end: {date: '', dateTime: '', timeZone: ''},
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {private: {}, shared: {}},
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {displayName: '', email: '', id: '', self: false},
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
  sequence: 0,
  source: {title: '', url: ''},
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {label: ''},
    homeOffice: '',
    officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId',
  headers: {'content-type': 'application/json'},
  body: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/calendars/:calendarId/events/:eventId');

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

req.type('json');
req.send({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

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

const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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 = @{ @"anyoneCanAddSelf": @NO,
                              @"attachments": @[ @{ @"fileId": @"", @"fileUrl": @"", @"iconLink": @"", @"mimeType": @"", @"title": @"" } ],
                              @"attendees": @[ @{ @"additionalGuests": @0, @"comment": @"", @"displayName": @"", @"email": @"", @"id": @"", @"optional": @NO, @"organizer": @NO, @"resource": @NO, @"responseStatus": @"", @"self": @NO } ],
                              @"attendeesOmitted": @NO,
                              @"colorId": @"",
                              @"conferenceData": @{ @"conferenceId": @"", @"conferenceSolution": @{ @"iconUri": @"", @"key": @{ @"type": @"" }, @"name": @"" }, @"createRequest": @{ @"conferenceSolutionKey": @{  }, @"requestId": @"", @"status": @{ @"statusCode": @"" } }, @"entryPoints": @[ @{ @"accessCode": @"", @"entryPointFeatures": @[  ], @"entryPointType": @"", @"label": @"", @"meetingCode": @"", @"passcode": @"", @"password": @"", @"pin": @"", @"regionCode": @"", @"uri": @"" } ], @"notes": @"", @"parameters": @{ @"addOnParameters": @{ @"parameters": @{  } } }, @"signature": @"" },
                              @"created": @"",
                              @"creator": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"description": @"",
                              @"end": @{ @"date": @"", @"dateTime": @"", @"timeZone": @"" },
                              @"endTimeUnspecified": @NO,
                              @"etag": @"",
                              @"eventType": @"",
                              @"extendedProperties": @{ @"private": @{  }, @"shared": @{  } },
                              @"gadget": @{ @"display": @"", @"height": @0, @"iconLink": @"", @"link": @"", @"preferences": @{  }, @"title": @"", @"type": @"", @"width": @0 },
                              @"guestsCanInviteOthers": @NO,
                              @"guestsCanModify": @NO,
                              @"guestsCanSeeOtherGuests": @NO,
                              @"hangoutLink": @"",
                              @"htmlLink": @"",
                              @"iCalUID": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"locked": @NO,
                              @"organizer": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"originalStartTime": @{  },
                              @"privateCopy": @NO,
                              @"recurrence": @[  ],
                              @"recurringEventId": @"",
                              @"reminders": @{ @"overrides": @[ @{ @"method": @"", @"minutes": @0 } ], @"useDefault": @NO },
                              @"sequence": @0,
                              @"source": @{ @"title": @"", @"url": @"" },
                              @"start": @{  },
                              @"status": @"",
                              @"summary": @"",
                              @"transparency": @"",
                              @"updated": @"",
                              @"visibility": @"",
                              @"workingLocationProperties": @{ @"customLocation": @{ @"label": @"" }, @"homeOffice": @"", @"officeLocation": @{ @"buildingId": @"", @"deskId": @"", @"floorId": @"", @"floorSectionId": @"", @"label": @"" } } };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/calendars/:calendarId/events/:eventId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/:eventId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'anyoneCanAddSelf' => null,
    'attachments' => [
        [
                'fileId' => '',
                'fileUrl' => '',
                'iconLink' => '',
                'mimeType' => '',
                'title' => ''
        ]
    ],
    'attendees' => [
        [
                'additionalGuests' => 0,
                'comment' => '',
                'displayName' => '',
                'email' => '',
                'id' => '',
                'optional' => null,
                'organizer' => null,
                'resource' => null,
                'responseStatus' => '',
                'self' => null
        ]
    ],
    'attendeesOmitted' => null,
    'colorId' => '',
    'conferenceData' => [
        'conferenceId' => '',
        'conferenceSolution' => [
                'iconUri' => '',
                'key' => [
                                'type' => ''
                ],
                'name' => ''
        ],
        'createRequest' => [
                'conferenceSolutionKey' => [
                                
                ],
                'requestId' => '',
                'status' => [
                                'statusCode' => ''
                ]
        ],
        'entryPoints' => [
                [
                                'accessCode' => '',
                                'entryPointFeatures' => [
                                                                
                                ],
                                'entryPointType' => '',
                                'label' => '',
                                'meetingCode' => '',
                                'passcode' => '',
                                'password' => '',
                                'pin' => '',
                                'regionCode' => '',
                                'uri' => ''
                ]
        ],
        'notes' => '',
        'parameters' => [
                'addOnParameters' => [
                                'parameters' => [
                                                                
                                ]
                ]
        ],
        'signature' => ''
    ],
    'created' => '',
    'creator' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'description' => '',
    'end' => [
        'date' => '',
        'dateTime' => '',
        'timeZone' => ''
    ],
    'endTimeUnspecified' => null,
    'etag' => '',
    'eventType' => '',
    'extendedProperties' => [
        'private' => [
                
        ],
        'shared' => [
                
        ]
    ],
    'gadget' => [
        'display' => '',
        'height' => 0,
        'iconLink' => '',
        'link' => '',
        'preferences' => [
                
        ],
        'title' => '',
        'type' => '',
        'width' => 0
    ],
    'guestsCanInviteOthers' => null,
    'guestsCanModify' => null,
    'guestsCanSeeOtherGuests' => null,
    'hangoutLink' => '',
    'htmlLink' => '',
    'iCalUID' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'locked' => null,
    'organizer' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'originalStartTime' => [
        
    ],
    'privateCopy' => null,
    'recurrence' => [
        
    ],
    'recurringEventId' => '',
    'reminders' => [
        'overrides' => [
                [
                                'method' => '',
                                'minutes' => 0
                ]
        ],
        'useDefault' => null
    ],
    'sequence' => 0,
    'source' => [
        'title' => '',
        'url' => ''
    ],
    'start' => [
        
    ],
    'status' => '',
    'summary' => '',
    'transparency' => '',
    'updated' => '',
    'visibility' => '',
    'workingLocationProperties' => [
        'customLocation' => [
                'label' => ''
        ],
        'homeOffice' => '',
        'officeLocation' => [
                'buildingId' => '',
                'deskId' => '',
                'floorId' => '',
                'floorSectionId' => '',
                'label' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/calendars/:calendarId/events/:eventId', [
  'body' => '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
import http.client

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

payload = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

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

conn.request("PATCH", "/baseUrl/calendars/:calendarId/events/:eventId", payload, headers)

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

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

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"

payload = {
    "anyoneCanAddSelf": False,
    "attachments": [
        {
            "fileId": "",
            "fileUrl": "",
            "iconLink": "",
            "mimeType": "",
            "title": ""
        }
    ],
    "attendees": [
        {
            "additionalGuests": 0,
            "comment": "",
            "displayName": "",
            "email": "",
            "id": "",
            "optional": False,
            "organizer": False,
            "resource": False,
            "responseStatus": "",
            "self": False
        }
    ],
    "attendeesOmitted": False,
    "colorId": "",
    "conferenceData": {
        "conferenceId": "",
        "conferenceSolution": {
            "iconUri": "",
            "key": { "type": "" },
            "name": ""
        },
        "createRequest": {
            "conferenceSolutionKey": {},
            "requestId": "",
            "status": { "statusCode": "" }
        },
        "entryPoints": [
            {
                "accessCode": "",
                "entryPointFeatures": [],
                "entryPointType": "",
                "label": "",
                "meetingCode": "",
                "passcode": "",
                "password": "",
                "pin": "",
                "regionCode": "",
                "uri": ""
            }
        ],
        "notes": "",
        "parameters": { "addOnParameters": { "parameters": {} } },
        "signature": ""
    },
    "created": "",
    "creator": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "description": "",
    "end": {
        "date": "",
        "dateTime": "",
        "timeZone": ""
    },
    "endTimeUnspecified": False,
    "etag": "",
    "eventType": "",
    "extendedProperties": {
        "private": {},
        "shared": {}
    },
    "gadget": {
        "display": "",
        "height": 0,
        "iconLink": "",
        "link": "",
        "preferences": {},
        "title": "",
        "type": "",
        "width": 0
    },
    "guestsCanInviteOthers": False,
    "guestsCanModify": False,
    "guestsCanSeeOtherGuests": False,
    "hangoutLink": "",
    "htmlLink": "",
    "iCalUID": "",
    "id": "",
    "kind": "",
    "location": "",
    "locked": False,
    "organizer": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "originalStartTime": {},
    "privateCopy": False,
    "recurrence": [],
    "recurringEventId": "",
    "reminders": {
        "overrides": [
            {
                "method": "",
                "minutes": 0
            }
        ],
        "useDefault": False
    },
    "sequence": 0,
    "source": {
        "title": "",
        "url": ""
    },
    "start": {},
    "status": "",
    "summary": "",
    "transparency": "",
    "updated": "",
    "visibility": "",
    "workingLocationProperties": {
        "customLocation": { "label": "" },
        "homeOffice": "",
        "officeLocation": {
            "buildingId": "",
            "deskId": "",
            "floorId": "",
            "floorSectionId": "",
            "label": ""
        }
    }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/calendars/:calendarId/events/:eventId"

payload <- "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/calendars/:calendarId/events/:eventId")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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.patch('/baseUrl/calendars/:calendarId/events/:eventId') do |req|
  req.body = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/:eventId";

    let payload = json!({
        "anyoneCanAddSelf": false,
        "attachments": (
            json!({
                "fileId": "",
                "fileUrl": "",
                "iconLink": "",
                "mimeType": "",
                "title": ""
            })
        ),
        "attendees": (
            json!({
                "additionalGuests": 0,
                "comment": "",
                "displayName": "",
                "email": "",
                "id": "",
                "optional": false,
                "organizer": false,
                "resource": false,
                "responseStatus": "",
                "self": false
            })
        ),
        "attendeesOmitted": false,
        "colorId": "",
        "conferenceData": json!({
            "conferenceId": "",
            "conferenceSolution": json!({
                "iconUri": "",
                "key": json!({"type": ""}),
                "name": ""
            }),
            "createRequest": json!({
                "conferenceSolutionKey": json!({}),
                "requestId": "",
                "status": json!({"statusCode": ""})
            }),
            "entryPoints": (
                json!({
                    "accessCode": "",
                    "entryPointFeatures": (),
                    "entryPointType": "",
                    "label": "",
                    "meetingCode": "",
                    "passcode": "",
                    "password": "",
                    "pin": "",
                    "regionCode": "",
                    "uri": ""
                })
            ),
            "notes": "",
            "parameters": json!({"addOnParameters": json!({"parameters": json!({})})}),
            "signature": ""
        }),
        "created": "",
        "creator": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "description": "",
        "end": json!({
            "date": "",
            "dateTime": "",
            "timeZone": ""
        }),
        "endTimeUnspecified": false,
        "etag": "",
        "eventType": "",
        "extendedProperties": json!({
            "private": json!({}),
            "shared": json!({})
        }),
        "gadget": json!({
            "display": "",
            "height": 0,
            "iconLink": "",
            "link": "",
            "preferences": json!({}),
            "title": "",
            "type": "",
            "width": 0
        }),
        "guestsCanInviteOthers": false,
        "guestsCanModify": false,
        "guestsCanSeeOtherGuests": false,
        "hangoutLink": "",
        "htmlLink": "",
        "iCalUID": "",
        "id": "",
        "kind": "",
        "location": "",
        "locked": false,
        "organizer": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "originalStartTime": json!({}),
        "privateCopy": false,
        "recurrence": (),
        "recurringEventId": "",
        "reminders": json!({
            "overrides": (
                json!({
                    "method": "",
                    "minutes": 0
                })
            ),
            "useDefault": false
        }),
        "sequence": 0,
        "source": json!({
            "title": "",
            "url": ""
        }),
        "start": json!({}),
        "status": "",
        "summary": "",
        "transparency": "",
        "updated": "",
        "visibility": "",
        "workingLocationProperties": json!({
            "customLocation": json!({"label": ""}),
            "homeOffice": "",
            "officeLocation": json!({
                "buildingId": "",
                "deskId": "",
                "floorId": "",
                "floorSectionId": "",
                "label": ""
            })
        })
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/calendars/:calendarId/events/:eventId \
  --header 'content-type: application/json' \
  --data '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
echo '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}' |  \
  http PATCH {{baseUrl}}/calendars/:calendarId/events/:eventId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events/:eventId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "anyoneCanAddSelf": false,
  "attachments": [
    [
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    ]
  ],
  "attendees": [
    [
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    ]
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": [
    "conferenceId": "",
    "conferenceSolution": [
      "iconUri": "",
      "key": ["type": ""],
      "name": ""
    ],
    "createRequest": [
      "conferenceSolutionKey": [],
      "requestId": "",
      "status": ["statusCode": ""]
    ],
    "entryPoints": [
      [
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      ]
    ],
    "notes": "",
    "parameters": ["addOnParameters": ["parameters": []]],
    "signature": ""
  ],
  "created": "",
  "creator": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "description": "",
  "end": [
    "date": "",
    "dateTime": "",
    "timeZone": ""
  ],
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": [
    "private": [],
    "shared": []
  ],
  "gadget": [
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": [],
    "title": "",
    "type": "",
    "width": 0
  ],
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "originalStartTime": [],
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": [
    "overrides": [
      [
        "method": "",
        "minutes": 0
      ]
    ],
    "useDefault": false
  ],
  "sequence": 0,
  "source": [
    "title": "",
    "url": ""
  ],
  "start": [],
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": [
    "customLocation": ["label": ""],
    "homeOffice": "",
    "officeLocation": [
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    ]
  ]
] as [String : Any]

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

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

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

dataTask.resume()
POST calendar.events.quickAdd
{{baseUrl}}/calendars/:calendarId/events/quickAdd
QUERY PARAMS

text
calendarId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=");

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

(client/post "{{baseUrl}}/calendars/:calendarId/events/quickAdd" {:query-params {:text ""}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/quickAdd?text="

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

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

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/quickAdd?text="

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

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

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

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

}
POST /baseUrl/calendars/:calendarId/events/quickAdd?text= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/quickAdd?text="))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/quickAdd',
  params: {text: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=';
const options = {method: 'POST'};

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}}/calendars/:calendarId/events/quickAdd?text=',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/calendars/:calendarId/events/quickAdd?text=',
  headers: {}
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/quickAdd',
  qs: {text: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/calendars/:calendarId/events/quickAdd');

req.query({
  text: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/quickAdd',
  params: {text: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=';
const options = {method: 'POST'};

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}}/calendars/:calendarId/events/quickAdd?text="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/calendars/:calendarId/events/quickAdd?text=" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=');

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/quickAdd');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'text' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/quickAdd');
$request->setRequestMethod('POST');
$request->setQuery(new http\QueryString([
  'text' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/calendars/:calendarId/events/quickAdd?text=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/calendars/:calendarId/events/quickAdd"

querystring = {"text":""}

response = requests.post(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/calendars/:calendarId/events/quickAdd"

queryString <- list(text = "")

response <- VERB("POST", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/calendars/:calendarId/events/quickAdd') do |req|
  req.params['text'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/events/quickAdd";

    let querystring = [
        ("text", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text='
http POST '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text='
wget --quiet \
  --method POST \
  --output-document \
  - '{{baseUrl}}/calendars/:calendarId/events/quickAdd?text='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/quickAdd?text=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 calendar.events.update
{{baseUrl}}/calendars/:calendarId/events/:eventId
QUERY PARAMS

calendarId
eventId
BODY json

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/:eventId");

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/calendars/:calendarId/events/:eventId" {:content-type :json
                                                                                 :form-params {:anyoneCanAddSelf false
                                                                                               :attachments [{:fileId ""
                                                                                                              :fileUrl ""
                                                                                                              :iconLink ""
                                                                                                              :mimeType ""
                                                                                                              :title ""}]
                                                                                               :attendees [{:additionalGuests 0
                                                                                                            :comment ""
                                                                                                            :displayName ""
                                                                                                            :email ""
                                                                                                            :id ""
                                                                                                            :optional false
                                                                                                            :organizer false
                                                                                                            :resource false
                                                                                                            :responseStatus ""
                                                                                                            :self false}]
                                                                                               :attendeesOmitted false
                                                                                               :colorId ""
                                                                                               :conferenceData {:conferenceId ""
                                                                                                                :conferenceSolution {:iconUri ""
                                                                                                                                     :key {:type ""}
                                                                                                                                     :name ""}
                                                                                                                :createRequest {:conferenceSolutionKey {}
                                                                                                                                :requestId ""
                                                                                                                                :status {:statusCode ""}}
                                                                                                                :entryPoints [{:accessCode ""
                                                                                                                               :entryPointFeatures []
                                                                                                                               :entryPointType ""
                                                                                                                               :label ""
                                                                                                                               :meetingCode ""
                                                                                                                               :passcode ""
                                                                                                                               :password ""
                                                                                                                               :pin ""
                                                                                                                               :regionCode ""
                                                                                                                               :uri ""}]
                                                                                                                :notes ""
                                                                                                                :parameters {:addOnParameters {:parameters {}}}
                                                                                                                :signature ""}
                                                                                               :created ""
                                                                                               :creator {:displayName ""
                                                                                                         :email ""
                                                                                                         :id ""
                                                                                                         :self false}
                                                                                               :description ""
                                                                                               :end {:date ""
                                                                                                     :dateTime ""
                                                                                                     :timeZone ""}
                                                                                               :endTimeUnspecified false
                                                                                               :etag ""
                                                                                               :eventType ""
                                                                                               :extendedProperties {:private {}
                                                                                                                    :shared {}}
                                                                                               :gadget {:display ""
                                                                                                        :height 0
                                                                                                        :iconLink ""
                                                                                                        :link ""
                                                                                                        :preferences {}
                                                                                                        :title ""
                                                                                                        :type ""
                                                                                                        :width 0}
                                                                                               :guestsCanInviteOthers false
                                                                                               :guestsCanModify false
                                                                                               :guestsCanSeeOtherGuests false
                                                                                               :hangoutLink ""
                                                                                               :htmlLink ""
                                                                                               :iCalUID ""
                                                                                               :id ""
                                                                                               :kind ""
                                                                                               :location ""
                                                                                               :locked false
                                                                                               :organizer {:displayName ""
                                                                                                           :email ""
                                                                                                           :id ""
                                                                                                           :self false}
                                                                                               :originalStartTime {}
                                                                                               :privateCopy false
                                                                                               :recurrence []
                                                                                               :recurringEventId ""
                                                                                               :reminders {:overrides [{:method ""
                                                                                                                        :minutes 0}]
                                                                                                           :useDefault false}
                                                                                               :sequence 0
                                                                                               :source {:title ""
                                                                                                        :url ""}
                                                                                               :start {}
                                                                                               :status ""
                                                                                               :summary ""
                                                                                               :transparency ""
                                                                                               :updated ""
                                                                                               :visibility ""
                                                                                               :workingLocationProperties {:customLocation {:label ""}
                                                                                                                           :homeOffice ""
                                                                                                                           :officeLocation {:buildingId ""
                                                                                                                                            :deskId ""
                                                                                                                                            :floorId ""
                                                                                                                                            :floorSectionId ""
                                                                                                                                            :label ""}}}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\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}}/calendars/:calendarId/events/:eventId"),
    Content = new StringContent("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/:eventId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/:eventId"

	payload := strings.NewReader("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\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/calendars/:calendarId/events/:eventId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2664

{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/:eventId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .header("content-type", "application/json")
  .body("{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/calendars/:calendarId/events/:eventId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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}}/calendars/:calendarId/events/:eventId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/:eventId")
  .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/calendars/:calendarId/events/:eventId',
  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({
  anyoneCanAddSelf: false,
  attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
    createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {addOnParameters: {parameters: {}}},
    signature: ''
  },
  created: '',
  creator: {displayName: '', email: '', id: '', self: false},
  description: '',
  end: {date: '', dateTime: '', timeZone: ''},
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {private: {}, shared: {}},
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {displayName: '', email: '', id: '', self: false},
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
  sequence: 0,
  source: {title: '', url: ''},
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {label: ''},
    homeOffice: '',
    officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/calendars/:calendarId/events/:eventId',
  headers: {'content-type': 'application/json'},
  body: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  },
  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}}/calendars/:calendarId/events/:eventId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  anyoneCanAddSelf: false,
  attachments: [
    {
      fileId: '',
      fileUrl: '',
      iconLink: '',
      mimeType: '',
      title: ''
    }
  ],
  attendees: [
    {
      additionalGuests: 0,
      comment: '',
      displayName: '',
      email: '',
      id: '',
      optional: false,
      organizer: false,
      resource: false,
      responseStatus: '',
      self: false
    }
  ],
  attendeesOmitted: false,
  colorId: '',
  conferenceData: {
    conferenceId: '',
    conferenceSolution: {
      iconUri: '',
      key: {
        type: ''
      },
      name: ''
    },
    createRequest: {
      conferenceSolutionKey: {},
      requestId: '',
      status: {
        statusCode: ''
      }
    },
    entryPoints: [
      {
        accessCode: '',
        entryPointFeatures: [],
        entryPointType: '',
        label: '',
        meetingCode: '',
        passcode: '',
        password: '',
        pin: '',
        regionCode: '',
        uri: ''
      }
    ],
    notes: '',
    parameters: {
      addOnParameters: {
        parameters: {}
      }
    },
    signature: ''
  },
  created: '',
  creator: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  description: '',
  end: {
    date: '',
    dateTime: '',
    timeZone: ''
  },
  endTimeUnspecified: false,
  etag: '',
  eventType: '',
  extendedProperties: {
    private: {},
    shared: {}
  },
  gadget: {
    display: '',
    height: 0,
    iconLink: '',
    link: '',
    preferences: {},
    title: '',
    type: '',
    width: 0
  },
  guestsCanInviteOthers: false,
  guestsCanModify: false,
  guestsCanSeeOtherGuests: false,
  hangoutLink: '',
  htmlLink: '',
  iCalUID: '',
  id: '',
  kind: '',
  location: '',
  locked: false,
  organizer: {
    displayName: '',
    email: '',
    id: '',
    self: false
  },
  originalStartTime: {},
  privateCopy: false,
  recurrence: [],
  recurringEventId: '',
  reminders: {
    overrides: [
      {
        method: '',
        minutes: 0
      }
    ],
    useDefault: false
  },
  sequence: 0,
  source: {
    title: '',
    url: ''
  },
  start: {},
  status: '',
  summary: '',
  transparency: '',
  updated: '',
  visibility: '',
  workingLocationProperties: {
    customLocation: {
      label: ''
    },
    homeOffice: '',
    officeLocation: {
      buildingId: '',
      deskId: '',
      floorId: '',
      floorSectionId: '',
      label: ''
    }
  }
});

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}}/calendars/:calendarId/events/:eventId',
  headers: {'content-type': 'application/json'},
  data: {
    anyoneCanAddSelf: false,
    attachments: [{fileId: '', fileUrl: '', iconLink: '', mimeType: '', title: ''}],
    attendees: [
      {
        additionalGuests: 0,
        comment: '',
        displayName: '',
        email: '',
        id: '',
        optional: false,
        organizer: false,
        resource: false,
        responseStatus: '',
        self: false
      }
    ],
    attendeesOmitted: false,
    colorId: '',
    conferenceData: {
      conferenceId: '',
      conferenceSolution: {iconUri: '', key: {type: ''}, name: ''},
      createRequest: {conferenceSolutionKey: {}, requestId: '', status: {statusCode: ''}},
      entryPoints: [
        {
          accessCode: '',
          entryPointFeatures: [],
          entryPointType: '',
          label: '',
          meetingCode: '',
          passcode: '',
          password: '',
          pin: '',
          regionCode: '',
          uri: ''
        }
      ],
      notes: '',
      parameters: {addOnParameters: {parameters: {}}},
      signature: ''
    },
    created: '',
    creator: {displayName: '', email: '', id: '', self: false},
    description: '',
    end: {date: '', dateTime: '', timeZone: ''},
    endTimeUnspecified: false,
    etag: '',
    eventType: '',
    extendedProperties: {private: {}, shared: {}},
    gadget: {
      display: '',
      height: 0,
      iconLink: '',
      link: '',
      preferences: {},
      title: '',
      type: '',
      width: 0
    },
    guestsCanInviteOthers: false,
    guestsCanModify: false,
    guestsCanSeeOtherGuests: false,
    hangoutLink: '',
    htmlLink: '',
    iCalUID: '',
    id: '',
    kind: '',
    location: '',
    locked: false,
    organizer: {displayName: '', email: '', id: '', self: false},
    originalStartTime: {},
    privateCopy: false,
    recurrence: [],
    recurringEventId: '',
    reminders: {overrides: [{method: '', minutes: 0}], useDefault: false},
    sequence: 0,
    source: {title: '', url: ''},
    start: {},
    status: '',
    summary: '',
    transparency: '',
    updated: '',
    visibility: '',
    workingLocationProperties: {
      customLocation: {label: ''},
      homeOffice: '',
      officeLocation: {buildingId: '', deskId: '', floorId: '', floorSectionId: '', label: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/calendars/:calendarId/events/:eventId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"anyoneCanAddSelf":false,"attachments":[{"fileId":"","fileUrl":"","iconLink":"","mimeType":"","title":""}],"attendees":[{"additionalGuests":0,"comment":"","displayName":"","email":"","id":"","optional":false,"organizer":false,"resource":false,"responseStatus":"","self":false}],"attendeesOmitted":false,"colorId":"","conferenceData":{"conferenceId":"","conferenceSolution":{"iconUri":"","key":{"type":""},"name":""},"createRequest":{"conferenceSolutionKey":{},"requestId":"","status":{"statusCode":""}},"entryPoints":[{"accessCode":"","entryPointFeatures":[],"entryPointType":"","label":"","meetingCode":"","passcode":"","password":"","pin":"","regionCode":"","uri":""}],"notes":"","parameters":{"addOnParameters":{"parameters":{}}},"signature":""},"created":"","creator":{"displayName":"","email":"","id":"","self":false},"description":"","end":{"date":"","dateTime":"","timeZone":""},"endTimeUnspecified":false,"etag":"","eventType":"","extendedProperties":{"private":{},"shared":{}},"gadget":{"display":"","height":0,"iconLink":"","link":"","preferences":{},"title":"","type":"","width":0},"guestsCanInviteOthers":false,"guestsCanModify":false,"guestsCanSeeOtherGuests":false,"hangoutLink":"","htmlLink":"","iCalUID":"","id":"","kind":"","location":"","locked":false,"organizer":{"displayName":"","email":"","id":"","self":false},"originalStartTime":{},"privateCopy":false,"recurrence":[],"recurringEventId":"","reminders":{"overrides":[{"method":"","minutes":0}],"useDefault":false},"sequence":0,"source":{"title":"","url":""},"start":{},"status":"","summary":"","transparency":"","updated":"","visibility":"","workingLocationProperties":{"customLocation":{"label":""},"homeOffice":"","officeLocation":{"buildingId":"","deskId":"","floorId":"","floorSectionId":"","label":""}}}'
};

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 = @{ @"anyoneCanAddSelf": @NO,
                              @"attachments": @[ @{ @"fileId": @"", @"fileUrl": @"", @"iconLink": @"", @"mimeType": @"", @"title": @"" } ],
                              @"attendees": @[ @{ @"additionalGuests": @0, @"comment": @"", @"displayName": @"", @"email": @"", @"id": @"", @"optional": @NO, @"organizer": @NO, @"resource": @NO, @"responseStatus": @"", @"self": @NO } ],
                              @"attendeesOmitted": @NO,
                              @"colorId": @"",
                              @"conferenceData": @{ @"conferenceId": @"", @"conferenceSolution": @{ @"iconUri": @"", @"key": @{ @"type": @"" }, @"name": @"" }, @"createRequest": @{ @"conferenceSolutionKey": @{  }, @"requestId": @"", @"status": @{ @"statusCode": @"" } }, @"entryPoints": @[ @{ @"accessCode": @"", @"entryPointFeatures": @[  ], @"entryPointType": @"", @"label": @"", @"meetingCode": @"", @"passcode": @"", @"password": @"", @"pin": @"", @"regionCode": @"", @"uri": @"" } ], @"notes": @"", @"parameters": @{ @"addOnParameters": @{ @"parameters": @{  } } }, @"signature": @"" },
                              @"created": @"",
                              @"creator": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"description": @"",
                              @"end": @{ @"date": @"", @"dateTime": @"", @"timeZone": @"" },
                              @"endTimeUnspecified": @NO,
                              @"etag": @"",
                              @"eventType": @"",
                              @"extendedProperties": @{ @"private": @{  }, @"shared": @{  } },
                              @"gadget": @{ @"display": @"", @"height": @0, @"iconLink": @"", @"link": @"", @"preferences": @{  }, @"title": @"", @"type": @"", @"width": @0 },
                              @"guestsCanInviteOthers": @NO,
                              @"guestsCanModify": @NO,
                              @"guestsCanSeeOtherGuests": @NO,
                              @"hangoutLink": @"",
                              @"htmlLink": @"",
                              @"iCalUID": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"location": @"",
                              @"locked": @NO,
                              @"organizer": @{ @"displayName": @"", @"email": @"", @"id": @"", @"self": @NO },
                              @"originalStartTime": @{  },
                              @"privateCopy": @NO,
                              @"recurrence": @[  ],
                              @"recurringEventId": @"",
                              @"reminders": @{ @"overrides": @[ @{ @"method": @"", @"minutes": @0 } ], @"useDefault": @NO },
                              @"sequence": @0,
                              @"source": @{ @"title": @"", @"url": @"" },
                              @"start": @{  },
                              @"status": @"",
                              @"summary": @"",
                              @"transparency": @"",
                              @"updated": @"",
                              @"visibility": @"",
                              @"workingLocationProperties": @{ @"customLocation": @{ @"label": @"" }, @"homeOffice": @"", @"officeLocation": @{ @"buildingId": @"", @"deskId": @"", @"floorId": @"", @"floorSectionId": @"", @"label": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/events/:eventId"]
                                                       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}}/calendars/:calendarId/events/:eventId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/:eventId",
  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([
    'anyoneCanAddSelf' => null,
    'attachments' => [
        [
                'fileId' => '',
                'fileUrl' => '',
                'iconLink' => '',
                'mimeType' => '',
                'title' => ''
        ]
    ],
    'attendees' => [
        [
                'additionalGuests' => 0,
                'comment' => '',
                'displayName' => '',
                'email' => '',
                'id' => '',
                'optional' => null,
                'organizer' => null,
                'resource' => null,
                'responseStatus' => '',
                'self' => null
        ]
    ],
    'attendeesOmitted' => null,
    'colorId' => '',
    'conferenceData' => [
        'conferenceId' => '',
        'conferenceSolution' => [
                'iconUri' => '',
                'key' => [
                                'type' => ''
                ],
                'name' => ''
        ],
        'createRequest' => [
                'conferenceSolutionKey' => [
                                
                ],
                'requestId' => '',
                'status' => [
                                'statusCode' => ''
                ]
        ],
        'entryPoints' => [
                [
                                'accessCode' => '',
                                'entryPointFeatures' => [
                                                                
                                ],
                                'entryPointType' => '',
                                'label' => '',
                                'meetingCode' => '',
                                'passcode' => '',
                                'password' => '',
                                'pin' => '',
                                'regionCode' => '',
                                'uri' => ''
                ]
        ],
        'notes' => '',
        'parameters' => [
                'addOnParameters' => [
                                'parameters' => [
                                                                
                                ]
                ]
        ],
        'signature' => ''
    ],
    'created' => '',
    'creator' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'description' => '',
    'end' => [
        'date' => '',
        'dateTime' => '',
        'timeZone' => ''
    ],
    'endTimeUnspecified' => null,
    'etag' => '',
    'eventType' => '',
    'extendedProperties' => [
        'private' => [
                
        ],
        'shared' => [
                
        ]
    ],
    'gadget' => [
        'display' => '',
        'height' => 0,
        'iconLink' => '',
        'link' => '',
        'preferences' => [
                
        ],
        'title' => '',
        'type' => '',
        'width' => 0
    ],
    'guestsCanInviteOthers' => null,
    'guestsCanModify' => null,
    'guestsCanSeeOtherGuests' => null,
    'hangoutLink' => '',
    'htmlLink' => '',
    'iCalUID' => '',
    'id' => '',
    'kind' => '',
    'location' => '',
    'locked' => null,
    'organizer' => [
        'displayName' => '',
        'email' => '',
        'id' => '',
        'self' => null
    ],
    'originalStartTime' => [
        
    ],
    'privateCopy' => null,
    'recurrence' => [
        
    ],
    'recurringEventId' => '',
    'reminders' => [
        'overrides' => [
                [
                                'method' => '',
                                'minutes' => 0
                ]
        ],
        'useDefault' => null
    ],
    'sequence' => 0,
    'source' => [
        'title' => '',
        'url' => ''
    ],
    'start' => [
        
    ],
    'status' => '',
    'summary' => '',
    'transparency' => '',
    'updated' => '',
    'visibility' => '',
    'workingLocationProperties' => [
        'customLocation' => [
                'label' => ''
        ],
        'homeOffice' => '',
        'officeLocation' => [
                'buildingId' => '',
                'deskId' => '',
                'floorId' => '',
                'floorSectionId' => '',
                'label' => ''
        ]
    ]
  ]),
  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}}/calendars/:calendarId/events/:eventId', [
  'body' => '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'anyoneCanAddSelf' => null,
  'attachments' => [
    [
        'fileId' => '',
        'fileUrl' => '',
        'iconLink' => '',
        'mimeType' => '',
        'title' => ''
    ]
  ],
  'attendees' => [
    [
        'additionalGuests' => 0,
        'comment' => '',
        'displayName' => '',
        'email' => '',
        'id' => '',
        'optional' => null,
        'organizer' => null,
        'resource' => null,
        'responseStatus' => '',
        'self' => null
    ]
  ],
  'attendeesOmitted' => null,
  'colorId' => '',
  'conferenceData' => [
    'conferenceId' => '',
    'conferenceSolution' => [
        'iconUri' => '',
        'key' => [
                'type' => ''
        ],
        'name' => ''
    ],
    'createRequest' => [
        'conferenceSolutionKey' => [
                
        ],
        'requestId' => '',
        'status' => [
                'statusCode' => ''
        ]
    ],
    'entryPoints' => [
        [
                'accessCode' => '',
                'entryPointFeatures' => [
                                
                ],
                'entryPointType' => '',
                'label' => '',
                'meetingCode' => '',
                'passcode' => '',
                'password' => '',
                'pin' => '',
                'regionCode' => '',
                'uri' => ''
        ]
    ],
    'notes' => '',
    'parameters' => [
        'addOnParameters' => [
                'parameters' => [
                                
                ]
        ]
    ],
    'signature' => ''
  ],
  'created' => '',
  'creator' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'description' => '',
  'end' => [
    'date' => '',
    'dateTime' => '',
    'timeZone' => ''
  ],
  'endTimeUnspecified' => null,
  'etag' => '',
  'eventType' => '',
  'extendedProperties' => [
    'private' => [
        
    ],
    'shared' => [
        
    ]
  ],
  'gadget' => [
    'display' => '',
    'height' => 0,
    'iconLink' => '',
    'link' => '',
    'preferences' => [
        
    ],
    'title' => '',
    'type' => '',
    'width' => 0
  ],
  'guestsCanInviteOthers' => null,
  'guestsCanModify' => null,
  'guestsCanSeeOtherGuests' => null,
  'hangoutLink' => '',
  'htmlLink' => '',
  'iCalUID' => '',
  'id' => '',
  'kind' => '',
  'location' => '',
  'locked' => null,
  'organizer' => [
    'displayName' => '',
    'email' => '',
    'id' => '',
    'self' => null
  ],
  'originalStartTime' => [
    
  ],
  'privateCopy' => null,
  'recurrence' => [
    
  ],
  'recurringEventId' => '',
  'reminders' => [
    'overrides' => [
        [
                'method' => '',
                'minutes' => 0
        ]
    ],
    'useDefault' => null
  ],
  'sequence' => 0,
  'source' => [
    'title' => '',
    'url' => ''
  ],
  'start' => [
    
  ],
  'status' => '',
  'summary' => '',
  'transparency' => '',
  'updated' => '',
  'visibility' => '',
  'workingLocationProperties' => [
    'customLocation' => [
        'label' => ''
    ],
    'homeOffice' => '',
    'officeLocation' => [
        'buildingId' => '',
        'deskId' => '',
        'floorId' => '',
        'floorSectionId' => '',
        'label' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/:eventId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/:eventId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/calendars/:calendarId/events/:eventId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/calendars/:calendarId/events/:eventId"

payload = {
    "anyoneCanAddSelf": False,
    "attachments": [
        {
            "fileId": "",
            "fileUrl": "",
            "iconLink": "",
            "mimeType": "",
            "title": ""
        }
    ],
    "attendees": [
        {
            "additionalGuests": 0,
            "comment": "",
            "displayName": "",
            "email": "",
            "id": "",
            "optional": False,
            "organizer": False,
            "resource": False,
            "responseStatus": "",
            "self": False
        }
    ],
    "attendeesOmitted": False,
    "colorId": "",
    "conferenceData": {
        "conferenceId": "",
        "conferenceSolution": {
            "iconUri": "",
            "key": { "type": "" },
            "name": ""
        },
        "createRequest": {
            "conferenceSolutionKey": {},
            "requestId": "",
            "status": { "statusCode": "" }
        },
        "entryPoints": [
            {
                "accessCode": "",
                "entryPointFeatures": [],
                "entryPointType": "",
                "label": "",
                "meetingCode": "",
                "passcode": "",
                "password": "",
                "pin": "",
                "regionCode": "",
                "uri": ""
            }
        ],
        "notes": "",
        "parameters": { "addOnParameters": { "parameters": {} } },
        "signature": ""
    },
    "created": "",
    "creator": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "description": "",
    "end": {
        "date": "",
        "dateTime": "",
        "timeZone": ""
    },
    "endTimeUnspecified": False,
    "etag": "",
    "eventType": "",
    "extendedProperties": {
        "private": {},
        "shared": {}
    },
    "gadget": {
        "display": "",
        "height": 0,
        "iconLink": "",
        "link": "",
        "preferences": {},
        "title": "",
        "type": "",
        "width": 0
    },
    "guestsCanInviteOthers": False,
    "guestsCanModify": False,
    "guestsCanSeeOtherGuests": False,
    "hangoutLink": "",
    "htmlLink": "",
    "iCalUID": "",
    "id": "",
    "kind": "",
    "location": "",
    "locked": False,
    "organizer": {
        "displayName": "",
        "email": "",
        "id": "",
        "self": False
    },
    "originalStartTime": {},
    "privateCopy": False,
    "recurrence": [],
    "recurringEventId": "",
    "reminders": {
        "overrides": [
            {
                "method": "",
                "minutes": 0
            }
        ],
        "useDefault": False
    },
    "sequence": 0,
    "source": {
        "title": "",
        "url": ""
    },
    "start": {},
    "status": "",
    "summary": "",
    "transparency": "",
    "updated": "",
    "visibility": "",
    "workingLocationProperties": {
        "customLocation": { "label": "" },
        "homeOffice": "",
        "officeLocation": {
            "buildingId": "",
            "deskId": "",
            "floorId": "",
            "floorSectionId": "",
            "label": ""
        }
    }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/calendars/:calendarId/events/:eventId"

payload <- "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/calendars/:calendarId/events/:eventId")

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  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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.put('/baseUrl/calendars/:calendarId/events/:eventId') do |req|
  req.body = "{\n  \"anyoneCanAddSelf\": false,\n  \"attachments\": [\n    {\n      \"fileId\": \"\",\n      \"fileUrl\": \"\",\n      \"iconLink\": \"\",\n      \"mimeType\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"attendees\": [\n    {\n      \"additionalGuests\": 0,\n      \"comment\": \"\",\n      \"displayName\": \"\",\n      \"email\": \"\",\n      \"id\": \"\",\n      \"optional\": false,\n      \"organizer\": false,\n      \"resource\": false,\n      \"responseStatus\": \"\",\n      \"self\": false\n    }\n  ],\n  \"attendeesOmitted\": false,\n  \"colorId\": \"\",\n  \"conferenceData\": {\n    \"conferenceId\": \"\",\n    \"conferenceSolution\": {\n      \"iconUri\": \"\",\n      \"key\": {\n        \"type\": \"\"\n      },\n      \"name\": \"\"\n    },\n    \"createRequest\": {\n      \"conferenceSolutionKey\": {},\n      \"requestId\": \"\",\n      \"status\": {\n        \"statusCode\": \"\"\n      }\n    },\n    \"entryPoints\": [\n      {\n        \"accessCode\": \"\",\n        \"entryPointFeatures\": [],\n        \"entryPointType\": \"\",\n        \"label\": \"\",\n        \"meetingCode\": \"\",\n        \"passcode\": \"\",\n        \"password\": \"\",\n        \"pin\": \"\",\n        \"regionCode\": \"\",\n        \"uri\": \"\"\n      }\n    ],\n    \"notes\": \"\",\n    \"parameters\": {\n      \"addOnParameters\": {\n        \"parameters\": {}\n      }\n    },\n    \"signature\": \"\"\n  },\n  \"created\": \"\",\n  \"creator\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"description\": \"\",\n  \"end\": {\n    \"date\": \"\",\n    \"dateTime\": \"\",\n    \"timeZone\": \"\"\n  },\n  \"endTimeUnspecified\": false,\n  \"etag\": \"\",\n  \"eventType\": \"\",\n  \"extendedProperties\": {\n    \"private\": {},\n    \"shared\": {}\n  },\n  \"gadget\": {\n    \"display\": \"\",\n    \"height\": 0,\n    \"iconLink\": \"\",\n    \"link\": \"\",\n    \"preferences\": {},\n    \"title\": \"\",\n    \"type\": \"\",\n    \"width\": 0\n  },\n  \"guestsCanInviteOthers\": false,\n  \"guestsCanModify\": false,\n  \"guestsCanSeeOtherGuests\": false,\n  \"hangoutLink\": \"\",\n  \"htmlLink\": \"\",\n  \"iCalUID\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"location\": \"\",\n  \"locked\": false,\n  \"organizer\": {\n    \"displayName\": \"\",\n    \"email\": \"\",\n    \"id\": \"\",\n    \"self\": false\n  },\n  \"originalStartTime\": {},\n  \"privateCopy\": false,\n  \"recurrence\": [],\n  \"recurringEventId\": \"\",\n  \"reminders\": {\n    \"overrides\": [\n      {\n        \"method\": \"\",\n        \"minutes\": 0\n      }\n    ],\n    \"useDefault\": false\n  },\n  \"sequence\": 0,\n  \"source\": {\n    \"title\": \"\",\n    \"url\": \"\"\n  },\n  \"start\": {},\n  \"status\": \"\",\n  \"summary\": \"\",\n  \"transparency\": \"\",\n  \"updated\": \"\",\n  \"visibility\": \"\",\n  \"workingLocationProperties\": {\n    \"customLocation\": {\n      \"label\": \"\"\n    },\n    \"homeOffice\": \"\",\n    \"officeLocation\": {\n      \"buildingId\": \"\",\n      \"deskId\": \"\",\n      \"floorId\": \"\",\n      \"floorSectionId\": \"\",\n      \"label\": \"\"\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}}/calendars/:calendarId/events/:eventId";

    let payload = json!({
        "anyoneCanAddSelf": false,
        "attachments": (
            json!({
                "fileId": "",
                "fileUrl": "",
                "iconLink": "",
                "mimeType": "",
                "title": ""
            })
        ),
        "attendees": (
            json!({
                "additionalGuests": 0,
                "comment": "",
                "displayName": "",
                "email": "",
                "id": "",
                "optional": false,
                "organizer": false,
                "resource": false,
                "responseStatus": "",
                "self": false
            })
        ),
        "attendeesOmitted": false,
        "colorId": "",
        "conferenceData": json!({
            "conferenceId": "",
            "conferenceSolution": json!({
                "iconUri": "",
                "key": json!({"type": ""}),
                "name": ""
            }),
            "createRequest": json!({
                "conferenceSolutionKey": json!({}),
                "requestId": "",
                "status": json!({"statusCode": ""})
            }),
            "entryPoints": (
                json!({
                    "accessCode": "",
                    "entryPointFeatures": (),
                    "entryPointType": "",
                    "label": "",
                    "meetingCode": "",
                    "passcode": "",
                    "password": "",
                    "pin": "",
                    "regionCode": "",
                    "uri": ""
                })
            ),
            "notes": "",
            "parameters": json!({"addOnParameters": json!({"parameters": json!({})})}),
            "signature": ""
        }),
        "created": "",
        "creator": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "description": "",
        "end": json!({
            "date": "",
            "dateTime": "",
            "timeZone": ""
        }),
        "endTimeUnspecified": false,
        "etag": "",
        "eventType": "",
        "extendedProperties": json!({
            "private": json!({}),
            "shared": json!({})
        }),
        "gadget": json!({
            "display": "",
            "height": 0,
            "iconLink": "",
            "link": "",
            "preferences": json!({}),
            "title": "",
            "type": "",
            "width": 0
        }),
        "guestsCanInviteOthers": false,
        "guestsCanModify": false,
        "guestsCanSeeOtherGuests": false,
        "hangoutLink": "",
        "htmlLink": "",
        "iCalUID": "",
        "id": "",
        "kind": "",
        "location": "",
        "locked": false,
        "organizer": json!({
            "displayName": "",
            "email": "",
            "id": "",
            "self": false
        }),
        "originalStartTime": json!({}),
        "privateCopy": false,
        "recurrence": (),
        "recurringEventId": "",
        "reminders": json!({
            "overrides": (
                json!({
                    "method": "",
                    "minutes": 0
                })
            ),
            "useDefault": false
        }),
        "sequence": 0,
        "source": json!({
            "title": "",
            "url": ""
        }),
        "start": json!({}),
        "status": "",
        "summary": "",
        "transparency": "",
        "updated": "",
        "visibility": "",
        "workingLocationProperties": json!({
            "customLocation": json!({"label": ""}),
            "homeOffice": "",
            "officeLocation": json!({
                "buildingId": "",
                "deskId": "",
                "floorId": "",
                "floorSectionId": "",
                "label": ""
            })
        })
    });

    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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/calendars/:calendarId/events/:eventId \
  --header 'content-type: application/json' \
  --data '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}'
echo '{
  "anyoneCanAddSelf": false,
  "attachments": [
    {
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    }
  ],
  "attendees": [
    {
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    }
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": {
    "conferenceId": "",
    "conferenceSolution": {
      "iconUri": "",
      "key": {
        "type": ""
      },
      "name": ""
    },
    "createRequest": {
      "conferenceSolutionKey": {},
      "requestId": "",
      "status": {
        "statusCode": ""
      }
    },
    "entryPoints": [
      {
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      }
    ],
    "notes": "",
    "parameters": {
      "addOnParameters": {
        "parameters": {}
      }
    },
    "signature": ""
  },
  "created": "",
  "creator": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "description": "",
  "end": {
    "date": "",
    "dateTime": "",
    "timeZone": ""
  },
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": {
    "private": {},
    "shared": {}
  },
  "gadget": {
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": {},
    "title": "",
    "type": "",
    "width": 0
  },
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": {
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  },
  "originalStartTime": {},
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": {
    "overrides": [
      {
        "method": "",
        "minutes": 0
      }
    ],
    "useDefault": false
  },
  "sequence": 0,
  "source": {
    "title": "",
    "url": ""
  },
  "start": {},
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": {
    "customLocation": {
      "label": ""
    },
    "homeOffice": "",
    "officeLocation": {
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    }
  }
}' |  \
  http PUT {{baseUrl}}/calendars/:calendarId/events/:eventId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "anyoneCanAddSelf": false,\n  "attachments": [\n    {\n      "fileId": "",\n      "fileUrl": "",\n      "iconLink": "",\n      "mimeType": "",\n      "title": ""\n    }\n  ],\n  "attendees": [\n    {\n      "additionalGuests": 0,\n      "comment": "",\n      "displayName": "",\n      "email": "",\n      "id": "",\n      "optional": false,\n      "organizer": false,\n      "resource": false,\n      "responseStatus": "",\n      "self": false\n    }\n  ],\n  "attendeesOmitted": false,\n  "colorId": "",\n  "conferenceData": {\n    "conferenceId": "",\n    "conferenceSolution": {\n      "iconUri": "",\n      "key": {\n        "type": ""\n      },\n      "name": ""\n    },\n    "createRequest": {\n      "conferenceSolutionKey": {},\n      "requestId": "",\n      "status": {\n        "statusCode": ""\n      }\n    },\n    "entryPoints": [\n      {\n        "accessCode": "",\n        "entryPointFeatures": [],\n        "entryPointType": "",\n        "label": "",\n        "meetingCode": "",\n        "passcode": "",\n        "password": "",\n        "pin": "",\n        "regionCode": "",\n        "uri": ""\n      }\n    ],\n    "notes": "",\n    "parameters": {\n      "addOnParameters": {\n        "parameters": {}\n      }\n    },\n    "signature": ""\n  },\n  "created": "",\n  "creator": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "description": "",\n  "end": {\n    "date": "",\n    "dateTime": "",\n    "timeZone": ""\n  },\n  "endTimeUnspecified": false,\n  "etag": "",\n  "eventType": "",\n  "extendedProperties": {\n    "private": {},\n    "shared": {}\n  },\n  "gadget": {\n    "display": "",\n    "height": 0,\n    "iconLink": "",\n    "link": "",\n    "preferences": {},\n    "title": "",\n    "type": "",\n    "width": 0\n  },\n  "guestsCanInviteOthers": false,\n  "guestsCanModify": false,\n  "guestsCanSeeOtherGuests": false,\n  "hangoutLink": "",\n  "htmlLink": "",\n  "iCalUID": "",\n  "id": "",\n  "kind": "",\n  "location": "",\n  "locked": false,\n  "organizer": {\n    "displayName": "",\n    "email": "",\n    "id": "",\n    "self": false\n  },\n  "originalStartTime": {},\n  "privateCopy": false,\n  "recurrence": [],\n  "recurringEventId": "",\n  "reminders": {\n    "overrides": [\n      {\n        "method": "",\n        "minutes": 0\n      }\n    ],\n    "useDefault": false\n  },\n  "sequence": 0,\n  "source": {\n    "title": "",\n    "url": ""\n  },\n  "start": {},\n  "status": "",\n  "summary": "",\n  "transparency": "",\n  "updated": "",\n  "visibility": "",\n  "workingLocationProperties": {\n    "customLocation": {\n      "label": ""\n    },\n    "homeOffice": "",\n    "officeLocation": {\n      "buildingId": "",\n      "deskId": "",\n      "floorId": "",\n      "floorSectionId": "",\n      "label": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events/:eventId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "anyoneCanAddSelf": false,
  "attachments": [
    [
      "fileId": "",
      "fileUrl": "",
      "iconLink": "",
      "mimeType": "",
      "title": ""
    ]
  ],
  "attendees": [
    [
      "additionalGuests": 0,
      "comment": "",
      "displayName": "",
      "email": "",
      "id": "",
      "optional": false,
      "organizer": false,
      "resource": false,
      "responseStatus": "",
      "self": false
    ]
  ],
  "attendeesOmitted": false,
  "colorId": "",
  "conferenceData": [
    "conferenceId": "",
    "conferenceSolution": [
      "iconUri": "",
      "key": ["type": ""],
      "name": ""
    ],
    "createRequest": [
      "conferenceSolutionKey": [],
      "requestId": "",
      "status": ["statusCode": ""]
    ],
    "entryPoints": [
      [
        "accessCode": "",
        "entryPointFeatures": [],
        "entryPointType": "",
        "label": "",
        "meetingCode": "",
        "passcode": "",
        "password": "",
        "pin": "",
        "regionCode": "",
        "uri": ""
      ]
    ],
    "notes": "",
    "parameters": ["addOnParameters": ["parameters": []]],
    "signature": ""
  ],
  "created": "",
  "creator": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "description": "",
  "end": [
    "date": "",
    "dateTime": "",
    "timeZone": ""
  ],
  "endTimeUnspecified": false,
  "etag": "",
  "eventType": "",
  "extendedProperties": [
    "private": [],
    "shared": []
  ],
  "gadget": [
    "display": "",
    "height": 0,
    "iconLink": "",
    "link": "",
    "preferences": [],
    "title": "",
    "type": "",
    "width": 0
  ],
  "guestsCanInviteOthers": false,
  "guestsCanModify": false,
  "guestsCanSeeOtherGuests": false,
  "hangoutLink": "",
  "htmlLink": "",
  "iCalUID": "",
  "id": "",
  "kind": "",
  "location": "",
  "locked": false,
  "organizer": [
    "displayName": "",
    "email": "",
    "id": "",
    "self": false
  ],
  "originalStartTime": [],
  "privateCopy": false,
  "recurrence": [],
  "recurringEventId": "",
  "reminders": [
    "overrides": [
      [
        "method": "",
        "minutes": 0
      ]
    ],
    "useDefault": false
  ],
  "sequence": 0,
  "source": [
    "title": "",
    "url": ""
  ],
  "start": [],
  "status": "",
  "summary": "",
  "transparency": "",
  "updated": "",
  "visibility": "",
  "workingLocationProperties": [
    "customLocation": ["label": ""],
    "homeOffice": "",
    "officeLocation": [
      "buildingId": "",
      "deskId": "",
      "floorId": "",
      "floorSectionId": "",
      "label": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/:eventId")! 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 calendar.events.watch
{{baseUrl}}/calendars/:calendarId/events/watch
QUERY PARAMS

calendarId
BODY json

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/calendars/:calendarId/events/watch");

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/calendars/:calendarId/events/watch" {:content-type :json
                                                                               :form-params {:address ""
                                                                                             :expiration ""
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :params {}
                                                                                             :payload false
                                                                                             :resourceId ""
                                                                                             :resourceUri ""
                                                                                             :token ""
                                                                                             :type ""}})
require "http/client"

url = "{{baseUrl}}/calendars/:calendarId/events/watch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/calendars/:calendarId/events/watch"),
    Content = new StringContent("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/calendars/:calendarId/events/watch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/calendars/:calendarId/events/watch"

	payload := strings.NewReader("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/calendars/:calendarId/events/watch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 171

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/calendars/:calendarId/events/watch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/calendars/:calendarId/events/watch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/watch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/calendars/:calendarId/events/watch")
  .header("content-type", "application/json")
  .body("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/calendars/:calendarId/events/watch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/calendars/:calendarId/events/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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}}/calendars/:calendarId/events/watch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/calendars/:calendarId/events/watch")
  .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/calendars/:calendarId/events/watch',
  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({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/calendars/:calendarId/events/watch',
  headers: {'content-type': 'application/json'},
  body: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    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}}/calendars/:calendarId/events/watch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/calendars/:calendarId/events/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/calendars/:calendarId/events/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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 = @{ @"address": @"",
                              @"expiration": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"params": @{  },
                              @"payload": @NO,
                              @"resourceId": @"",
                              @"resourceUri": @"",
                              @"token": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/calendars/:calendarId/events/watch"]
                                                       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}}/calendars/:calendarId/events/watch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/calendars/:calendarId/events/watch",
  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([
    'address' => '',
    'expiration' => '',
    'id' => '',
    'kind' => '',
    'params' => [
        
    ],
    'payload' => null,
    'resourceId' => '',
    'resourceUri' => '',
    'token' => '',
    '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}}/calendars/:calendarId/events/watch', [
  'body' => '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/calendars/:calendarId/events/watch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/calendars/:calendarId/events/watch');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/calendars/:calendarId/events/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/calendars/:calendarId/events/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/calendars/:calendarId/events/watch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/calendars/:calendarId/events/watch"

payload = {
    "address": "",
    "expiration": "",
    "id": "",
    "kind": "",
    "params": {},
    "payload": False,
    "resourceId": "",
    "resourceUri": "",
    "token": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/calendars/:calendarId/events/watch"

payload <- "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/calendars/:calendarId/events/watch")

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/calendars/:calendarId/events/watch') do |req|
  req.body = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/calendars/:calendarId/events/watch";

    let payload = json!({
        "address": "",
        "expiration": "",
        "id": "",
        "kind": "",
        "params": json!({}),
        "payload": false,
        "resourceId": "",
        "resourceUri": "",
        "token": "",
        "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/calendars/:calendarId/events/watch \
  --header 'content-type: application/json' \
  --data '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
echo '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/calendars/:calendarId/events/watch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/calendars/:calendarId/events/watch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": [],
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/calendars/:calendarId/events/watch")! 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 calendar.freebusy.query
{{baseUrl}}/freeBusy
BODY json

{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/freeBusy");

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  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/freeBusy" {:content-type :json
                                                     :form-params {:calendarExpansionMax 0
                                                                   :groupExpansionMax 0
                                                                   :items [{:id ""}]
                                                                   :timeMax ""
                                                                   :timeMin ""
                                                                   :timeZone ""}})
require "http/client"

url = "{{baseUrl}}/freeBusy"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\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}}/freeBusy"),
    Content = new StringContent("{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\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}}/freeBusy");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/freeBusy"

	payload := strings.NewReader("{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\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/freeBusy HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 154

{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/freeBusy")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/freeBusy"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\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  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/freeBusy")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/freeBusy")
  .header("content-type", "application/json")
  .body("{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  calendarExpansionMax: 0,
  groupExpansionMax: 0,
  items: [
    {
      id: ''
    }
  ],
  timeMax: '',
  timeMin: '',
  timeZone: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/freeBusy');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/freeBusy',
  headers: {'content-type': 'application/json'},
  data: {
    calendarExpansionMax: 0,
    groupExpansionMax: 0,
    items: [{id: ''}],
    timeMax: '',
    timeMin: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/freeBusy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"calendarExpansionMax":0,"groupExpansionMax":0,"items":[{"id":""}],"timeMax":"","timeMin":"","timeZone":""}'
};

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}}/freeBusy',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "calendarExpansionMax": 0,\n  "groupExpansionMax": 0,\n  "items": [\n    {\n      "id": ""\n    }\n  ],\n  "timeMax": "",\n  "timeMin": "",\n  "timeZone": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/freeBusy")
  .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/freeBusy',
  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({
  calendarExpansionMax: 0,
  groupExpansionMax: 0,
  items: [{id: ''}],
  timeMax: '',
  timeMin: '',
  timeZone: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/freeBusy',
  headers: {'content-type': 'application/json'},
  body: {
    calendarExpansionMax: 0,
    groupExpansionMax: 0,
    items: [{id: ''}],
    timeMax: '',
    timeMin: '',
    timeZone: ''
  },
  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}}/freeBusy');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  calendarExpansionMax: 0,
  groupExpansionMax: 0,
  items: [
    {
      id: ''
    }
  ],
  timeMax: '',
  timeMin: '',
  timeZone: ''
});

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}}/freeBusy',
  headers: {'content-type': 'application/json'},
  data: {
    calendarExpansionMax: 0,
    groupExpansionMax: 0,
    items: [{id: ''}],
    timeMax: '',
    timeMin: '',
    timeZone: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/freeBusy';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"calendarExpansionMax":0,"groupExpansionMax":0,"items":[{"id":""}],"timeMax":"","timeMin":"","timeZone":""}'
};

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 = @{ @"calendarExpansionMax": @0,
                              @"groupExpansionMax": @0,
                              @"items": @[ @{ @"id": @"" } ],
                              @"timeMax": @"",
                              @"timeMin": @"",
                              @"timeZone": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/freeBusy"]
                                                       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}}/freeBusy" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/freeBusy",
  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([
    'calendarExpansionMax' => 0,
    'groupExpansionMax' => 0,
    'items' => [
        [
                'id' => ''
        ]
    ],
    'timeMax' => '',
    'timeMin' => '',
    'timeZone' => ''
  ]),
  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}}/freeBusy', [
  'body' => '{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/freeBusy');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'calendarExpansionMax' => 0,
  'groupExpansionMax' => 0,
  'items' => [
    [
        'id' => ''
    ]
  ],
  'timeMax' => '',
  'timeMin' => '',
  'timeZone' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'calendarExpansionMax' => 0,
  'groupExpansionMax' => 0,
  'items' => [
    [
        'id' => ''
    ]
  ],
  'timeMax' => '',
  'timeMin' => '',
  'timeZone' => ''
]));
$request->setRequestUrl('{{baseUrl}}/freeBusy');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/freeBusy' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/freeBusy' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/freeBusy", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/freeBusy"

payload = {
    "calendarExpansionMax": 0,
    "groupExpansionMax": 0,
    "items": [{ "id": "" }],
    "timeMax": "",
    "timeMin": "",
    "timeZone": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/freeBusy"

payload <- "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/freeBusy")

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  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\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/freeBusy') do |req|
  req.body = "{\n  \"calendarExpansionMax\": 0,\n  \"groupExpansionMax\": 0,\n  \"items\": [\n    {\n      \"id\": \"\"\n    }\n  ],\n  \"timeMax\": \"\",\n  \"timeMin\": \"\",\n  \"timeZone\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/freeBusy";

    let payload = json!({
        "calendarExpansionMax": 0,
        "groupExpansionMax": 0,
        "items": (json!({"id": ""})),
        "timeMax": "",
        "timeMin": "",
        "timeZone": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/freeBusy \
  --header 'content-type: application/json' \
  --data '{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}'
echo '{
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [
    {
      "id": ""
    }
  ],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
}' |  \
  http POST {{baseUrl}}/freeBusy \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "calendarExpansionMax": 0,\n  "groupExpansionMax": 0,\n  "items": [\n    {\n      "id": ""\n    }\n  ],\n  "timeMax": "",\n  "timeMin": "",\n  "timeZone": ""\n}' \
  --output-document \
  - {{baseUrl}}/freeBusy
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "calendarExpansionMax": 0,
  "groupExpansionMax": 0,
  "items": [["id": ""]],
  "timeMax": "",
  "timeMin": "",
  "timeZone": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/freeBusy")! 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 calendar.settings.get
{{baseUrl}}/users/me/settings/:setting
QUERY PARAMS

setting
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/settings/:setting");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/users/me/settings/:setting")
require "http/client"

url = "{{baseUrl}}/users/me/settings/:setting"

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}}/users/me/settings/:setting"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/users/me/settings/:setting");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/users/me/settings/:setting"

	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/users/me/settings/:setting HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/users/me/settings/:setting")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/settings/:setting"))
    .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}}/users/me/settings/:setting")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/users/me/settings/:setting")
  .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}}/users/me/settings/:setting');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/users/me/settings/:setting'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/settings/:setting';
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}}/users/me/settings/:setting',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/users/me/settings/:setting")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/users/me/settings/:setting',
  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}}/users/me/settings/:setting'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/users/me/settings/:setting');

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}}/users/me/settings/:setting'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/users/me/settings/:setting';
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}}/users/me/settings/:setting"]
                                                       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}}/users/me/settings/:setting" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/settings/:setting",
  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}}/users/me/settings/:setting');

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/settings/:setting');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/users/me/settings/:setting');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/settings/:setting' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/settings/:setting' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/users/me/settings/:setting")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/users/me/settings/:setting"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/users/me/settings/:setting"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/users/me/settings/:setting")

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/users/me/settings/:setting') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/users/me/settings/:setting";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/users/me/settings/:setting
http GET {{baseUrl}}/users/me/settings/:setting
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/users/me/settings/:setting
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/settings/:setting")! 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 calendar.settings.list
{{baseUrl}}/users/me/settings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/users/me/settings")
require "http/client"

url = "{{baseUrl}}/users/me/settings"

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}}/users/me/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/users/me/settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/users/me/settings"

	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/users/me/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/users/me/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/settings"))
    .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}}/users/me/settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/users/me/settings")
  .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}}/users/me/settings');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/users/me/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/settings';
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}}/users/me/settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/users/me/settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/users/me/settings',
  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}}/users/me/settings'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/users/me/settings');

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}}/users/me/settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/users/me/settings';
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}}/users/me/settings"]
                                                       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}}/users/me/settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/settings",
  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}}/users/me/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/users/me/settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/users/me/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/users/me/settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/users/me/settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/users/me/settings")

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/users/me/settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/users/me/settings";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/users/me/settings
http GET {{baseUrl}}/users/me/settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/users/me/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/settings")! 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 calendar.settings.watch
{{baseUrl}}/users/me/settings/watch
BODY json

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/users/me/settings/watch");

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/users/me/settings/watch" {:content-type :json
                                                                    :form-params {:address ""
                                                                                  :expiration ""
                                                                                  :id ""
                                                                                  :kind ""
                                                                                  :params {}
                                                                                  :payload false
                                                                                  :resourceId ""
                                                                                  :resourceUri ""
                                                                                  :token ""
                                                                                  :type ""}})
require "http/client"

url = "{{baseUrl}}/users/me/settings/watch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/users/me/settings/watch"),
    Content = new StringContent("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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}}/users/me/settings/watch");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/users/me/settings/watch"

	payload := strings.NewReader("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/users/me/settings/watch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 171

{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/users/me/settings/watch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/users/me/settings/watch"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/users/me/settings/watch")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/users/me/settings/watch")
  .header("content-type", "application/json")
  .body("{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/users/me/settings/watch');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/users/me/settings/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/users/me/settings/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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}}/users/me/settings/watch',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/users/me/settings/watch")
  .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/users/me/settings/watch',
  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({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/users/me/settings/watch',
  headers: {'content-type': 'application/json'},
  body: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    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}}/users/me/settings/watch');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  address: '',
  expiration: '',
  id: '',
  kind: '',
  params: {},
  payload: false,
  resourceId: '',
  resourceUri: '',
  token: '',
  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}}/users/me/settings/watch',
  headers: {'content-type': 'application/json'},
  data: {
    address: '',
    expiration: '',
    id: '',
    kind: '',
    params: {},
    payload: false,
    resourceId: '',
    resourceUri: '',
    token: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/users/me/settings/watch';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"address":"","expiration":"","id":"","kind":"","params":{},"payload":false,"resourceId":"","resourceUri":"","token":"","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 = @{ @"address": @"",
                              @"expiration": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"params": @{  },
                              @"payload": @NO,
                              @"resourceId": @"",
                              @"resourceUri": @"",
                              @"token": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/users/me/settings/watch"]
                                                       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}}/users/me/settings/watch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/users/me/settings/watch",
  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([
    'address' => '',
    'expiration' => '',
    'id' => '',
    'kind' => '',
    'params' => [
        
    ],
    'payload' => null,
    'resourceId' => '',
    'resourceUri' => '',
    'token' => '',
    '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}}/users/me/settings/watch', [
  'body' => '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/users/me/settings/watch');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'address' => '',
  'expiration' => '',
  'id' => '',
  'kind' => '',
  'params' => [
    
  ],
  'payload' => null,
  'resourceId' => '',
  'resourceUri' => '',
  'token' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/users/me/settings/watch');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/users/me/settings/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/users/me/settings/watch' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/users/me/settings/watch", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/users/me/settings/watch"

payload = {
    "address": "",
    "expiration": "",
    "id": "",
    "kind": "",
    "params": {},
    "payload": False,
    "resourceId": "",
    "resourceUri": "",
    "token": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/users/me/settings/watch"

payload <- "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/users/me/settings/watch")

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  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\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/users/me/settings/watch') do |req|
  req.body = "{\n  \"address\": \"\",\n  \"expiration\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"params\": {},\n  \"payload\": false,\n  \"resourceId\": \"\",\n  \"resourceUri\": \"\",\n  \"token\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/users/me/settings/watch";

    let payload = json!({
        "address": "",
        "expiration": "",
        "id": "",
        "kind": "",
        "params": json!({}),
        "payload": false,
        "resourceId": "",
        "resourceUri": "",
        "token": "",
        "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)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/users/me/settings/watch \
  --header 'content-type: application/json' \
  --data '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}'
echo '{
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": {},
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/users/me/settings/watch \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "address": "",\n  "expiration": "",\n  "id": "",\n  "kind": "",\n  "params": {},\n  "payload": false,\n  "resourceId": "",\n  "resourceUri": "",\n  "token": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/users/me/settings/watch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "address": "",
  "expiration": "",
  "id": "",
  "kind": "",
  "params": [],
  "payload": false,
  "resourceId": "",
  "resourceUri": "",
  "token": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/users/me/settings/watch")! 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()