Data2CRM.API
Data2CRM.APIv1
Make use of our in-depth documentation to get more information about the various functions of the service. Those willing to explore the mechanics of Data2CRM.API can test it in live regime using the short code samples. Select CRM: Loading... please wait Here are the API access keys: X-API2CRM-USER-KEY : e2a6379ab878ae7e58119d4ec842bf9c X-API2CRM-APPLICATION-KEY : 7ae5b17008fb414d84981191cf3b66a476ef8bef The CRM access details are: URL : https://login.salesforce.com/ E-mail / Username : developers.data2crm.api+1@magneticone.com Password : data2crmapi123
- Endpoints
- 336 (158 GET, 60 POST, 59 PUT, 59 DELETE)
- Base URL
https://api-2445581398133.apicast.io:443/v1- Authentication
- Not specified in spec
- Spec format
- Swagger 2.0
- API version
- 1
- Source
- app.api2crm.com
- Provider
- data2crm.com
- Last updated
Use this API in Bruno:
- Download the Bruno collection above and unzip it.
- In Bruno, choose Open Collection and select the unzipped folder.
- Set the
baseUrlvariable (for examplehttps://api-2445581398133.apicast.io:443/v1), then send requests.
GET
AGGREGATE for account
{{baseUrl}}/application/entity/account/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/account/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/account/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/account/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/account/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/account/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/account/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/account/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/account/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/account/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/account/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/account/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for account
{{baseUrl}}/application/entity/account/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/account/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/account/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/account/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/account/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/account/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/account/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/account/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/account/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/account/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/account/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/account/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for account
{{baseUrl}}/application/entity/account/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/account/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/account/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/account/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/account/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/account/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/account/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/account/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/account/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/account/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/account/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/account/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/account/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for account
{{baseUrl}}/application/entity/account/:account_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
account_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/:account_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/account/:account_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/:account_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/:account_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/:account_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/:account_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/account/:account_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/account/:account_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/:account_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/account/:account_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/account/:account_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/account/:account_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/:account_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/:account_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/:account_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/:account_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/account/:account_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/:account_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/:account_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/:account_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/:account_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/account/:account_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/:account_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/:account_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/:account_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/:account_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/account/:account_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/:account_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/:account_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/:account_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/account/:account_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/:account_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/account/:account_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/account/:account_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/:account_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/:account_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for account
{{baseUrl}}/application/entity/account/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/account/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/account/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/account/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/account/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/account/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/account/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/account/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/account/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/account/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/account/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/account/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for account (GET)
{{baseUrl}}/application/entity/account/:account_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
account_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/:account_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/account/:account_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/:account_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/:account_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/:account_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/:account_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/account/:account_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/account/:account_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/:account_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/:account_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/account/:account_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/account/:account_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/:account_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/:account_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/:account_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/:account_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/account/:account_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/:account_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/:account_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/:account_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/:account_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/account/:account_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/:account_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/:account_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/:account_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/:account_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/account/:account_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/:account_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/:account_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/:account_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/account/:account_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/:account_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/account/:account_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/account/:account_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/:account_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/:account_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for account
{{baseUrl}}/application/entity/account/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/account/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/account/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/account/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/account/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/account/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/account/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/account/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/account/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/account/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/account/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/account/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/account/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for account
{{baseUrl}}/application/entity/account/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/account/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/account/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/account/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/account/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/account/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/account/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/account/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/account/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/account/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/account/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/account/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for account
{{baseUrl}}/application/entity/account
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/account" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/account"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/account HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/account")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/account")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/account');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/account',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/account',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/account');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/account',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/account', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/account", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/account') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/account \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/account \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for account
{{baseUrl}}/application/entity/account/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/account/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/account/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/account/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/account/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/account/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/account/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/account/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/account/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/account/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/account/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/account/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/account/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for account
{{baseUrl}}/application/entity/account/:account_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
account_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/account/:account_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/account/:account_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/account/:account_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/account/:account_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/account/:account_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/account/:account_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/account/:account_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/account/:account_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/account/:account_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/account/:account_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/account/:account_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/account/:account_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/account/:account_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/account/:account_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/account/:account_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/account/:account_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/account/:account_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/account/:account_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/account/:account_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/account/:account_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/account/:account_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/account/:account_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/account/:account_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/account/:account_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/account/:account_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/account/:account_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/account/:account_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/account/:account_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/account/:account_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/account/:account_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/account/:account_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/account/:account_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/account/:account_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/account/:account_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/account/:account_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/account/:account_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/account/:account_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for application
{{baseUrl}}/application/count
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/count" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/application/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/count HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/count")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/count"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/count")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/count")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/count',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/count';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/count',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/count")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/count',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/count',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/count');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/count',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/count';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/count" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/count', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/application/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/count"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/count') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/count \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/count \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/application/count
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for application
{{baseUrl}}/application/:key
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/:key");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/:key" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/application/:key"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/:key"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/:key");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/:key"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/:key HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/:key")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/:key"))
.header("x-api2crm-user-key", "")
.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}}/application/:key")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/:key")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/:key');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/:key';
const options = {method: 'DELETE', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/:key',
method: 'DELETE',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/:key")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/:key',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/:key');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/:key';
const options = {method: 'DELETE', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/:key"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/:key" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/:key",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/:key', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/:key');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/:key');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/:key' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/:key' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("DELETE", "/baseUrl/application/:key", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/:key"
headers = {"x-api2crm-user-key": ""}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/:key"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/:key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/:key') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/:key";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/:key \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/:key \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/application/:key
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/:key")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for application (GET)
{{baseUrl}}/application/:key
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/:key");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/:key" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/application/:key"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/:key"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/:key");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/:key"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/:key HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/:key")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/:key"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/:key")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/:key")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/:key');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/:key';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/:key',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/:key")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/:key',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/:key');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/:key';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/:key"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/:key" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/:key",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/:key', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/:key');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/:key');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/:key' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/:key' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/application/:key", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/:key"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/:key"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/:key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/:key') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/:key";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/:key \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/:key \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/application/:key
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/:key")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for application
{{baseUrl}}/application/list
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/list" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/application/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/list HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/list")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/list"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/list")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/list")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/list',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/list';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/list',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/list")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/list',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/list',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/list');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/list',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/list';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/list" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/list', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/application/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/list"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/list') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/list \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/list \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/application/list
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for application
{{baseUrl}}/application
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/application"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application"))
.header("x-api2crm-user-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application")
.post(null)
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application';
const options = {method: 'POST', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application',
method: 'POST',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application")
.post(null)
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application';
const options = {method: 'POST', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("POST", "/baseUrl/application", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application"
headers = {"x-api2crm-user-key": ""}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/application
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for application
{{baseUrl}}/application/:key
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/:key");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/:key" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/application/:key"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/:key"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/:key");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/:key"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/:key HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/:key")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/:key"))
.header("x-api2crm-user-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/:key")
.put(null)
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/:key")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/:key');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/:key';
const options = {method: 'PUT', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/:key',
method: 'PUT',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/:key")
.put(null)
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/:key',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/:key');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/:key',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/:key';
const options = {method: 'PUT', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/:key"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/:key" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/:key",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/:key', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/:key');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/:key');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/:key' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/:key' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("PUT", "/baseUrl/application/:key", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/:key"
headers = {"x-api2crm-user-key": ""}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/:key"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/:key")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/:key') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/:key";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/:key \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/:key \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/application/:key
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/:key")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for attachment
{{baseUrl}}/application/entity/attachment/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/attachment/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/attachment/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/attachment/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/attachment/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/attachment/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/attachment/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/attachment/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/attachment/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/attachment/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/attachment/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/attachment/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for attachment
{{baseUrl}}/application/entity/attachment/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/attachment/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/attachment/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/attachment/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/attachment/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/attachment/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/attachment/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/attachment/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/attachment/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/attachment/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/attachment/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/attachment/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for attachment
{{baseUrl}}/application/entity/attachment/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/attachment/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/attachment/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/attachment/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/attachment/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/attachment/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/attachment/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/attachment/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/attachment/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/attachment/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/attachment/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/attachment/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/attachment/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for attachment
{{baseUrl}}/application/entity/attachment/:attachment_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
attachment_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/:attachment_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/attachment/:attachment_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/:attachment_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/:attachment_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/:attachment_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/:attachment_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/attachment/:attachment_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/attachment/:attachment_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/:attachment_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/attachment/:attachment_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/attachment/:attachment_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/attachment/:attachment_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/:attachment_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/:attachment_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/:attachment_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/attachment/:attachment_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/:attachment_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/:attachment_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/:attachment_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/:attachment_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/attachment/:attachment_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/:attachment_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/:attachment_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/:attachment_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/:attachment_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/attachment/:attachment_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/:attachment_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/:attachment_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/:attachment_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/attachment/:attachment_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/:attachment_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/attachment/:attachment_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/attachment/:attachment_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/:attachment_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/:attachment_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for attachment
{{baseUrl}}/application/entity/attachment/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/attachment/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/attachment/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/attachment/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/attachment/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/attachment/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/attachment/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/attachment/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/attachment/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/attachment/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/attachment/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/attachment/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for attachment (GET)
{{baseUrl}}/application/entity/attachment/:attachment_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
attachment_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/:attachment_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/attachment/:attachment_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/:attachment_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/:attachment_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/:attachment_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/:attachment_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/attachment/:attachment_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/attachment/:attachment_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/:attachment_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/:attachment_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/attachment/:attachment_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/attachment/:attachment_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/:attachment_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/:attachment_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/:attachment_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/attachment/:attachment_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/:attachment_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/:attachment_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/:attachment_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/:attachment_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/attachment/:attachment_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/:attachment_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/:attachment_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/:attachment_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/:attachment_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/attachment/:attachment_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/:attachment_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/:attachment_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/:attachment_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/attachment/:attachment_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/:attachment_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/attachment/:attachment_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/attachment/:attachment_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/:attachment_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/:attachment_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for attachment
{{baseUrl}}/application/entity/attachment/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/attachment/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/attachment/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/attachment/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/attachment/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/attachment/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/attachment/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/attachment/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/attachment/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/attachment/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/attachment/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/attachment/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/attachment/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for attachment
{{baseUrl}}/application/entity/attachment/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/attachment/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/attachment/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/attachment/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/attachment/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/attachment/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/attachment/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/attachment/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/attachment/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/attachment/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/attachment/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/attachment/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for attachment
{{baseUrl}}/application/entity/attachment
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/attachment" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/attachment HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/attachment")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/attachment")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/attachment');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/attachment',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/attachment',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/attachment');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/attachment',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/attachment', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/attachment", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/attachment') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/attachment \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/attachment \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for attachment
{{baseUrl}}/application/entity/attachment/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/attachment/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/attachment/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/attachment/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/attachment/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/attachment/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/attachment/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/attachment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/attachment/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/attachment/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/attachment/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/attachment/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/attachment/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for attachment
{{baseUrl}}/application/entity/attachment/:attachment_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
attachment_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/attachment/:attachment_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/attachment/:attachment_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/attachment/:attachment_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/attachment/:attachment_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/attachment/:attachment_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/attachment/:attachment_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/attachment/:attachment_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/attachment/:attachment_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/attachment/:attachment_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/:attachment_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/attachment/:attachment_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/attachment/:attachment_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/attachment/:attachment_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/attachment/:attachment_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/attachment/:attachment_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/attachment/:attachment_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/attachment/:attachment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/attachment/:attachment_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/attachment/:attachment_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/attachment/:attachment_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/attachment/:attachment_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/attachment/:attachment_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/attachment/:attachment_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/attachment/:attachment_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/attachment/:attachment_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/attachment/:attachment_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/attachment/:attachment_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/attachment/:attachment_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/attachment/:attachment_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/attachment/:attachment_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/attachment/:attachment_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/attachment/:attachment_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/attachment/:attachment_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/attachment/:attachment_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/attachment/:attachment_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/attachment/:attachment_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for call
{{baseUrl}}/application/entity/call/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/call/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/call/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/call/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/call/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/call/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/call/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/call/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/call/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/call/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/call/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/call/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for call
{{baseUrl}}/application/entity/call/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/call/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/call/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/call/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/call/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/call/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/call/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/call/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/call/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/call/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/call/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/call/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for call
{{baseUrl}}/application/entity/call/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/call/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/call/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/call/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/call/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/call/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/call/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/call/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/call/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/call/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/call/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/call/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/call/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for call
{{baseUrl}}/application/entity/call/:call_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
call_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/:call_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/call/:call_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/:call_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/:call_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/:call_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/:call_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/call/:call_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/call/:call_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/:call_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/call/:call_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/call/:call_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/call/:call_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/:call_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/:call_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/:call_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/:call_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/call/:call_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/:call_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/:call_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/:call_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/:call_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/call/:call_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/:call_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/:call_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/:call_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/:call_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/call/:call_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/:call_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/:call_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/:call_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/call/:call_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/:call_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/call/:call_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/call/:call_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/:call_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/:call_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for call
{{baseUrl}}/application/entity/call/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/call/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/call/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/call/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/call/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/call/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/call/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/call/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/call/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/call/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/call/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/call/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for call (GET)
{{baseUrl}}/application/entity/call/:call_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
call_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/:call_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/call/:call_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/:call_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/:call_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/:call_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/:call_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/call/:call_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/call/:call_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/:call_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/:call_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/call/:call_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/call/:call_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/:call_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/:call_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/:call_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/:call_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/call/:call_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/:call_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/:call_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/:call_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/:call_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/call/:call_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/:call_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/:call_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/:call_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/:call_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/call/:call_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/:call_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/:call_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/:call_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/call/:call_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/:call_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/call/:call_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/call/:call_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/:call_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/:call_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for call
{{baseUrl}}/application/entity/call/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/call/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/call/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/call/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/call/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/call/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/call/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/call/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/call/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/call/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/call/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/call/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/call/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for call
{{baseUrl}}/application/entity/call/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/call/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/call/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/call/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/call/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/call/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/call/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/call/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/call/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/call/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/call/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/call/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for call
{{baseUrl}}/application/entity/call
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/call" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/call"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/call HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/call")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/call")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/call');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/call',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/call',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/call');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/call',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/call', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/call", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/call') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/call \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/call \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for call
{{baseUrl}}/application/entity/call/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/call/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/call/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/call/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/call/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/call/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/call/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/call/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/call/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/call/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/call/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/call/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/call/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for call
{{baseUrl}}/application/entity/call/:call_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
call_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/call/:call_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/call/:call_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/call/:call_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/call/:call_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/call/:call_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/call/:call_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/call/:call_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/call/:call_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/call/:call_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/call/:call_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/call/:call_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/call/:call_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/call/:call_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/call/:call_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/call/:call_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/call/:call_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/call/:call_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/call/:call_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/call/:call_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/call/:call_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/call/:call_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/call/:call_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/call/:call_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/call/:call_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/call/:call_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/call/:call_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/call/:call_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/call/:call_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/call/:call_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/call/:call_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/call/:call_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/call/:call_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/call/:call_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/call/:call_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/call/:call_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/call/:call_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/call/:call_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for campaign
{{baseUrl}}/application/entity/campaign/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/campaign/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/campaign/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/campaign/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/campaign/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/campaign/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/campaign/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/campaign/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/campaign/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/campaign/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/campaign/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/campaign/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for campaign
{{baseUrl}}/application/entity/campaign/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/campaign/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/campaign/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/campaign/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/campaign/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/campaign/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/campaign/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/campaign/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/campaign/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/campaign/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/campaign/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/campaign/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for campaign
{{baseUrl}}/application/entity/campaign/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/campaign/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/campaign/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/campaign/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/campaign/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/campaign/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/campaign/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/campaign/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/campaign/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/campaign/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/campaign/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/campaign/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/campaign/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for campaign
{{baseUrl}}/application/entity/campaign/:campaign_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
campaign_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/:campaign_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/campaign/:campaign_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/:campaign_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/:campaign_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/:campaign_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/:campaign_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/campaign/:campaign_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/campaign/:campaign_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/:campaign_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/campaign/:campaign_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/campaign/:campaign_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/campaign/:campaign_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/:campaign_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/:campaign_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/:campaign_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/campaign/:campaign_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/:campaign_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/:campaign_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/:campaign_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/:campaign_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/campaign/:campaign_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/:campaign_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/:campaign_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/:campaign_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/:campaign_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/campaign/:campaign_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/:campaign_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/:campaign_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/:campaign_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/campaign/:campaign_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/:campaign_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/campaign/:campaign_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/campaign/:campaign_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/:campaign_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/:campaign_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for campaign
{{baseUrl}}/application/entity/campaign/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/campaign/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/campaign/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/campaign/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/campaign/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/campaign/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/campaign/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/campaign/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/campaign/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/campaign/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/campaign/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/campaign/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for campaign (GET)
{{baseUrl}}/application/entity/campaign/:campaign_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
campaign_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/:campaign_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/campaign/:campaign_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/:campaign_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/:campaign_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/:campaign_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/:campaign_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/campaign/:campaign_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/campaign/:campaign_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/:campaign_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/:campaign_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/campaign/:campaign_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/campaign/:campaign_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/:campaign_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/:campaign_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/:campaign_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/campaign/:campaign_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/:campaign_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/:campaign_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/:campaign_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/:campaign_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/campaign/:campaign_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/:campaign_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/:campaign_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/:campaign_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/:campaign_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/campaign/:campaign_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/:campaign_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/:campaign_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/:campaign_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/campaign/:campaign_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/:campaign_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/campaign/:campaign_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/campaign/:campaign_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/:campaign_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/:campaign_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for campaign
{{baseUrl}}/application/entity/campaign/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/campaign/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/campaign/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/campaign/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/campaign/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/campaign/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/campaign/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/campaign/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/campaign/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/campaign/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/campaign/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/campaign/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/campaign/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for campaign
{{baseUrl}}/application/entity/campaign/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/campaign/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/campaign/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/campaign/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/campaign/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/campaign/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/campaign/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/campaign/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/campaign/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/campaign/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/campaign/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/campaign/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for campaign
{{baseUrl}}/application/entity/campaign
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/campaign" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/campaign HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/campaign")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/campaign")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/campaign');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/campaign',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/campaign',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/campaign');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/campaign',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/campaign', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/campaign", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/campaign') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/campaign \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/campaign \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for campaign
{{baseUrl}}/application/entity/campaign/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/campaign/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/campaign/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/campaign/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/campaign/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/campaign/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/campaign/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/campaign/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/campaign/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/campaign/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/campaign/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/campaign/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/campaign/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for campaign
{{baseUrl}}/application/entity/campaign/:campaign_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
campaign_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/campaign/:campaign_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/campaign/:campaign_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/campaign/:campaign_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/campaign/:campaign_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/campaign/:campaign_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/campaign/:campaign_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/campaign/:campaign_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/campaign/:campaign_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/campaign/:campaign_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/:campaign_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/campaign/:campaign_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/campaign/:campaign_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/campaign/:campaign_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/campaign/:campaign_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/campaign/:campaign_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/campaign/:campaign_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/campaign/:campaign_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/campaign/:campaign_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/campaign/:campaign_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/campaign/:campaign_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/campaign/:campaign_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/campaign/:campaign_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/campaign/:campaign_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/campaign/:campaign_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/campaign/:campaign_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/campaign/:campaign_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/campaign/:campaign_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/campaign/:campaign_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/campaign/:campaign_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/campaign/:campaign_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/campaign/:campaign_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/campaign/:campaign_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/campaign/:campaign_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/campaign/:campaign_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/campaign/:campaign_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/campaign/:campaign_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for case
{{baseUrl}}/application/entity/case/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/case/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/case/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/case/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/case/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/case/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/case/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/case/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/case/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/case/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/case/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/case/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for case
{{baseUrl}}/application/entity/case/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/case/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/case/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/case/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/case/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/case/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/case/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/case/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/case/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/case/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/case/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/case/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for case
{{baseUrl}}/application/entity/case/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/case/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/case/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/case/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/case/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/case/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/case/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/case/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/case/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/case/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/case/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/case/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/case/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for case
{{baseUrl}}/application/entity/case/:case_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
case_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/:case_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/case/:case_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/:case_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/:case_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/:case_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/:case_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/case/:case_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/case/:case_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/:case_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/case/:case_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/case/:case_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/case/:case_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/:case_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/:case_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/:case_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/:case_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/case/:case_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/:case_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/:case_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/:case_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/:case_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/case/:case_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/:case_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/:case_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/:case_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/:case_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/case/:case_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/:case_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/:case_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/:case_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/case/:case_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/:case_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/case/:case_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/case/:case_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/:case_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/:case_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for case
{{baseUrl}}/application/entity/case/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/case/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/case/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/case/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/case/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/case/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/case/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/case/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/case/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/case/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/case/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/case/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for case (GET)
{{baseUrl}}/application/entity/case/:case_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
case_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/:case_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/case/:case_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/:case_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/:case_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/:case_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/:case_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/case/:case_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/case/:case_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/:case_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/:case_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/case/:case_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/case/:case_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/:case_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/:case_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/:case_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/:case_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/case/:case_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/:case_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/:case_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/:case_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/:case_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/case/:case_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/:case_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/:case_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/:case_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/:case_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/case/:case_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/:case_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/:case_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/:case_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/case/:case_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/:case_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/case/:case_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/case/:case_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/:case_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/:case_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for case
{{baseUrl}}/application/entity/case/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/case/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/case/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/case/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/case/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/case/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/case/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/case/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/case/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/case/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/case/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/case/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/case/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for case
{{baseUrl}}/application/entity/case/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/case/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/case/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/case/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/case/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/case/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/case/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/case/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/case/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/case/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/case/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/case/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for case
{{baseUrl}}/application/entity/case
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/case" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/case"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/case HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/case")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/case")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/case');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/case',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/case',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/case');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/case',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/case', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/case", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/case') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/case \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/case \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for case
{{baseUrl}}/application/entity/case/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/case/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/case/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/case/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/case/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/case/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/case/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/case/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/case/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/case/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/case/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/case/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/case/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for case
{{baseUrl}}/application/entity/case/:case_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
case_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/case/:case_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/case/:case_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/case/:case_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/case/:case_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/case/:case_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/case/:case_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/case/:case_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/case/:case_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/case/:case_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/case/:case_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/case/:case_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/case/:case_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/case/:case_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/case/:case_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/case/:case_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/case/:case_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/case/:case_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/case/:case_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/case/:case_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/case/:case_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/case/:case_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/case/:case_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/case/:case_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/case/:case_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/case/:case_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/case/:case_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/case/:case_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/case/:case_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/case/:case_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/case/:case_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/case/:case_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/case/:case_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/case/:case_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/case/:case_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/case/:case_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/case/:case_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/case/:case_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for comment
{{baseUrl}}/application/entity/comment/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/comment/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/comment/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/comment/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/comment/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/comment/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/comment/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/comment/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/comment/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/comment/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/comment/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/comment/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for comment
{{baseUrl}}/application/entity/comment/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/comment/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/comment/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/comment/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/comment/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/comment/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/comment/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/comment/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/comment/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/comment/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/comment/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/comment/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for comment
{{baseUrl}}/application/entity/comment/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/comment/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/comment/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/comment/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/comment/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/comment/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/comment/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/comment/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/comment/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/comment/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/comment/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/comment/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/comment/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for comment
{{baseUrl}}/application/entity/comment/:comment_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
comment_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/:comment_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/comment/:comment_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/:comment_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/:comment_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/:comment_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/:comment_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/comment/:comment_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/comment/:comment_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/:comment_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/comment/:comment_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/comment/:comment_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/comment/:comment_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/:comment_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/:comment_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/:comment_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/:comment_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/comment/:comment_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/:comment_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/:comment_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/:comment_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/:comment_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/comment/:comment_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/:comment_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/:comment_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/:comment_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/:comment_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/comment/:comment_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/:comment_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/:comment_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/:comment_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/comment/:comment_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/:comment_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/comment/:comment_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/comment/:comment_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/:comment_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/:comment_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for comment
{{baseUrl}}/application/entity/comment/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/comment/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/comment/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/comment/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/comment/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/comment/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/comment/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/comment/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/comment/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/comment/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/comment/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/comment/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for comment (GET)
{{baseUrl}}/application/entity/comment/:comment_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
comment_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/:comment_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/comment/:comment_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/:comment_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/:comment_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/:comment_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/:comment_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/comment/:comment_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/comment/:comment_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/:comment_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/:comment_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/comment/:comment_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/comment/:comment_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/:comment_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/:comment_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/:comment_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/:comment_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/comment/:comment_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/:comment_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/:comment_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/:comment_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/:comment_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/comment/:comment_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/:comment_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/:comment_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/:comment_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/:comment_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/comment/:comment_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/:comment_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/:comment_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/:comment_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/comment/:comment_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/:comment_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/comment/:comment_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/comment/:comment_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/:comment_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/:comment_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for comment
{{baseUrl}}/application/entity/comment/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/comment/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/comment/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/comment/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/comment/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/comment/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/comment/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/comment/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/comment/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/comment/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/comment/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/comment/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/comment/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for comment
{{baseUrl}}/application/entity/comment/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/comment/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/comment/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/comment/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/comment/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/comment/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/comment/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/comment/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/comment/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/comment/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/comment/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/comment/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for comment
{{baseUrl}}/application/entity/comment
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/comment" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/comment HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/comment")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/comment")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/comment');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/comment',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/comment',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/comment');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/comment',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/comment', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/comment", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/comment') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/comment \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/comment \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for comment
{{baseUrl}}/application/entity/comment/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/comment/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/comment/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/comment/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/comment/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/comment/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/comment/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/comment/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/comment/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/comment/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/comment/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/comment/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/comment/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for comment
{{baseUrl}}/application/entity/comment/:comment_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
comment_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/comment/:comment_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/comment/:comment_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/comment/:comment_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/comment/:comment_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/comment/:comment_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/comment/:comment_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/comment/:comment_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/comment/:comment_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/comment/:comment_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/comment/:comment_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/comment/:comment_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/comment/:comment_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/comment/:comment_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/comment/:comment_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/comment/:comment_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/comment/:comment_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/comment/:comment_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/comment/:comment_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/comment/:comment_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/comment/:comment_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/comment/:comment_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/comment/:comment_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/comment/:comment_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/comment/:comment_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/comment/:comment_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/comment/:comment_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/comment/:comment_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/comment/:comment_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/comment/:comment_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/comment/:comment_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/comment/:comment_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/comment/:comment_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/comment/:comment_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/comment/:comment_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/comment/:comment_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/comment/:comment_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/comment/:comment_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for contact
{{baseUrl}}/application/entity/contact/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/contact/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/contact/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/contact/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/contact/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/contact/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/contact/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/contact/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/contact/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/contact/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/contact/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/contact/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for contact
{{baseUrl}}/application/entity/contact/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/contact/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/contact/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/contact/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/contact/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/contact/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/contact/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/contact/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/contact/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/contact/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/contact/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/contact/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for contact
{{baseUrl}}/application/entity/contact/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/contact/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/contact/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/contact/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/contact/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/contact/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/contact/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/contact/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/contact/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/contact/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/contact/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/contact/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/contact/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for contact
{{baseUrl}}/application/entity/contact/:contact_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
contact_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/:contact_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/contact/:contact_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/:contact_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/:contact_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/:contact_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/:contact_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/contact/:contact_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/contact/:contact_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/:contact_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/contact/:contact_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/contact/:contact_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/contact/:contact_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/:contact_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/:contact_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/:contact_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/:contact_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/contact/:contact_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/:contact_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/:contact_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/:contact_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/:contact_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/contact/:contact_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/:contact_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/:contact_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/:contact_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/:contact_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/contact/:contact_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/:contact_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/:contact_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/:contact_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/contact/:contact_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/:contact_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/contact/:contact_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/contact/:contact_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/:contact_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/:contact_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for contact
{{baseUrl}}/application/entity/contact/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/contact/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/contact/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/contact/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/contact/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/contact/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/contact/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/contact/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/contact/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/contact/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/contact/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/contact/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for contact (GET)
{{baseUrl}}/application/entity/contact/:contact_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
contact_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/:contact_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/contact/:contact_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/:contact_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/:contact_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/:contact_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/:contact_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/contact/:contact_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/contact/:contact_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/:contact_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/:contact_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/contact/:contact_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/contact/:contact_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/:contact_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/:contact_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/:contact_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/:contact_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/contact/:contact_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/:contact_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/:contact_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/:contact_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/:contact_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/contact/:contact_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/:contact_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/:contact_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/:contact_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/:contact_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/contact/:contact_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/:contact_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/:contact_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/:contact_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/contact/:contact_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/:contact_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/contact/:contact_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/contact/:contact_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/:contact_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/:contact_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for contact
{{baseUrl}}/application/entity/contact/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/contact/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/contact/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/contact/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/contact/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/contact/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/contact/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/contact/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/contact/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/contact/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/contact/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/contact/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/contact/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for contact
{{baseUrl}}/application/entity/contact/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/contact/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/contact/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/contact/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/contact/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/contact/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/contact/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/contact/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/contact/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/contact/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/contact/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/contact/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for contact
{{baseUrl}}/application/entity/contact
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/contact" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/contact HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/contact")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/contact")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/contact');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/contact',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/contact',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/contact');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/contact',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/contact', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/contact", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/contact') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/contact \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/contact \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for contact
{{baseUrl}}/application/entity/contact/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/contact/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/contact/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/contact/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/contact/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/contact/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/contact/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/contact/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/contact/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/contact/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/contact/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/contact/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/contact/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for contact
{{baseUrl}}/application/entity/contact/:contact_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
contact_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/contact/:contact_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/contact/:contact_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/contact/:contact_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/contact/:contact_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/contact/:contact_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/contact/:contact_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/contact/:contact_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/contact/:contact_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/contact/:contact_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/contact/:contact_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/contact/:contact_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/contact/:contact_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/contact/:contact_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/contact/:contact_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/contact/:contact_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/contact/:contact_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/contact/:contact_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/contact/:contact_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/contact/:contact_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/contact/:contact_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/contact/:contact_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/contact/:contact_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/contact/:contact_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/contact/:contact_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/contact/:contact_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/contact/:contact_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/contact/:contact_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/contact/:contact_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/contact/:contact_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/contact/:contact_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/contact/:contact_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/contact/:contact_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/contact/:contact_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/contact/:contact_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/contact/:contact_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/contact/:contact_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/contact/:contact_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for email
{{baseUrl}}/application/entity/email/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/email/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/email/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/email/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/email/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/email/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/email/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/email/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/email/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/email/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/email/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/email/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for email
{{baseUrl}}/application/entity/email/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/email/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/email/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/email/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/email/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/email/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/email/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/email/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/email/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/email/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/email/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/email/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for email
{{baseUrl}}/application/entity/email/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/email/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/email/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/email/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/email/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/email/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/email/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/email/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/email/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/email/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/email/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/email/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/email/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for email
{{baseUrl}}/application/entity/email/:email_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
email_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/:email_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/email/:email_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/:email_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/:email_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/:email_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/:email_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/email/:email_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/email/:email_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/:email_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/email/:email_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/email/:email_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/email/:email_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/:email_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/:email_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/:email_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/:email_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/email/:email_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/:email_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/:email_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/:email_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/:email_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/email/:email_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/:email_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/:email_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/:email_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/:email_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/email/:email_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/:email_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/:email_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/:email_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/email/:email_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/:email_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/email/:email_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/email/:email_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/:email_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/:email_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for email
{{baseUrl}}/application/entity/email/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/email/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/email/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/email/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/email/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/email/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/email/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/email/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/email/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/email/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/email/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/email/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for email (GET)
{{baseUrl}}/application/entity/email/:email_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
email_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/:email_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/email/:email_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/:email_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/:email_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/:email_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/:email_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/email/:email_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/email/:email_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/:email_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/:email_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/email/:email_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/email/:email_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/:email_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/:email_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/:email_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/:email_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/email/:email_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/:email_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/:email_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/:email_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/:email_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/email/:email_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/:email_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/:email_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/:email_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/:email_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/email/:email_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/:email_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/:email_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/:email_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/email/:email_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/:email_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/email/:email_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/email/:email_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/:email_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/:email_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for email
{{baseUrl}}/application/entity/email/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/email/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/email/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/email/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/email/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/email/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/email/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/email/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/email/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/email/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/email/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/email/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/email/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for email
{{baseUrl}}/application/entity/email/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/email/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/email/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/email/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/email/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/email/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/email/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/email/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/email/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/email/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/email/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/email/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for email
{{baseUrl}}/application/entity/email
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/email" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/email"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/email HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/email")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/email")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/email');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/email',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/email',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/email');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/email',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/email', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/email", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/email') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/email \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/email \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for email
{{baseUrl}}/application/entity/email/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/email/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/email/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/email/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/email/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/email/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/email/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/email/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/email/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/email/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/email/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/email/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/email/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for email
{{baseUrl}}/application/entity/email/:email_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
email_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/email/:email_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/email/:email_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/email/:email_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/email/:email_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/email/:email_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/email/:email_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/email/:email_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/email/:email_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/email/:email_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/email/:email_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/email/:email_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/email/:email_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/email/:email_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/email/:email_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/email/:email_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/email/:email_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/email/:email_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/email/:email_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/email/:email_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/email/:email_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/email/:email_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/email/:email_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/email/:email_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/email/:email_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/email/:email_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/email/:email_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/email/:email_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/email/:email_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/email/:email_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/email/:email_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/email/:email_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/email/:email_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/email/:email_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/email/:email_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/email/:email_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/email/:email_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/email/:email_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for entity
{{baseUrl}}/application/entity/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for entity (GET)
{{baseUrl}}/application/entity/:entity_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/:entity_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/:entity_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/:entity_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/:entity_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/:entity_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/:entity_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/:entity_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/:entity_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/:entity_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/:entity_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/:entity_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for entity
{{baseUrl}}/application/entity/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for entityItem
{{baseUrl}}/application/entity/:entity_id/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/:entity_id/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/:entity_id/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/:entity_id/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/:entity_id/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/:entity_id/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/:entity_id/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/:entity_id/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/:entity_id/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/:entity_id/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/:entity_id/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/:entity_id/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for entityItem
{{baseUrl}}/application/entity/:entity_id/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/:entity_id/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/:entity_id/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/:entity_id/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/:entity_id/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/:entity_id/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/:entity_id/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/:entity_id/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/:entity_id/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/:entity_id/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/:entity_id/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/:entity_id/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for entityItem
{{baseUrl}}/application/entity/:entity_id/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/:entity_id/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/:entity_id/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/:entity_id/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/:entity_id/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/:entity_id/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/:entity_id/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/:entity_id/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/:entity_id/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/:entity_id/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/:entity_id/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/:entity_id/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/:entity_id/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for entityItem
{{baseUrl}}/application/entity/:entity_id/:entity_item_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
entity_item_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/:entity_item_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/:entity_id/:entity_item_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/:entity_item_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/:entity_item_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/:entity_id/:entity_item_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/:entity_item_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/:entity_id/:entity_item_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/:entity_item_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/:entity_item_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/:entity_item_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/:entity_item_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/:entity_item_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/:entity_item_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/:entity_item_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/:entity_item_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/:entity_id/:entity_item_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/:entity_id/:entity_item_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/:entity_id/:entity_item_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/:entity_id/:entity_item_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/:entity_item_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/:entity_item_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for entityItem
{{baseUrl}}/application/entity/:entity_id/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/:entity_id/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/:entity_id/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/:entity_id/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/:entity_id/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/:entity_id/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/:entity_id/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/:entity_id/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/:entity_id/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/:entity_id/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/:entity_id/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/:entity_id/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for entityItem (GET)
{{baseUrl}}/application/entity/:entity_id/:entity_item_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
entity_item_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/:entity_item_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/:entity_id/:entity_item_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/:entity_item_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/:entity_item_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/:entity_id/:entity_item_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/:entity_item_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/:entity_item_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/:entity_item_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/:entity_item_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/:entity_item_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/:entity_item_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/:entity_item_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/:entity_item_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/:entity_item_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/:entity_id/:entity_item_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/:entity_id/:entity_item_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/:entity_id/:entity_item_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/:entity_id/:entity_item_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/:entity_item_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/:entity_item_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for entityItem
{{baseUrl}}/application/entity/:entity_id/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/:entity_id/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/:entity_id/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/:entity_id/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/:entity_id/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/:entity_id/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/:entity_id/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/:entity_id/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/:entity_id/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/:entity_id/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/:entity_id/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/:entity_id/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/:entity_id/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for entityItem
{{baseUrl}}/application/entity/:entity_id/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/:entity_id/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/:entity_id/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/:entity_id/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/:entity_id/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/:entity_id/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/:entity_id/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/:entity_id/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/:entity_id/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/:entity_id/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/:entity_id/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/:entity_id/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for entityItem
{{baseUrl}}/application/entity/:entity_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/:entity_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/:entity_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/:entity_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/:entity_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/:entity_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/:entity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/:entity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/:entity_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/:entity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/:entity_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/:entity_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/:entity_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/:entity_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/:entity_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for entityItem
{{baseUrl}}/application/entity/:entity_id/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/:entity_id/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/:entity_id/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/:entity_id/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/:entity_id/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/:entity_id/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/:entity_id/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/:entity_id/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/:entity_id/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/:entity_id/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/:entity_id/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/:entity_id/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/:entity_id/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for entityItem
{{baseUrl}}/application/entity/:entity_id/:entity_item_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
entity_id
entity_item_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/:entity_id/:entity_item_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/:entity_id/:entity_item_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/:entity_id/:entity_item_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/:entity_id/:entity_item_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/:entity_id/:entity_item_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/:entity_id/:entity_item_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/:entity_id/:entity_item_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/:entity_id/:entity_item_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/:entity_id/:entity_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/:entity_id/:entity_item_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/:entity_id/:entity_item_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/:entity_id/:entity_item_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/:entity_id/:entity_item_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/:entity_id/:entity_item_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/:entity_id/:entity_item_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/:entity_id/:entity_item_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/:entity_id/:entity_item_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/:entity_id/:entity_item_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/:entity_id/:entity_item_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/:entity_id/:entity_item_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/:entity_id/:entity_item_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/:entity_id/:entity_item_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/:entity_id/:entity_item_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/:entity_id/:entity_item_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/:entity_id/:entity_item_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/:entity_id/:entity_item_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for event
{{baseUrl}}/application/entity/event/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/event/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/event/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/event/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/event/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/event/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/event/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/event/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/event/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/event/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/event/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/event/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for event
{{baseUrl}}/application/entity/event/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/event/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/event/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/event/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/event/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/event/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/event/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/event/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/event/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/event/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/event/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/event/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for event
{{baseUrl}}/application/entity/event/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/event/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/event/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/event/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/event/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/event/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/event/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/event/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/event/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/event/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/event/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/event/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/event/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for event
{{baseUrl}}/application/entity/event/:event_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
event_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/:event_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/event/:event_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/:event_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/:event_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/:event_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/:event_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/event/:event_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/event/:event_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/:event_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/event/:event_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/event/:event_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/event/:event_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/:event_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/:event_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/:event_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/:event_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/event/:event_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/:event_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/:event_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/:event_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/:event_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/event/:event_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/:event_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/:event_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/:event_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/:event_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/event/:event_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/:event_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/:event_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/:event_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/event/:event_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/:event_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/event/:event_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/event/:event_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/:event_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/:event_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for event
{{baseUrl}}/application/entity/event/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/event/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/event/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/event/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/event/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/event/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/event/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/event/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/event/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/event/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/event/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/event/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for event (GET)
{{baseUrl}}/application/entity/event/:event_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
event_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/:event_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/event/:event_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/:event_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/:event_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/:event_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/:event_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/event/:event_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/event/:event_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/:event_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/:event_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/event/:event_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/event/:event_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/:event_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/:event_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/:event_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/:event_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/event/:event_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/:event_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/:event_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/:event_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/:event_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/event/:event_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/:event_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/:event_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/:event_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/:event_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/event/:event_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/:event_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/:event_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/:event_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/event/:event_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/:event_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/event/:event_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/event/:event_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/:event_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/:event_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for event
{{baseUrl}}/application/entity/event/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/event/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/event/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/event/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/event/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/event/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/event/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/event/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/event/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/event/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/event/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/event/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/event/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for event
{{baseUrl}}/application/entity/event/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/event/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/event/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/event/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/event/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/event/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/event/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/event/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/event/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/event/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/event/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/event/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for event
{{baseUrl}}/application/entity/event
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/event" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/event"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/event HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/event")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/event")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/event');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/event',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/event',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/event');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/event',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/event', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/event", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/event') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/event \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/event \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for event
{{baseUrl}}/application/entity/event/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/event/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/event/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/event/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/event/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/event/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/event/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/event/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/event/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/event/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/event/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/event/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/event/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for event
{{baseUrl}}/application/entity/event/:event_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
event_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/event/:event_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/event/:event_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/event/:event_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/event/:event_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/event/:event_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/event/:event_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/event/:event_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/event/:event_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/event/:event_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/event/:event_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/event/:event_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/event/:event_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/event/:event_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/event/:event_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/event/:event_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/event/:event_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/event/:event_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/event/:event_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/event/:event_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/event/:event_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/event/:event_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/event/:event_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/event/:event_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/event/:event_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/event/:event_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/event/:event_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/event/:event_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/event/:event_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/event/:event_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/event/:event_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/event/:event_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/event/:event_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/event/:event_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/event/:event_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/event/:event_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/event/:event_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/event/:event_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for field
{{baseUrl}}/application/field/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for field (GET)
{{baseUrl}}/application/field/:field_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/:field_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/:field_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/:field_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/:field_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/:field_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/:field_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/:field_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/:field_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/:field_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/:field_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/:field_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for field
{{baseUrl}}/application/field/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for fieldItem
{{baseUrl}}/application/field/:field_id/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/:field_id/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/:field_id/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/:field_id/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/:field_id/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/:field_id/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/:field_id/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/:field_id/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/:field_id/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/:field_id/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/:field_id/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/:field_id/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for fieldItem
{{baseUrl}}/application/field/:field_id/:field_item_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
field_item_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id/:field_item_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/field/:field_id/:field_item_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id/:field_item_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id/:field_item_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id/:field_item_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id/:field_item_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/field/:field_id/:field_item_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/field/:field_id/:field_item_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id/:field_item_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/field/:field_id/:field_item_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/field/:field_id/:field_item_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/field/:field_id/:field_item_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id/:field_item_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/:field_item_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id/:field_item_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/field/:field_id/:field_item_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id/:field_item_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id/:field_item_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id/:field_item_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id/:field_item_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/field/:field_id/:field_item_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id/:field_item_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id/:field_item_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id/:field_item_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id/:field_item_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/field/:field_id/:field_item_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id/:field_item_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id/:field_item_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id/:field_item_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/field/:field_id/:field_item_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id/:field_item_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/field/:field_id/:field_item_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/field/:field_id/:field_item_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id/:field_item_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id/:field_item_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for fieldItem
{{baseUrl}}/application/field/:field_id/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/:field_id/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/:field_id/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/:field_id/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/:field_id/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/:field_id/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/:field_id/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/:field_id/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/:field_id/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/:field_id/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/:field_id/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/:field_id/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for fieldItem (GET)
{{baseUrl}}/application/field/:field_id/:field_item_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
field_item_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id/:field_item_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/:field_id/:field_item_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id/:field_item_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id/:field_item_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id/:field_item_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id/:field_item_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/:field_id/:field_item_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/:field_id/:field_item_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id/:field_item_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/:field_item_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/:field_id/:field_item_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/:field_id/:field_item_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id/:field_item_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/:field_item_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id/:field_item_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/:field_id/:field_item_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id/:field_item_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id/:field_item_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id/:field_item_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id/:field_item_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/:field_id/:field_item_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id/:field_item_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id/:field_item_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id/:field_item_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id/:field_item_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/:field_id/:field_item_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id/:field_item_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id/:field_item_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id/:field_item_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/:field_id/:field_item_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id/:field_item_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/:field_id/:field_item_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/:field_id/:field_item_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id/:field_item_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id/:field_item_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for fieldItem
{{baseUrl}}/application/field/:field_id/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/field/:field_id/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/field/:field_id/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/field/:field_id/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/field/:field_id/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/field/:field_id/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/field/:field_id/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/field/:field_id/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/field/:field_id/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/field/:field_id/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/field/:field_id/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/field/:field_id/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/field/:field_id/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for fieldItem
{{baseUrl}}/application/field/:field_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/field/:field_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/field/:field_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/field/:field_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/field/:field_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/field/:field_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/field/:field_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/field/:field_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/field/:field_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/field/:field_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/field/:field_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/field/:field_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/field/:field_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/field/:field_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/field/:field_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for fieldItem
{{baseUrl}}/application/field/:field_id/:field_item_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
field_id
field_item_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/field/:field_id/:field_item_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/field/:field_id/:field_item_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/field/:field_id/:field_item_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/field/:field_id/:field_item_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/field/:field_id/:field_item_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/field/:field_id/:field_item_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/field/:field_id/:field_item_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/field/:field_id/:field_item_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/field/:field_id/:field_item_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/:field_item_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/field/:field_id/:field_item_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/field/:field_id/:field_item_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/field/:field_id/:field_item_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/field/:field_id/:field_item_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/field/:field_id/:field_item_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/field/:field_id/:field_item_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/field/:field_id/:field_item_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/field/:field_id/:field_item_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/field/:field_id/:field_item_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/field/:field_id/:field_item_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/field/:field_id/:field_item_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/field/:field_id/:field_item_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/field/:field_id/:field_item_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/field/:field_id/:field_item_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/field/:field_id/:field_item_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/field/:field_id/:field_item_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/field/:field_id/:field_item_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/field/:field_id/:field_item_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/field/:field_id/:field_item_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/field/:field_id/:field_item_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/field/:field_id/:field_item_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/field/:field_id/:field_item_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/field/:field_id/:field_item_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/field/:field_id/:field_item_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/field/:field_id/:field_item_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/field/:field_id/:field_item_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for internalUser
{{baseUrl}}/user/count
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/user/count" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/user/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/user/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/user/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/user/count HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/count")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/user/count"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/user/count")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/count")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/user/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/user/count',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/user/count';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/user/count',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/user/count")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/user/count',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/user/count',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/user/count');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/user/count',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/user/count';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/user/count" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/user/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/user/count', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/user/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/user/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/user/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/user/count"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/user/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/user/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/user/count') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/user/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/user/count \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/user/count \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/user/count
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for internalUser
{{baseUrl}}/user/:internal_user_id
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
internal_user_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/:internal_user_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/user/:internal_user_id" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/user/:internal_user_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/user/:internal_user_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/:internal_user_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/user/:internal_user_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/user/:internal_user_id HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/user/:internal_user_id")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/user/:internal_user_id"))
.header("x-api2crm-user-key", "")
.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}}/user/:internal_user_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/user/:internal_user_id")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/user/:internal_user_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/user/:internal_user_id';
const options = {method: 'DELETE', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/user/:internal_user_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/user/:internal_user_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/user/:internal_user_id',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/user/:internal_user_id');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/user/:internal_user_id';
const options = {method: 'DELETE', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/:internal_user_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/user/:internal_user_id" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/user/:internal_user_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/user/:internal_user_id', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/user/:internal_user_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/user/:internal_user_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/:internal_user_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/:internal_user_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("DELETE", "/baseUrl/user/:internal_user_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/user/:internal_user_id"
headers = {"x-api2crm-user-key": ""}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/user/:internal_user_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/user/:internal_user_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/user/:internal_user_id') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/user/:internal_user_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/user/:internal_user_id \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/user/:internal_user_id \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/user/:internal_user_id
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/:internal_user_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for internalUser (GET)
{{baseUrl}}/user/:internal_user_id
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
internal_user_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/:internal_user_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/user/:internal_user_id" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/user/:internal_user_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/user/:internal_user_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/:internal_user_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/user/:internal_user_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/user/:internal_user_id HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/:internal_user_id")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/user/:internal_user_id"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/user/:internal_user_id")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/:internal_user_id")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/user/:internal_user_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/user/:internal_user_id';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/user/:internal_user_id',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/user/:internal_user_id")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/user/:internal_user_id',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/user/:internal_user_id');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/user/:internal_user_id';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/:internal_user_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/user/:internal_user_id" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/user/:internal_user_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/user/:internal_user_id', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/user/:internal_user_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/user/:internal_user_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/:internal_user_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/:internal_user_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/user/:internal_user_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/user/:internal_user_id"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/user/:internal_user_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/user/:internal_user_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/user/:internal_user_id') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/user/:internal_user_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/user/:internal_user_id \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/user/:internal_user_id \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/user/:internal_user_id
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/:internal_user_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for internalUser
{{baseUrl}}/user/list
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/user/list" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/user/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/user/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/user/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/user/list HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/user/list")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/user/list"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/user/list")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/user/list")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/user/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/user/list',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/user/list';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/user/list',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/user/list")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/user/list',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/user/list',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/user/list');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/user/list',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/user/list';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/user/list" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/user/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/user/list', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/user/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/user/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/user/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/user/list"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/user/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/user/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/user/list') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/user/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/user/list \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/user/list \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/user/list
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for internalUser
{{baseUrl}}/user
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/user" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/user"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/user"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/user"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/user HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/user")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/user"))
.header("x-api2crm-user-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/user")
.post(null)
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/user")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/user');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/user',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/user';
const options = {method: 'POST', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/user',
method: 'POST',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/user")
.post(null)
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/user',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/user',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/user');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/user',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/user';
const options = {method: 'POST', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/user" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/user', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/user');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/user');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("POST", "/baseUrl/user", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/user"
headers = {"x-api2crm-user-key": ""}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/user"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/user') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/user";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/user \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/user \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/user
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for internalUser
{{baseUrl}}/user/:internal_user_id
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
internal_user_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/user/:internal_user_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/user/:internal_user_id" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/user/:internal_user_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/user/:internal_user_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/user/:internal_user_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/user/:internal_user_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/user/:internal_user_id HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/user/:internal_user_id")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/user/:internal_user_id"))
.header("x-api2crm-user-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/user/:internal_user_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/user/:internal_user_id")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/user/:internal_user_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/user/:internal_user_id';
const options = {method: 'PUT', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/user/:internal_user_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/user/:internal_user_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/user/:internal_user_id',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/user/:internal_user_id');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/user/:internal_user_id',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/user/:internal_user_id';
const options = {method: 'PUT', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/user/:internal_user_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/user/:internal_user_id" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/user/:internal_user_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/user/:internal_user_id', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/user/:internal_user_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/user/:internal_user_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/user/:internal_user_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/user/:internal_user_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("PUT", "/baseUrl/user/:internal_user_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/user/:internal_user_id"
headers = {"x-api2crm-user-key": ""}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/user/:internal_user_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/user/:internal_user_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/user/:internal_user_id') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/user/:internal_user_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/user/:internal_user_id \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/user/:internal_user_id \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/user/:internal_user_id
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/user/:internal_user_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for invoice
{{baseUrl}}/application/entity/invoice/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoice/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoice/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoice/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoice/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoice/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoice/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoice/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoice/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoice/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoice/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoice/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for invoice
{{baseUrl}}/application/entity/invoice/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoice/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoice/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoice/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoice/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoice/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoice/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoice/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoice/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoice/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoice/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoice/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for invoice
{{baseUrl}}/application/entity/invoice/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/invoice/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/invoice/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/invoice/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/invoice/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/invoice/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/invoice/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/invoice/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/invoice/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/invoice/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/invoice/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/invoice/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/invoice/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for invoice
{{baseUrl}}/application/entity/invoice/:invoice_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
invoice_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/:invoice_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/invoice/:invoice_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/:invoice_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/:invoice_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/:invoice_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/:invoice_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/invoice/:invoice_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/invoice/:invoice_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/:invoice_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/invoice/:invoice_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/invoice/:invoice_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/invoice/:invoice_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/:invoice_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/:invoice_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/:invoice_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/invoice/:invoice_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/:invoice_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/:invoice_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/:invoice_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/:invoice_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/invoice/:invoice_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/:invoice_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/:invoice_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/:invoice_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/:invoice_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/invoice/:invoice_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/:invoice_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/:invoice_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/:invoice_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/invoice/:invoice_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/:invoice_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/invoice/:invoice_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/invoice/:invoice_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/:invoice_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/:invoice_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for invoice
{{baseUrl}}/application/entity/invoice/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoice/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoice/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoice/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoice/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoice/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoice/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoice/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoice/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoice/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoice/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoice/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for invoice (GET)
{{baseUrl}}/application/entity/invoice/:invoice_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
invoice_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/:invoice_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoice/:invoice_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/:invoice_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/:invoice_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/:invoice_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/:invoice_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoice/:invoice_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoice/:invoice_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/:invoice_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/:invoice_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoice/:invoice_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoice/:invoice_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/:invoice_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/:invoice_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/:invoice_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoice/:invoice_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/:invoice_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/:invoice_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/:invoice_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/:invoice_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoice/:invoice_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/:invoice_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/:invoice_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/:invoice_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/:invoice_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoice/:invoice_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/:invoice_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/:invoice_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/:invoice_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoice/:invoice_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/:invoice_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoice/:invoice_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoice/:invoice_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/:invoice_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/:invoice_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for invoice
{{baseUrl}}/application/entity/invoice/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoice/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoice/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoice/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoice/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoice/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoice/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoice/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoice/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoice/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoice/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoice/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoice/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for invoice
{{baseUrl}}/application/entity/invoice/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/invoice/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/invoice/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/invoice/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/invoice/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/invoice/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/invoice/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/invoice/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/invoice/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/invoice/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/invoice/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/invoice/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for invoice
{{baseUrl}}/application/entity/invoice
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/invoice" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/invoice HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/invoice")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/invoice")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/invoice');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoice',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoice',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/invoice');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoice',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/invoice', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/invoice", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/invoice') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/invoice \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/invoice \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for invoice
{{baseUrl}}/application/entity/invoice/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/invoice/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/invoice/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/invoice/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/invoice/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/invoice/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/invoice/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoice/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/invoice/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/invoice/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/invoice/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/invoice/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/invoice/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for invoice
{{baseUrl}}/application/entity/invoice/:invoice_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
invoice_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoice/:invoice_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/invoice/:invoice_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoice/:invoice_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoice/:invoice_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoice/:invoice_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoice/:invoice_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/invoice/:invoice_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/invoice/:invoice_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoice/:invoice_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/:invoice_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/invoice/:invoice_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/invoice/:invoice_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoice/:invoice_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoice/:invoice_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoice/:invoice_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/invoice/:invoice_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoice/:invoice_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoice/:invoice_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoice/:invoice_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoice/:invoice_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoice/:invoice_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/invoice/:invoice_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoice/:invoice_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoice/:invoice_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoice/:invoice_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoice/:invoice_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/invoice/:invoice_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoice/:invoice_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoice/:invoice_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoice/:invoice_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/invoice/:invoice_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoice/:invoice_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/invoice/:invoice_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/invoice/:invoice_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoice/:invoice_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoice/:invoice_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoiceItem/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoiceItem/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoiceItem/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoiceItem/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoiceItem/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoiceItem/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoiceItem/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoiceItem/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoiceItem/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoiceItem/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoiceItem/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoiceItem/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoiceItem/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoiceItem/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoiceItem/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoiceItem/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoiceItem/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoiceItem/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoiceItem/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoiceItem/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoiceItem/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoiceItem/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/invoiceItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/invoiceItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/invoiceItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/invoiceItem/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/invoiceItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/invoiceItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/invoiceItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/invoiceItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/invoiceItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/invoiceItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/invoiceItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/invoiceItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
invoiceItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/invoiceItem/:invoiceItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/invoiceItem/:invoiceItem_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/:invoiceItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/invoiceItem/:invoiceItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/invoiceItem/:invoiceItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoiceItem/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoiceItem/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoiceItem/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoiceItem/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoiceItem/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoiceItem/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoiceItem/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoiceItem/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoiceItem/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoiceItem/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoiceItem/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for invoiceItem (GET)
{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
invoiceItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoiceItem/:invoiceItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/:invoiceItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoiceItem/:invoiceItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoiceItem/:invoiceItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/invoiceItem/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/invoiceItem/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/invoiceItem/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/invoiceItem/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/invoiceItem/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/invoiceItem/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/invoiceItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/invoiceItem/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/invoiceItem/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/invoiceItem/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/invoiceItem/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/invoiceItem/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/invoiceItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/invoiceItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/invoiceItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/invoiceItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/invoiceItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/invoiceItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/invoiceItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/invoiceItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/invoiceItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/invoiceItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/invoiceItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for invoiceItem
{{baseUrl}}/application/entity/invoiceItem
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/invoiceItem" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/invoiceItem HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/invoiceItem")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/invoiceItem")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/invoiceItem');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoiceItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoiceItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/invoiceItem');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/invoiceItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/invoiceItem', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/invoiceItem", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/invoiceItem') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/invoiceItem \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/invoiceItem \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/invoiceItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/invoiceItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/invoiceItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/invoiceItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/invoiceItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/invoiceItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoiceItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/invoiceItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/invoiceItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/invoiceItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/invoiceItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/invoiceItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for invoiceItem
{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
invoiceItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/invoiceItem/:invoiceItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/invoiceItem/:invoiceItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/invoiceItem/:invoiceItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/invoiceItem/:invoiceItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/invoiceItem/:invoiceItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for lead
{{baseUrl}}/application/entity/lead/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/lead/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/lead/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/lead/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/lead/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/lead/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/lead/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/lead/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/lead/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/lead/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/lead/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/lead/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for lead
{{baseUrl}}/application/entity/lead/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/lead/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/lead/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/lead/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/lead/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/lead/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/lead/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/lead/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/lead/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/lead/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/lead/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/lead/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for lead
{{baseUrl}}/application/entity/lead/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/lead/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/lead/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/lead/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/lead/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/lead/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/lead/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/lead/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/lead/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/lead/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/lead/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/lead/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/lead/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for lead
{{baseUrl}}/application/entity/lead/:lead_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
lead_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/:lead_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/lead/:lead_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/:lead_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/:lead_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/:lead_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/:lead_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/lead/:lead_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/lead/:lead_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/:lead_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/lead/:lead_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/lead/:lead_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/lead/:lead_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/:lead_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/:lead_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/:lead_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/:lead_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/lead/:lead_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/:lead_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/:lead_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/:lead_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/:lead_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/lead/:lead_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/:lead_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/:lead_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/:lead_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/:lead_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/lead/:lead_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/:lead_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/:lead_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/:lead_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/lead/:lead_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/:lead_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/lead/:lead_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/lead/:lead_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/:lead_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/:lead_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for lead
{{baseUrl}}/application/entity/lead/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/lead/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/lead/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/lead/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/lead/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/lead/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/lead/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/lead/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/lead/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/lead/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/lead/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/lead/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for lead (GET)
{{baseUrl}}/application/entity/lead/:lead_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
lead_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/:lead_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/lead/:lead_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/:lead_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/:lead_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/:lead_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/:lead_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/lead/:lead_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/lead/:lead_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/:lead_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/:lead_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/lead/:lead_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/lead/:lead_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/:lead_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/:lead_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/:lead_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/:lead_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/lead/:lead_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/:lead_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/:lead_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/:lead_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/:lead_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/lead/:lead_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/:lead_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/:lead_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/:lead_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/:lead_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/lead/:lead_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/:lead_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/:lead_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/:lead_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/lead/:lead_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/:lead_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/lead/:lead_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/lead/:lead_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/:lead_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/:lead_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for lead
{{baseUrl}}/application/entity/lead/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/lead/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/lead/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/lead/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/lead/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/lead/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/lead/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/lead/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/lead/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/lead/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/lead/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/lead/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/lead/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for lead
{{baseUrl}}/application/entity/lead/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/lead/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/lead/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/lead/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/lead/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/lead/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/lead/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/lead/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/lead/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/lead/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/lead/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/lead/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for lead
{{baseUrl}}/application/entity/lead
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/lead" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/lead HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/lead")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/lead")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/lead');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/lead',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/lead',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/lead');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/lead',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/lead', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/lead", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/lead') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/lead \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/lead \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for lead
{{baseUrl}}/application/entity/lead/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/lead/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/lead/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/lead/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/lead/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/lead/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/lead/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/lead/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/lead/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/lead/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/lead/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/lead/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/lead/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for lead
{{baseUrl}}/application/entity/lead/:lead_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
lead_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/lead/:lead_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/lead/:lead_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/lead/:lead_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/lead/:lead_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/lead/:lead_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/lead/:lead_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/lead/:lead_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/lead/:lead_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/lead/:lead_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/lead/:lead_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/lead/:lead_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/lead/:lead_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/lead/:lead_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/lead/:lead_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/lead/:lead_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/lead/:lead_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/lead/:lead_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/lead/:lead_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/lead/:lead_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/lead/:lead_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/lead/:lead_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/lead/:lead_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/lead/:lead_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/lead/:lead_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/lead/:lead_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/lead/:lead_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/lead/:lead_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/lead/:lead_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/lead/:lead_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/lead/:lead_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/lead/:lead_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/lead/:lead_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/lead/:lead_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/lead/:lead_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/lead/:lead_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/lead/:lead_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/lead/:lead_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for meeting
{{baseUrl}}/application/entity/meeting/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/meeting/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/meeting/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/meeting/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/meeting/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/meeting/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/meeting/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/meeting/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/meeting/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/meeting/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/meeting/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/meeting/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for meeting
{{baseUrl}}/application/entity/meeting/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/meeting/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/meeting/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/meeting/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/meeting/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/meeting/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/meeting/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/meeting/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/meeting/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/meeting/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/meeting/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/meeting/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for meeting
{{baseUrl}}/application/entity/meeting/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/meeting/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/meeting/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/meeting/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/meeting/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/meeting/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/meeting/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/meeting/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/meeting/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/meeting/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/meeting/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/meeting/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/meeting/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for meeting
{{baseUrl}}/application/entity/meeting/:meeting_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
meeting_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/:meeting_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/meeting/:meeting_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/:meeting_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/:meeting_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/:meeting_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/:meeting_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/meeting/:meeting_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/meeting/:meeting_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/:meeting_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/meeting/:meeting_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/meeting/:meeting_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/meeting/:meeting_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/:meeting_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/:meeting_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/:meeting_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/meeting/:meeting_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/:meeting_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/:meeting_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/:meeting_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/:meeting_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/meeting/:meeting_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/:meeting_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/:meeting_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/:meeting_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/:meeting_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/meeting/:meeting_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/:meeting_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/:meeting_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/:meeting_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/meeting/:meeting_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/:meeting_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/meeting/:meeting_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/meeting/:meeting_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/:meeting_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/:meeting_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for meeting
{{baseUrl}}/application/entity/meeting/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/meeting/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/meeting/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/meeting/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/meeting/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/meeting/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/meeting/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/meeting/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/meeting/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/meeting/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/meeting/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/meeting/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for meeting (GET)
{{baseUrl}}/application/entity/meeting/:meeting_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
meeting_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/:meeting_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/meeting/:meeting_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/:meeting_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/:meeting_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/:meeting_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/:meeting_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/meeting/:meeting_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/meeting/:meeting_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/:meeting_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/:meeting_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/meeting/:meeting_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/meeting/:meeting_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/:meeting_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/:meeting_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/:meeting_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/meeting/:meeting_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/:meeting_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/:meeting_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/:meeting_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/:meeting_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/meeting/:meeting_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/:meeting_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/:meeting_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/:meeting_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/:meeting_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/meeting/:meeting_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/:meeting_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/:meeting_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/:meeting_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/meeting/:meeting_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/:meeting_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/meeting/:meeting_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/meeting/:meeting_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/:meeting_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/:meeting_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for meeting
{{baseUrl}}/application/entity/meeting/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/meeting/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/meeting/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/meeting/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/meeting/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/meeting/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/meeting/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/meeting/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/meeting/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/meeting/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/meeting/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/meeting/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/meeting/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for meeting
{{baseUrl}}/application/entity/meeting/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/meeting/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/meeting/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/meeting/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/meeting/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/meeting/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/meeting/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/meeting/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/meeting/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/meeting/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/meeting/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/meeting/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for meeting
{{baseUrl}}/application/entity/meeting
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/meeting" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/meeting HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/meeting")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/meeting")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/meeting');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/meeting',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/meeting',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/meeting');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/meeting',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/meeting', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/meeting", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/meeting') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/meeting \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/meeting \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for meeting
{{baseUrl}}/application/entity/meeting/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/meeting/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/meeting/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/meeting/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/meeting/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/meeting/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/meeting/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/meeting/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/meeting/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/meeting/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/meeting/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/meeting/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/meeting/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for meeting
{{baseUrl}}/application/entity/meeting/:meeting_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
meeting_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/meeting/:meeting_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/meeting/:meeting_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/meeting/:meeting_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/meeting/:meeting_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/meeting/:meeting_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/meeting/:meeting_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/meeting/:meeting_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/meeting/:meeting_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/meeting/:meeting_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/:meeting_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/meeting/:meeting_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/meeting/:meeting_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/meeting/:meeting_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/meeting/:meeting_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/meeting/:meeting_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/meeting/:meeting_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/meeting/:meeting_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/meeting/:meeting_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/meeting/:meeting_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/meeting/:meeting_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/meeting/:meeting_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/meeting/:meeting_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/meeting/:meeting_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/meeting/:meeting_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/meeting/:meeting_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/meeting/:meeting_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/meeting/:meeting_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/meeting/:meeting_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/meeting/:meeting_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/meeting/:meeting_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/meeting/:meeting_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/meeting/:meeting_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/meeting/:meeting_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/meeting/:meeting_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/meeting/:meeting_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/meeting/:meeting_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for note
{{baseUrl}}/application/entity/note/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/note/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/note/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/note/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/note/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/note/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/note/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/note/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/note/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/note/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/note/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/note/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for note
{{baseUrl}}/application/entity/note/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/note/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/note/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/note/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/note/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/note/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/note/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/note/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/note/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/note/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/note/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/note/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for note
{{baseUrl}}/application/entity/note/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/note/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/note/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/note/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/note/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/note/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/note/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/note/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/note/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/note/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/note/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/note/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/note/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for note
{{baseUrl}}/application/entity/note/:note_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
note_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/:note_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/note/:note_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/:note_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/:note_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/:note_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/:note_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/note/:note_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/note/:note_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/:note_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/note/:note_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/note/:note_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/note/:note_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/:note_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/:note_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/:note_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/:note_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/note/:note_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/:note_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/:note_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/:note_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/:note_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/note/:note_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/:note_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/:note_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/:note_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/:note_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/note/:note_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/:note_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/:note_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/:note_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/note/:note_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/:note_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/note/:note_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/note/:note_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/:note_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/:note_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for note
{{baseUrl}}/application/entity/note/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/note/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/note/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/note/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/note/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/note/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/note/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/note/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/note/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/note/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/note/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/note/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for note (GET)
{{baseUrl}}/application/entity/note/:note_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
note_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/:note_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/note/:note_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/:note_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/:note_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/:note_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/:note_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/note/:note_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/note/:note_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/:note_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/:note_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/note/:note_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/note/:note_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/:note_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/:note_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/:note_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/:note_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/note/:note_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/:note_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/:note_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/:note_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/:note_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/note/:note_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/:note_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/:note_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/:note_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/:note_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/note/:note_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/:note_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/:note_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/:note_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/note/:note_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/:note_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/note/:note_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/note/:note_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/:note_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/:note_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for note
{{baseUrl}}/application/entity/note/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/note/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/note/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/note/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/note/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/note/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/note/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/note/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/note/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/note/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/note/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/note/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/note/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for note
{{baseUrl}}/application/entity/note/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/note/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/note/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/note/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/note/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/note/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/note/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/note/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/note/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/note/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/note/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/note/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for note
{{baseUrl}}/application/entity/note
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/note" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/note"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/note HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/note")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/note")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/note');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/note',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/note',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/note');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/note',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/note', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/note", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/note') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/note \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/note \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for note
{{baseUrl}}/application/entity/note/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/note/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/note/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/note/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/note/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/note/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/note/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/note/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/note/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/note/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/note/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/note/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/note/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for note
{{baseUrl}}/application/entity/note/:note_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
note_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/note/:note_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/note/:note_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/note/:note_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/note/:note_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/note/:note_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/note/:note_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/note/:note_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/note/:note_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/note/:note_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/note/:note_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/note/:note_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/note/:note_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/note/:note_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/note/:note_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/note/:note_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/note/:note_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/note/:note_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/note/:note_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/note/:note_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/note/:note_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/note/:note_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/note/:note_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/note/:note_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/note/:note_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/note/:note_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/note/:note_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/note/:note_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/note/:note_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/note/:note_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/note/:note_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/note/:note_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/note/:note_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/note/:note_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/note/:note_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/note/:note_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/note/:note_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/note/:note_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for opportunity
{{baseUrl}}/application/entity/opportunity/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunity/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunity/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunity/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunity/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunity/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunity/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunity/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunity/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunity/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunity/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunity/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for opportunity
{{baseUrl}}/application/entity/opportunity/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunity/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunity/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunity/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunity/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunity/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunity/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunity/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunity/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunity/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunity/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunity/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for opportunity
{{baseUrl}}/application/entity/opportunity/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/opportunity/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/opportunity/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/opportunity/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/opportunity/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/opportunity/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/opportunity/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/opportunity/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/opportunity/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/opportunity/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/opportunity/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/opportunity/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/opportunity/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for opportunity
{{baseUrl}}/application/entity/opportunity/:opportunity_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
opportunity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/:opportunity_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/opportunity/:opportunity_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/:opportunity_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/:opportunity_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/opportunity/:opportunity_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/:opportunity_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/opportunity/:opportunity_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/opportunity/:opportunity_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/:opportunity_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/:opportunity_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/opportunity/:opportunity_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/:opportunity_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/:opportunity_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/:opportunity_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/:opportunity_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/opportunity/:opportunity_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/:opportunity_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/:opportunity_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/:opportunity_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/:opportunity_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/opportunity/:opportunity_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/opportunity/:opportunity_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/opportunity/:opportunity_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/opportunity/:opportunity_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/:opportunity_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/:opportunity_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for opportunity
{{baseUrl}}/application/entity/opportunity/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunity/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunity/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunity/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunity/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunity/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunity/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunity/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunity/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunity/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunity/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunity/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for opportunity (GET)
{{baseUrl}}/application/entity/opportunity/:opportunity_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
opportunity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/:opportunity_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunity/:opportunity_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/:opportunity_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/:opportunity_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunity/:opportunity_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/:opportunity_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunity/:opportunity_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/:opportunity_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/:opportunity_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunity/:opportunity_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/:opportunity_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/:opportunity_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/:opportunity_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/:opportunity_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunity/:opportunity_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/:opportunity_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/:opportunity_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/:opportunity_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/:opportunity_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunity/:opportunity_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunity/:opportunity_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunity/:opportunity_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunity/:opportunity_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/:opportunity_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/:opportunity_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for opportunity
{{baseUrl}}/application/entity/opportunity/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunity/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunity/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunity/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunity/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunity/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunity/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunity/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunity/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunity/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunity/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunity/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunity/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for opportunity
{{baseUrl}}/application/entity/opportunity/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/opportunity/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/opportunity/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/opportunity/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/opportunity/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/opportunity/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/opportunity/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/opportunity/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/opportunity/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/opportunity/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/opportunity/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/opportunity/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for opportunity
{{baseUrl}}/application/entity/opportunity
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/opportunity" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/opportunity HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/opportunity")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/opportunity")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/opportunity');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunity',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunity',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/opportunity');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunity',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/opportunity', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/opportunity", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/opportunity') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/opportunity \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/opportunity \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for opportunity
{{baseUrl}}/application/entity/opportunity/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/opportunity/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/opportunity/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/opportunity/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/opportunity/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/opportunity/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/opportunity/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunity/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/opportunity/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/opportunity/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/opportunity/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/opportunity/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/opportunity/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for opportunity
{{baseUrl}}/application/entity/opportunity/:opportunity_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
opportunity_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunity/:opportunity_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/opportunity/:opportunity_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunity/:opportunity_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunity/:opportunity_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/opportunity/:opportunity_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunity/:opportunity_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/opportunity/:opportunity_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunity/:opportunity_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunity/:opportunity_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/opportunity/:opportunity_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunity/:opportunity_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunity/:opportunity_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunity/:opportunity_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunity/:opportunity_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunity/:opportunity_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/opportunity/:opportunity_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunity/:opportunity_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunity/:opportunity_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunity/:opportunity_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunity/:opportunity_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/opportunity/:opportunity_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunity/:opportunity_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunity/:opportunity_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/opportunity/:opportunity_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunity/:opportunity_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/opportunity/:opportunity_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/opportunity/:opportunity_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunity/:opportunity_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunity/:opportunity_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunityProduct/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunityProduct/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunityProduct/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunityProduct/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunityProduct/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunityProduct/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunityProduct/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunityProduct/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunityProduct/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunityProduct/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunityProduct/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunityProduct/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunityProduct/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunityProduct/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunityProduct/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunityProduct/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunityProduct/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunityProduct/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunityProduct/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunityProduct/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunityProduct/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunityProduct/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/opportunityProduct/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/opportunityProduct/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/opportunityProduct/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/opportunityProduct/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/opportunityProduct/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/opportunityProduct/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/opportunityProduct/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/opportunityProduct/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/opportunityProduct/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/opportunityProduct/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/opportunityProduct/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
opportunityProduct_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/opportunityProduct/:opportunityProduct_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/opportunityProduct/:opportunityProduct_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunityProduct/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunityProduct/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunityProduct/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunityProduct/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunityProduct/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunityProduct/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunityProduct/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunityProduct/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunityProduct/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunityProduct/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunityProduct/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for opportunityProduct (GET)
{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
opportunityProduct_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunityProduct/:opportunityProduct_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/opportunityProduct/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/opportunityProduct/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/opportunityProduct/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/opportunityProduct/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/opportunityProduct/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/opportunityProduct/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/opportunityProduct/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/opportunityProduct/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/opportunityProduct/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/opportunityProduct/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/opportunityProduct/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/opportunityProduct/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/opportunityProduct/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/opportunityProduct/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/opportunityProduct/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/opportunityProduct/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/opportunityProduct/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/opportunityProduct/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/opportunityProduct/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/opportunityProduct/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/opportunityProduct/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/opportunityProduct/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/opportunityProduct" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/opportunityProduct HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/opportunityProduct")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/opportunityProduct")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/opportunityProduct');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunityProduct',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunityProduct',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/opportunityProduct');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/opportunityProduct',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/opportunityProduct', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/opportunityProduct", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/opportunityProduct') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/opportunityProduct \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/opportunityProduct \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/opportunityProduct/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/opportunityProduct/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/opportunityProduct/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/opportunityProduct/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/opportunityProduct/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunityProduct/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/opportunityProduct/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/opportunityProduct/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/opportunityProduct/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/opportunityProduct/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/opportunityProduct/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for opportunityProduct
{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
opportunityProduct_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/opportunityProduct/:opportunityProduct_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/opportunityProduct/:opportunityProduct_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/opportunityProduct/:opportunityProduct_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for platform (GET)
{{baseUrl}}/platform/:type
HEADERS
X-API2CRM-USER-KEY
QUERY PARAMS
type
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/platform/:type");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/platform/:type" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/platform/:type"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/platform/:type"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/platform/:type");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/platform/:type"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/platform/:type HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/platform/:type")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/platform/:type"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/platform/:type")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/platform/:type")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/platform/:type');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/platform/:type',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/platform/:type';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/platform/:type',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/platform/:type")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/platform/:type',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/platform/:type',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/platform/:type');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/platform/:type',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/platform/:type';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/platform/:type"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/platform/:type" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/platform/:type",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/platform/:type', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/platform/:type');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/platform/:type');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/platform/:type' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/platform/:type' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/platform/:type", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/platform/:type"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/platform/:type"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/platform/:type")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/platform/:type') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/platform/:type";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/platform/:type \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/platform/:type \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/platform/:type
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/platform/:type")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for platform
{{baseUrl}}/platform/list
HEADERS
X-API2CRM-USER-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/platform/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/platform/list" {:headers {:x-api2crm-user-key ""}})
require "http/client"
url = "{{baseUrl}}/platform/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/platform/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/platform/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/platform/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/platform/list HTTP/1.1
X-Api2crm-User-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/platform/list")
.setHeader("x-api2crm-user-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/platform/list"))
.header("x-api2crm-user-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/platform/list")
.get()
.addHeader("x-api2crm-user-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/platform/list")
.header("x-api2crm-user-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/platform/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/platform/list',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/platform/list';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/platform/list',
method: 'GET',
headers: {
'x-api2crm-user-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/platform/list")
.get()
.addHeader("x-api2crm-user-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/platform/list',
headers: {
'x-api2crm-user-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/platform/list',
headers: {'x-api2crm-user-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/platform/list');
req.headers({
'x-api2crm-user-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/platform/list',
headers: {'x-api2crm-user-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/platform/list';
const options = {method: 'GET', headers: {'x-api2crm-user-key': ''}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/platform/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/platform/list" in
let headers = Header.add (Header.init ()) "x-api2crm-user-key" "" in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/platform/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/platform/list', [
'headers' => [
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/platform/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/platform/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/platform/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/platform/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = { 'x-api2crm-user-key': "" }
conn.request("GET", "/baseUrl/platform/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/platform/list"
headers = {"x-api2crm-user-key": ""}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/platform/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/platform/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/platform/list') do |req|
req.headers['x-api2crm-user-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/platform/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/platform/list \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/platform/list \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--output-document \
- {{baseUrl}}/platform/list
import Foundation
let headers = ["x-api2crm-user-key": ""]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/platform/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for post
{{baseUrl}}/application/entity/post/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/post/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/post/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/post/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/post/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/post/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/post/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/post/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/post/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/post/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/post/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/post/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for post
{{baseUrl}}/application/entity/post/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/post/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/post/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/post/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/post/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/post/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/post/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/post/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/post/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/post/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/post/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/post/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for post
{{baseUrl}}/application/entity/post/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/post/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/post/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/post/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/post/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/post/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/post/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/post/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/post/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/post/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/post/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/post/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/post/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for post
{{baseUrl}}/application/entity/post/:post_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
post_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/:post_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/post/:post_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/:post_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/:post_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/:post_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/:post_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/post/:post_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/post/:post_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/:post_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/post/:post_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/post/:post_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/post/:post_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/:post_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/:post_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/:post_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/:post_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/post/:post_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/:post_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/:post_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/:post_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/:post_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/post/:post_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/:post_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/:post_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/:post_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/:post_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/post/:post_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/:post_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/:post_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/:post_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/post/:post_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/:post_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/post/:post_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/post/:post_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/:post_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/:post_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for post
{{baseUrl}}/application/entity/post/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/post/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/post/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/post/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/post/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/post/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/post/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/post/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/post/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/post/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/post/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/post/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for post (GET)
{{baseUrl}}/application/entity/post/:post_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
post_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/:post_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/post/:post_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/:post_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/:post_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/:post_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/:post_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/post/:post_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/post/:post_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/:post_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/:post_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/post/:post_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/post/:post_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/:post_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/:post_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/:post_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/:post_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/post/:post_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/:post_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/:post_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/:post_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/:post_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/post/:post_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/:post_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/:post_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/:post_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/:post_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/post/:post_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/:post_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/:post_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/:post_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/post/:post_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/:post_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/post/:post_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/post/:post_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/:post_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/:post_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for post
{{baseUrl}}/application/entity/post/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/post/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/post/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/post/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/post/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/post/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/post/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/post/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/post/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/post/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/post/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/post/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/post/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for post
{{baseUrl}}/application/entity/post/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/post/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/post/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/post/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/post/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/post/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/post/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/post/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/post/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/post/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/post/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/post/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for post
{{baseUrl}}/application/entity/post
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/post" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/post"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/post HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/post")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/post")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/post');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/post',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/post',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/post');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/post',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/post', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/post", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/post') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/post \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/post \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for post
{{baseUrl}}/application/entity/post/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/post/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/post/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/post/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/post/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/post/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/post/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/post/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/post/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/post/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/post/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/post/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/post/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for post
{{baseUrl}}/application/entity/post/:post_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
post_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/post/:post_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/post/:post_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/post/:post_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/post/:post_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/post/:post_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/post/:post_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/post/:post_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/post/:post_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/post/:post_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/post/:post_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/post/:post_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/post/:post_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/post/:post_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/post/:post_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/post/:post_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/post/:post_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/post/:post_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/post/:post_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/post/:post_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/post/:post_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/post/:post_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/post/:post_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/post/:post_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/post/:post_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/post/:post_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/post/:post_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/post/:post_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/post/:post_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/post/:post_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/post/:post_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/post/:post_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/post/:post_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/post/:post_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/post/:post_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/post/:post_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/post/:post_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/post/:post_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for priceBook
{{baseUrl}}/application/entity/priceBook/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBook/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBook/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBook/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBook/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBook/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBook/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBook/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBook/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBook/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBook/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBook/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for priceBook
{{baseUrl}}/application/entity/priceBook/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBook/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBook/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBook/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBook/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBook/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBook/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBook/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBook/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBook/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBook/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBook/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for priceBook
{{baseUrl}}/application/entity/priceBook/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/priceBook/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/priceBook/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/priceBook/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/priceBook/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/priceBook/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/priceBook/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/priceBook/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/priceBook/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/priceBook/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/priceBook/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/priceBook/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/priceBook/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for priceBook
{{baseUrl}}/application/entity/priceBook/:priceBook_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
priceBook_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/:priceBook_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/priceBook/:priceBook_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/:priceBook_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/:priceBook_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/priceBook/:priceBook_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/:priceBook_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/priceBook/:priceBook_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/priceBook/:priceBook_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/:priceBook_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/:priceBook_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/priceBook/:priceBook_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/:priceBook_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/:priceBook_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/:priceBook_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/:priceBook_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/priceBook/:priceBook_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/:priceBook_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/:priceBook_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/:priceBook_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/:priceBook_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/priceBook/:priceBook_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/priceBook/:priceBook_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/priceBook/:priceBook_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/priceBook/:priceBook_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/:priceBook_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/:priceBook_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for priceBook
{{baseUrl}}/application/entity/priceBook/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBook/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBook/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBook/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBook/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBook/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBook/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBook/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBook/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBook/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBook/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBook/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for priceBook (GET)
{{baseUrl}}/application/entity/priceBook/:priceBook_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
priceBook_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/:priceBook_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBook/:priceBook_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/:priceBook_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/:priceBook_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBook/:priceBook_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/:priceBook_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBook/:priceBook_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/:priceBook_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/:priceBook_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBook/:priceBook_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/:priceBook_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/:priceBook_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/:priceBook_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/:priceBook_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBook/:priceBook_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/:priceBook_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/:priceBook_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/:priceBook_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/:priceBook_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBook/:priceBook_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBook/:priceBook_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBook/:priceBook_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBook/:priceBook_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/:priceBook_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/:priceBook_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for priceBook
{{baseUrl}}/application/entity/priceBook/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBook/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBook/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBook/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBook/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBook/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBook/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBook/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBook/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBook/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBook/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBook/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBook/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for priceBook
{{baseUrl}}/application/entity/priceBook/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/priceBook/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/priceBook/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/priceBook/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/priceBook/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/priceBook/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/priceBook/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/priceBook/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/priceBook/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/priceBook/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/priceBook/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/priceBook/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for priceBook
{{baseUrl}}/application/entity/priceBook
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/priceBook" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/priceBook HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/priceBook")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/priceBook")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/priceBook');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBook',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBook',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/priceBook');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBook',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/priceBook', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/priceBook", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/priceBook') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/priceBook \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/priceBook \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for priceBook
{{baseUrl}}/application/entity/priceBook/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/priceBook/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/priceBook/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/priceBook/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/priceBook/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/priceBook/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/priceBook/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBook/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/priceBook/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/priceBook/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/priceBook/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/priceBook/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/priceBook/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for priceBook
{{baseUrl}}/application/entity/priceBook/:priceBook_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
priceBook_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBook/:priceBook_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/priceBook/:priceBook_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBook/:priceBook_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBook/:priceBook_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/priceBook/:priceBook_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBook/:priceBook_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/priceBook/:priceBook_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBook/:priceBook_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBook/:priceBook_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/priceBook/:priceBook_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBook/:priceBook_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBook/:priceBook_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBook/:priceBook_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBook/:priceBook_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBook/:priceBook_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/priceBook/:priceBook_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBook/:priceBook_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBook/:priceBook_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBook/:priceBook_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBook/:priceBook_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/priceBook/:priceBook_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBook/:priceBook_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBook/:priceBook_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/priceBook/:priceBook_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBook/:priceBook_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/priceBook/:priceBook_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/priceBook/:priceBook_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBook/:priceBook_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBook/:priceBook_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBookItem/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBookItem/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBookItem/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBookItem/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBookItem/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBookItem/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBookItem/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBookItem/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBookItem/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBookItem/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBookItem/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBookItem/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBookItem/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBookItem/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBookItem/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBookItem/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBookItem/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBookItem/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBookItem/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBookItem/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBookItem/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBookItem/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/priceBookItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/priceBookItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/priceBookItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/priceBookItem/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/priceBookItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/priceBookItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/priceBookItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/priceBookItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/priceBookItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/priceBookItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/priceBookItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/priceBookItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
priceBookItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/priceBookItem/:priceBookItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/priceBookItem/:priceBookItem_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/:priceBookItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/priceBookItem/:priceBookItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/priceBookItem/:priceBookItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBookItem/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBookItem/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBookItem/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBookItem/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBookItem/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBookItem/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBookItem/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBookItem/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBookItem/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBookItem/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBookItem/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for priceBookItem (GET)
{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
priceBookItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBookItem/:priceBookItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/:priceBookItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBookItem/:priceBookItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBookItem/:priceBookItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/priceBookItem/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/priceBookItem/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/priceBookItem/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/priceBookItem/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/priceBookItem/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/priceBookItem/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/priceBookItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/priceBookItem/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/priceBookItem/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/priceBookItem/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/priceBookItem/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/priceBookItem/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/priceBookItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/priceBookItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/priceBookItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/priceBookItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/priceBookItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/priceBookItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/priceBookItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/priceBookItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/priceBookItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/priceBookItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/priceBookItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for priceBookItem
{{baseUrl}}/application/entity/priceBookItem
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/priceBookItem" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/priceBookItem HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/priceBookItem")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/priceBookItem")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/priceBookItem');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBookItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBookItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/priceBookItem');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/priceBookItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/priceBookItem', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/priceBookItem", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/priceBookItem') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/priceBookItem \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/priceBookItem \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/priceBookItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/priceBookItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/priceBookItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/priceBookItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/priceBookItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/priceBookItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBookItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/priceBookItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/priceBookItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/priceBookItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/priceBookItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/priceBookItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for priceBookItem
{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
priceBookItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/priceBookItem/:priceBookItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/priceBookItem/:priceBookItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/priceBookItem/:priceBookItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/priceBookItem/:priceBookItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/priceBookItem/:priceBookItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for product
{{baseUrl}}/application/entity/product/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/product/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/product/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/product/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/product/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/product/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/product/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/product/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/product/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/product/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/product/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/product/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for product
{{baseUrl}}/application/entity/product/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/product/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/product/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/product/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/product/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/product/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/product/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/product/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/product/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/product/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/product/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/product/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for product
{{baseUrl}}/application/entity/product/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/product/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/product/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/product/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/product/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/product/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/product/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/product/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/product/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/product/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/product/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/product/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/product/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for product
{{baseUrl}}/application/entity/product/:product_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
product_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/:product_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/product/:product_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/:product_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/:product_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/:product_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/:product_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/product/:product_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/product/:product_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/:product_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/product/:product_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/product/:product_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/product/:product_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/:product_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/:product_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/:product_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/:product_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/product/:product_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/:product_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/:product_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/:product_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/:product_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/product/:product_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/:product_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/:product_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/:product_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/:product_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/product/:product_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/:product_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/:product_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/:product_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/product/:product_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/:product_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/product/:product_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/product/:product_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/:product_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/:product_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for product
{{baseUrl}}/application/entity/product/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/product/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/product/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/product/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/product/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/product/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/product/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/product/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/product/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/product/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/product/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/product/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for product (GET)
{{baseUrl}}/application/entity/product/:product_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
product_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/:product_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/product/:product_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/:product_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/:product_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/:product_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/:product_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/product/:product_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/product/:product_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/:product_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/:product_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/product/:product_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/product/:product_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/:product_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/:product_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/:product_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/:product_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/product/:product_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/:product_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/:product_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/:product_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/:product_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/product/:product_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/:product_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/:product_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/:product_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/:product_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/product/:product_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/:product_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/:product_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/:product_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/product/:product_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/:product_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/product/:product_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/product/:product_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/:product_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/:product_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for product
{{baseUrl}}/application/entity/product/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/product/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/product/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/product/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/product/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/product/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/product/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/product/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/product/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/product/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/product/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/product/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/product/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for product
{{baseUrl}}/application/entity/product/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/product/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/product/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/product/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/product/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/product/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/product/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/product/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/product/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/product/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/product/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/product/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for product
{{baseUrl}}/application/entity/product
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/product" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/product"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/product HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/product")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/product")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/product');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/product',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/product',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/product');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/product',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/product', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/product", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/product') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/product \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/product \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for product
{{baseUrl}}/application/entity/product/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/product/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/product/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/product/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/product/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/product/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/product/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/product/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/product/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/product/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/product/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/product/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/product/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for product
{{baseUrl}}/application/entity/product/:product_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
product_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/product/:product_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/product/:product_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/product/:product_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/product/:product_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/product/:product_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/product/:product_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/product/:product_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/product/:product_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/product/:product_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/product/:product_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/product/:product_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/product/:product_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/product/:product_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/product/:product_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/product/:product_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/product/:product_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/product/:product_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/product/:product_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/product/:product_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/product/:product_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/product/:product_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/product/:product_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/product/:product_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/product/:product_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/product/:product_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/product/:product_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/product/:product_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/product/:product_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/product/:product_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/product/:product_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/product/:product_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/product/:product_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/product/:product_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/product/:product_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/product/:product_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/product/:product_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/product/:product_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for project
{{baseUrl}}/application/entity/project/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/project/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/project/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/project/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/project/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/project/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/project/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/project/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/project/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/project/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/project/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/project/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for project
{{baseUrl}}/application/entity/project/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/project/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/project/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/project/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/project/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/project/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/project/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/project/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/project/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/project/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/project/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/project/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for project
{{baseUrl}}/application/entity/project/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/project/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/project/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/project/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/project/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/project/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/project/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/project/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/project/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/project/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/project/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/project/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/project/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for project
{{baseUrl}}/application/entity/project/:project_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
project_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/:project_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/project/:project_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/:project_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/:project_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/:project_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/:project_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/project/:project_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/project/:project_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/:project_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/project/:project_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/project/:project_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/project/:project_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/:project_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/:project_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/:project_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/:project_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/project/:project_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/:project_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/:project_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/:project_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/:project_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/project/:project_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/:project_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/:project_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/:project_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/:project_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/project/:project_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/:project_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/:project_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/:project_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/project/:project_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/:project_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/project/:project_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/project/:project_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/:project_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/:project_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for project
{{baseUrl}}/application/entity/project/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/project/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/project/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/project/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/project/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/project/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/project/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/project/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/project/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/project/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/project/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/project/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for project (GET)
{{baseUrl}}/application/entity/project/:project_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
project_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/:project_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/project/:project_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/:project_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/:project_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/:project_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/:project_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/project/:project_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/project/:project_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/:project_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/:project_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/project/:project_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/project/:project_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/:project_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/:project_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/:project_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/:project_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/project/:project_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/:project_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/:project_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/:project_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/:project_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/project/:project_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/:project_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/:project_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/:project_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/:project_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/project/:project_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/:project_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/:project_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/:project_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/project/:project_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/:project_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/project/:project_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/project/:project_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/:project_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/:project_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for project
{{baseUrl}}/application/entity/project/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/project/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/project/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/project/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/project/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/project/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/project/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/project/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/project/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/project/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/project/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/project/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/project/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for project
{{baseUrl}}/application/entity/project/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/project/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/project/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/project/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/project/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/project/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/project/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/project/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/project/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/project/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/project/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/project/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for project
{{baseUrl}}/application/entity/project
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/project" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/project"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/project HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/project")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/project")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/project');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/project',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/project',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/project');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/project',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/project', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/project", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/project') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/project \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/project \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for project
{{baseUrl}}/application/entity/project/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/project/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/project/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/project/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/project/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/project/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/project/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/project/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/project/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/project/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/project/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/project/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/project/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for project
{{baseUrl}}/application/entity/project/:project_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
project_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/project/:project_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/project/:project_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/project/:project_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/project/:project_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/project/:project_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/project/:project_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/project/:project_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/project/:project_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/project/:project_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/project/:project_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/project/:project_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/project/:project_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/project/:project_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/project/:project_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/project/:project_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/project/:project_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/project/:project_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/project/:project_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/project/:project_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/project/:project_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/project/:project_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/project/:project_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/project/:project_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/project/:project_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/project/:project_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/project/:project_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/project/:project_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/project/:project_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/project/:project_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/project/:project_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/project/:project_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/project/:project_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/project/:project_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/project/:project_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/project/:project_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/project/:project_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/project/:project_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for quote
{{baseUrl}}/application/entity/quote/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quote/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quote/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quote/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quote/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quote/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quote/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quote/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quote/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quote/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quote/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quote/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for quote
{{baseUrl}}/application/entity/quote/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quote/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quote/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quote/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quote/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quote/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quote/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quote/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quote/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quote/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quote/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quote/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for quote
{{baseUrl}}/application/entity/quote/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/quote/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/quote/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/quote/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/quote/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/quote/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/quote/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/quote/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/quote/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/quote/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/quote/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/quote/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/quote/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for quote
{{baseUrl}}/application/entity/quote/:quote_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
quote_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/:quote_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/quote/:quote_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/:quote_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/:quote_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/:quote_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/:quote_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/quote/:quote_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/quote/:quote_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/:quote_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/quote/:quote_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/quote/:quote_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/quote/:quote_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/:quote_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/:quote_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/:quote_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/:quote_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/quote/:quote_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/:quote_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/:quote_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/:quote_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/:quote_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/quote/:quote_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/:quote_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/:quote_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/:quote_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/:quote_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/quote/:quote_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/:quote_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/:quote_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/:quote_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/quote/:quote_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/:quote_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/quote/:quote_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/quote/:quote_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/:quote_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/:quote_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for quote
{{baseUrl}}/application/entity/quote/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quote/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quote/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quote/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quote/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quote/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quote/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quote/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quote/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quote/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quote/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quote/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for quote (GET)
{{baseUrl}}/application/entity/quote/:quote_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
quote_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/:quote_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quote/:quote_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/:quote_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/:quote_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/:quote_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/:quote_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quote/:quote_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quote/:quote_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/:quote_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/:quote_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quote/:quote_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quote/:quote_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/:quote_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/:quote_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/:quote_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/:quote_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quote/:quote_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/:quote_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/:quote_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/:quote_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/:quote_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quote/:quote_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/:quote_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/:quote_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/:quote_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/:quote_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quote/:quote_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/:quote_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/:quote_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/:quote_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quote/:quote_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/:quote_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quote/:quote_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quote/:quote_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/:quote_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/:quote_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for quote
{{baseUrl}}/application/entity/quote/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quote/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quote/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quote/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quote/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quote/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quote/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quote/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quote/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quote/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quote/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quote/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quote/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for quote
{{baseUrl}}/application/entity/quote/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/quote/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/quote/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/quote/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/quote/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/quote/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/quote/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/quote/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/quote/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/quote/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/quote/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/quote/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for quote
{{baseUrl}}/application/entity/quote
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/quote" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/quote HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/quote")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/quote")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/quote');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quote',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quote',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/quote');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quote',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/quote', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/quote", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/quote') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/quote \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/quote \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for quote
{{baseUrl}}/application/entity/quote/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/quote/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/quote/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/quote/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/quote/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/quote/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/quote/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quote/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/quote/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/quote/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/quote/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/quote/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/quote/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for quote
{{baseUrl}}/application/entity/quote/:quote_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
quote_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quote/:quote_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/quote/:quote_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quote/:quote_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/quote/:quote_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quote/:quote_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quote/:quote_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/quote/:quote_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/quote/:quote_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quote/:quote_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quote/:quote_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/quote/:quote_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/quote/:quote_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quote/:quote_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quote/:quote_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quote/:quote_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quote/:quote_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/quote/:quote_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quote/:quote_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quote/:quote_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quote/:quote_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quote/:quote_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quote/:quote_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/quote/:quote_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quote/:quote_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quote/:quote_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quote/:quote_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quote/:quote_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/quote/:quote_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quote/:quote_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quote/:quote_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quote/:quote_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/quote/:quote_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quote/:quote_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/quote/:quote_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/quote/:quote_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quote/:quote_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quote/:quote_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for quoteItem
{{baseUrl}}/application/entity/quoteItem/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quoteItem/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quoteItem/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quoteItem/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quoteItem/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quoteItem/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quoteItem/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quoteItem/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quoteItem/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quoteItem/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quoteItem/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quoteItem/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for quoteItem
{{baseUrl}}/application/entity/quoteItem/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quoteItem/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quoteItem/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quoteItem/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quoteItem/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quoteItem/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quoteItem/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quoteItem/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quoteItem/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quoteItem/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quoteItem/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quoteItem/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for quoteItem
{{baseUrl}}/application/entity/quoteItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/quoteItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/quoteItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/quoteItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/quoteItem/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/quoteItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/quoteItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/quoteItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/quoteItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/quoteItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/quoteItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/quoteItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/quoteItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for quoteItem
{{baseUrl}}/application/entity/quoteItem/:quoteItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
quoteItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/quoteItem/:quoteItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/quoteItem/:quoteItem_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/:quoteItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/:quoteItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/quoteItem/:quoteItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/quoteItem/:quoteItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/quoteItem/:quoteItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/quoteItem/:quoteItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/:quoteItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for quoteItem
{{baseUrl}}/application/entity/quoteItem/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quoteItem/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quoteItem/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quoteItem/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quoteItem/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quoteItem/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quoteItem/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quoteItem/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quoteItem/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quoteItem/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quoteItem/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quoteItem/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for quoteItem (GET)
{{baseUrl}}/application/entity/quoteItem/:quoteItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
quoteItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quoteItem/:quoteItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/:quoteItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/:quoteItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quoteItem/:quoteItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quoteItem/:quoteItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quoteItem/:quoteItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quoteItem/:quoteItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/:quoteItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for quoteItem
{{baseUrl}}/application/entity/quoteItem/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/quoteItem/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/quoteItem/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/quoteItem/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/quoteItem/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/quoteItem/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/quoteItem/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/quoteItem/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/quoteItem/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/quoteItem/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/quoteItem/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/quoteItem/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/quoteItem/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for quoteItem
{{baseUrl}}/application/entity/quoteItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/quoteItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/quoteItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/quoteItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/quoteItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/quoteItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/quoteItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/quoteItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/quoteItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/quoteItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/quoteItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/quoteItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for quoteItem
{{baseUrl}}/application/entity/quoteItem
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/quoteItem" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/quoteItem HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/quoteItem")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/quoteItem")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/quoteItem');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quoteItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quoteItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/quoteItem');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/quoteItem',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/quoteItem', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/quoteItem", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/quoteItem') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/quoteItem \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/quoteItem \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for quoteItem
{{baseUrl}}/application/entity/quoteItem/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/quoteItem/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/quoteItem/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/quoteItem/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/quoteItem/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/quoteItem/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/quoteItem/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quoteItem/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/quoteItem/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/quoteItem/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/quoteItem/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/quoteItem/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/quoteItem/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for quoteItem
{{baseUrl}}/application/entity/quoteItem/:quoteItem_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
quoteItem_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/quoteItem/:quoteItem_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/quoteItem/:quoteItem_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/quoteItem/:quoteItem_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/quoteItem/:quoteItem_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/quoteItem/:quoteItem_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/quoteItem/:quoteItem_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/quoteItem/:quoteItem_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/quoteItem/:quoteItem_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/quoteItem/:quoteItem_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/quoteItem/:quoteItem_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/quoteItem/:quoteItem_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for request
{{baseUrl}}/application/request
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/request");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/request" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/request"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/request"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/request");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/request"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/request HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/request")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/request"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/request")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/request")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/request');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/request',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/request';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/request',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/request")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/request',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/request',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/request');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/request',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/request';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/request"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/request" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/request', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/request');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/request');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/request' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/request' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/request", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/request"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/request"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/request') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/request";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/request \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/request \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/request
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/request")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for tag
{{baseUrl}}/application/entity/tag/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/tag/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/tag/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/tag/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/tag/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/tag/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/tag/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/tag/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/tag/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/tag/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/tag/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/tag/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for tag
{{baseUrl}}/application/entity/tag/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/tag/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/tag/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/tag/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/tag/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/tag/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/tag/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/tag/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/tag/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/tag/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/tag/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/tag/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for tag
{{baseUrl}}/application/entity/tag/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/tag/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/tag/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/tag/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/tag/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/tag/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/tag/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/tag/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/tag/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/tag/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/tag/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/tag/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/tag/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for tag
{{baseUrl}}/application/entity/tag/:tag_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
tag_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/:tag_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/tag/:tag_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/:tag_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/:tag_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/:tag_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/:tag_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/tag/:tag_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/tag/:tag_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/:tag_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/tag/:tag_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/tag/:tag_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/tag/:tag_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/:tag_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/:tag_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/:tag_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/:tag_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/tag/:tag_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/:tag_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/:tag_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/:tag_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/:tag_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/tag/:tag_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/:tag_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/:tag_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/:tag_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/:tag_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/tag/:tag_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/:tag_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/:tag_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/:tag_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/tag/:tag_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/:tag_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/tag/:tag_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/tag/:tag_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/:tag_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/:tag_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for tag
{{baseUrl}}/application/entity/tag/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/tag/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/tag/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/tag/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/tag/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/tag/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/tag/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/tag/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/tag/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/tag/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/tag/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/tag/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for tag (GET)
{{baseUrl}}/application/entity/tag/:tag_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
tag_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/:tag_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/tag/:tag_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/:tag_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/:tag_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/:tag_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/:tag_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/tag/:tag_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/tag/:tag_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/:tag_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/:tag_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/tag/:tag_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/tag/:tag_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/:tag_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/:tag_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/:tag_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/:tag_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/tag/:tag_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/:tag_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/:tag_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/:tag_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/:tag_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/tag/:tag_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/:tag_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/:tag_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/:tag_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/:tag_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/tag/:tag_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/:tag_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/:tag_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/:tag_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/tag/:tag_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/:tag_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/tag/:tag_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/tag/:tag_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/:tag_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/:tag_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for tag
{{baseUrl}}/application/entity/tag/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/tag/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/tag/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/tag/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/tag/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/tag/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/tag/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/tag/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/tag/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/tag/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/tag/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/tag/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/tag/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for tag
{{baseUrl}}/application/entity/tag/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/tag/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/tag/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/tag/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/tag/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/tag/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/tag/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/tag/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/tag/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/tag/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/tag/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/tag/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for tag
{{baseUrl}}/application/entity/tag
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/tag" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/tag HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/tag")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/tag")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/tag');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/tag',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/tag',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/tag');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/tag',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/tag', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/tag", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/tag') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/tag \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/tag \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for tag
{{baseUrl}}/application/entity/tag/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/tag/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/tag/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/tag/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/tag/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/tag/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/tag/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/tag/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/tag/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/tag/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/tag/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/tag/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/tag/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for tag
{{baseUrl}}/application/entity/tag/:tag_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
tag_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/tag/:tag_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/tag/:tag_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/tag/:tag_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/tag/:tag_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/tag/:tag_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/tag/:tag_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/tag/:tag_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/tag/:tag_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/tag/:tag_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/tag/:tag_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/tag/:tag_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/tag/:tag_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/tag/:tag_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/tag/:tag_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/tag/:tag_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/tag/:tag_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/tag/:tag_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/tag/:tag_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/tag/:tag_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/tag/:tag_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/tag/:tag_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/tag/:tag_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/tag/:tag_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/tag/:tag_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/tag/:tag_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/tag/:tag_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/tag/:tag_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/tag/:tag_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/tag/:tag_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/tag/:tag_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/tag/:tag_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/tag/:tag_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/tag/:tag_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/tag/:tag_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/tag/:tag_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/tag/:tag_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/tag/:tag_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for task
{{baseUrl}}/application/entity/task/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/task/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/task/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/task/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/task/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/task/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/task/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/task/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/task/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/task/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/task/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/task/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for task
{{baseUrl}}/application/entity/task/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/task/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/task/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/task/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/task/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/task/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/task/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/task/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/task/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/task/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/task/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/task/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for task
{{baseUrl}}/application/entity/task/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/task/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/task/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/task/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/task/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/task/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/task/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/task/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/task/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/task/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/task/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/task/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/task/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for task
{{baseUrl}}/application/entity/task/:task_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
task_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/:task_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/task/:task_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/:task_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/:task_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/:task_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/:task_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/task/:task_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/task/:task_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/:task_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/task/:task_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/task/:task_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/task/:task_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/:task_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/:task_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/:task_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/:task_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/task/:task_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/:task_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/:task_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/:task_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/:task_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/task/:task_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/:task_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/:task_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/:task_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/:task_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/task/:task_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/:task_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/:task_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/:task_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/task/:task_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/:task_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/task/:task_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/task/:task_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/:task_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/:task_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for task
{{baseUrl}}/application/entity/task/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/task/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/task/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/task/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/task/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/task/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/task/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/task/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/task/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/task/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/task/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/task/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for task (GET)
{{baseUrl}}/application/entity/task/:task_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
task_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/:task_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/task/:task_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/:task_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/:task_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/:task_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/:task_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/task/:task_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/task/:task_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/:task_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/:task_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/task/:task_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/task/:task_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/:task_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/:task_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/:task_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/:task_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/task/:task_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/:task_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/:task_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/:task_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/:task_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/task/:task_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/:task_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/:task_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/:task_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/:task_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/task/:task_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/:task_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/:task_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/:task_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/task/:task_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/:task_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/task/:task_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/task/:task_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/:task_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/:task_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for task
{{baseUrl}}/application/entity/task/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/task/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/task/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/task/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/task/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/task/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/task/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/task/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/task/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/task/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/task/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/task/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/task/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for task
{{baseUrl}}/application/entity/task/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/task/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/task/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/task/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/task/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/task/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/task/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/task/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/task/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/task/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/task/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/task/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for task
{{baseUrl}}/application/entity/task
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/task" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/task"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/task HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/task")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/task")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/task');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/task',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/task',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/task');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/task',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/task', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/task", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/task') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/task \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/task \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for task
{{baseUrl}}/application/entity/task/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/task/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/task/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/task/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/task/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/task/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/task/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/task/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/task/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/task/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/task/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/task/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/task/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for task
{{baseUrl}}/application/entity/task/:task_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
task_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/task/:task_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/task/:task_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/task/:task_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/task/:task_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/task/:task_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/task/:task_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/task/:task_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/task/:task_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/task/:task_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/task/:task_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/task/:task_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/task/:task_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/task/:task_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/task/:task_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/task/:task_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/task/:task_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/task/:task_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/task/:task_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/task/:task_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/task/:task_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/task/:task_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/task/:task_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/task/:task_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/task/:task_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/task/:task_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/task/:task_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/task/:task_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/task/:task_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/task/:task_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/task/:task_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/task/:task_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/task/:task_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/task/:task_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/task/:task_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/task/:task_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/task/:task_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/task/:task_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for ticket
{{baseUrl}}/application/entity/ticket/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/ticket/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/ticket/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/ticket/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/ticket/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/ticket/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/ticket/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/ticket/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/ticket/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/ticket/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/ticket/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/ticket/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for ticket
{{baseUrl}}/application/entity/ticket/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/ticket/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/ticket/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/ticket/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/ticket/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/ticket/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/ticket/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/ticket/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/ticket/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/ticket/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/ticket/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/ticket/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for ticket
{{baseUrl}}/application/entity/ticket/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/ticket/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/ticket/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/ticket/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/ticket/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/ticket/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/ticket/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/ticket/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/ticket/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/ticket/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/ticket/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/ticket/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/ticket/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for ticket
{{baseUrl}}/application/entity/ticket/:ticket_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
ticket_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/:ticket_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/ticket/:ticket_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/:ticket_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/:ticket_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/:ticket_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/:ticket_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/ticket/:ticket_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/ticket/:ticket_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/:ticket_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/ticket/:ticket_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/ticket/:ticket_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/ticket/:ticket_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/:ticket_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/:ticket_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/:ticket_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/ticket/:ticket_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/:ticket_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/:ticket_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/:ticket_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/:ticket_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/ticket/:ticket_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/:ticket_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/:ticket_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/:ticket_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/:ticket_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/ticket/:ticket_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/:ticket_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/:ticket_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/:ticket_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/ticket/:ticket_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/:ticket_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/ticket/:ticket_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/ticket/:ticket_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/:ticket_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/:ticket_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for ticket
{{baseUrl}}/application/entity/ticket/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/ticket/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/ticket/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/ticket/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/ticket/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/ticket/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/ticket/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/ticket/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/ticket/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/ticket/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/ticket/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/ticket/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for ticket (GET)
{{baseUrl}}/application/entity/ticket/:ticket_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
ticket_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/:ticket_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/ticket/:ticket_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/:ticket_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/:ticket_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/:ticket_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/:ticket_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/ticket/:ticket_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/ticket/:ticket_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/:ticket_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/:ticket_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/ticket/:ticket_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/ticket/:ticket_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/:ticket_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/:ticket_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/:ticket_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/ticket/:ticket_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/:ticket_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/:ticket_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/:ticket_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/:ticket_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/ticket/:ticket_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/:ticket_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/:ticket_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/:ticket_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/:ticket_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/ticket/:ticket_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/:ticket_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/:ticket_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/:ticket_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/ticket/:ticket_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/:ticket_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/ticket/:ticket_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/ticket/:ticket_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/:ticket_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/:ticket_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for ticket
{{baseUrl}}/application/entity/ticket/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/ticket/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/ticket/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/ticket/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/ticket/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/ticket/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/ticket/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/ticket/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/ticket/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/ticket/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/ticket/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/ticket/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/ticket/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for ticket
{{baseUrl}}/application/entity/ticket/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/ticket/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/ticket/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/ticket/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/ticket/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/ticket/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/ticket/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/ticket/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/ticket/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/ticket/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/ticket/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/ticket/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for ticket
{{baseUrl}}/application/entity/ticket
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/ticket" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/ticket HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/ticket")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/ticket")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/ticket');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/ticket',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/ticket',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/ticket');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/ticket',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/ticket', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/ticket", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/ticket') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/ticket \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/ticket \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for ticket
{{baseUrl}}/application/entity/ticket/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/ticket/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/ticket/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/ticket/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/ticket/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/ticket/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/ticket/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/ticket/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/ticket/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/ticket/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/ticket/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/ticket/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/ticket/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for ticket
{{baseUrl}}/application/entity/ticket/:ticket_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
ticket_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/ticket/:ticket_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/ticket/:ticket_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/ticket/:ticket_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/ticket/:ticket_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/ticket/:ticket_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/ticket/:ticket_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/ticket/:ticket_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/ticket/:ticket_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/ticket/:ticket_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/:ticket_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/ticket/:ticket_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/ticket/:ticket_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/ticket/:ticket_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/ticket/:ticket_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/ticket/:ticket_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/ticket/:ticket_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/ticket/:ticket_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/ticket/:ticket_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/ticket/:ticket_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/ticket/:ticket_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/ticket/:ticket_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/ticket/:ticket_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/ticket/:ticket_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/ticket/:ticket_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/ticket/:ticket_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/ticket/:ticket_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/ticket/:ticket_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/ticket/:ticket_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/ticket/:ticket_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/ticket/:ticket_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/ticket/:ticket_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/ticket/:ticket_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/ticket/:ticket_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/ticket/:ticket_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/ticket/:ticket_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/ticket/:ticket_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
AGGREGATE for user
{{baseUrl}}/application/entity/user/aggregate
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/aggregate");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/user/aggregate" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/aggregate"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/aggregate"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/aggregate");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/aggregate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/user/aggregate HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/user/aggregate")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/aggregate"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/user/aggregate")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/user/aggregate');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/aggregate',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/aggregate")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/aggregate',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/user/aggregate');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/aggregate',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/aggregate';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/aggregate"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/aggregate" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/user/aggregate', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/aggregate');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/aggregate');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/aggregate' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/aggregate' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/user/aggregate", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/aggregate"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/aggregate"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/user/aggregate') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/aggregate";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/user/aggregate \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/user/aggregate \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/aggregate
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/aggregate")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
COUNT for user
{{baseUrl}}/application/entity/user/count
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/count");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/user/count" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/count"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/count"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/count");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/count"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/user/count HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/user/count")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/count"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/user/count")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/user/count');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/count',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/count")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/count',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/user/count');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/count',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/count';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/count"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/count" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/count",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/user/count', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/count');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/count');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/count' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/count' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/user/count", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/count"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/count"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/count")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/user/count') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/count";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/user/count \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/user/count \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/count
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/count")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE bulk for user
{{baseUrl}}/application/entity/user/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/user/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/bulk");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/bulk"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/user/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/user/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/user/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/user/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/user/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/bulk',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/bulk")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/user/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/bulk';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/user/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/bulk');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/bulk');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/bulk' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/bulk' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/user/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/bulk"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/user/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/user/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/user/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
DELETE
DELETE for user
{{baseUrl}}/application/entity/user/:user_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
user_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/:user_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/delete "{{baseUrl}}/application/entity/user/:user_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/:user_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/:user_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/:user_id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/:user_id"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
DELETE /baseUrl/application/entity/user/:user_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/application/entity/user/:user_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/:user_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.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}}/application/entity/user/:user_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/application/entity/user/:user_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('DELETE', '{{baseUrl}}/application/entity/user/:user_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/:user_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/:user_id',
method: 'DELETE',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/:user_id")
.delete(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'DELETE',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/:user_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('DELETE', '{{baseUrl}}/application/entity/user/:user_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'DELETE',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/:user_id';
const options = {
method: 'DELETE',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/:user_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/:user_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/:user_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('DELETE', '{{baseUrl}}/application/entity/user/:user_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/:user_id');
$request->setMethod(HTTP_METH_DELETE);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/:user_id');
$request->setRequestMethod('DELETE');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/:user_id' -Method DELETE -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/:user_id' -Method DELETE -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("DELETE", "/baseUrl/application/entity/user/:user_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/:user_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.delete(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/:user_id"
response <- VERB("DELETE", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/:user_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.delete('/baseUrl/application/entity/user/:user_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/:user_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request DELETE \
--url {{baseUrl}}/application/entity/user/:user_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http DELETE {{baseUrl}}/application/entity/user/:user_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method DELETE \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/:user_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/:user_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "DELETE"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
DESCRIBE for user
{{baseUrl}}/application/entity/user/describe
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/describe");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/user/describe" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/describe"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/describe"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/describe");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/describe"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/user/describe HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/user/describe")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/describe"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/user/describe")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/user/describe');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/describe',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/describe")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/describe',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/user/describe');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/describe',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/describe';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/describe"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/describe" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/describe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/user/describe', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/describe');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/describe');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/describe' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/describe' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/user/describe", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/describe"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/describe"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/describe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/user/describe') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/describe";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/user/describe \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/user/describe \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/describe
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/describe")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for user (GET)
{{baseUrl}}/application/entity/user/:user_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
user_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/:user_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/user/:user_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/:user_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/:user_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/:user_id");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/:user_id"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/user/:user_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/user/:user_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/:user_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/:user_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/user/:user_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/user/:user_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/:user_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/:user_id',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/:user_id")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/:user_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/user/:user_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/:user_id';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/:user_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/:user_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/:user_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/user/:user_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/:user_id');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/:user_id');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/:user_id' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/:user_id' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/user/:user_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/:user_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/:user_id"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/:user_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/user/:user_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/:user_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/user/:user_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/user/:user_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/:user_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/:user_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
GET for user
{{baseUrl}}/application/entity/user/list
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/list");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/application/entity/user/list" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/list"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/list"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/list");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/application/entity/user/list HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/application/entity/user/list")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/list"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/application/entity/user/list")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/application/entity/user/list');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/list',
method: 'GET',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/list")
.get()
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/list',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/application/entity/user/list');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/application/entity/user/list',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/list';
const options = {
method: 'GET',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/list"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/list" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/application/entity/user/list', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/list');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/list');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/list' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/list' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("GET", "/baseUrl/application/entity/user/list", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/list"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/list"
response <- VERB("GET", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/application/entity/user/list') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/list";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/application/entity/user/list \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http GET {{baseUrl}}/application/entity/user/list \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method GET \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/list
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/list")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST bulk for user
{{baseUrl}}/application/entity/user/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/user/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/bulk");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/bulk"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/user/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/user/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/user/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/user/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/bulk',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/bulk")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/user/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/bulk';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/user/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/bulk');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/bulk');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/bulk' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/bulk' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/user/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/bulk"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/user/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/user/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/user/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
POST for user
{{baseUrl}}/application/entity/user
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/application/entity/user" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/application/entity/user"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/application/entity/user HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/application/entity/user")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/application/entity/user")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/application/entity/user');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/user',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user',
method: 'POST',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user")
.post(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/user',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/application/entity/user');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/application/entity/user',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user';
const options = {
method: 'POST',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/application/entity/user', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("POST", "/baseUrl/application/entity/user", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user"
response <- VERB("POST", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/application/entity/user') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/application/entity/user \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http POST {{baseUrl}}/application/entity/user \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method POST \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT bulk for user
{{baseUrl}}/application/entity/user/bulk
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/bulk");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/user/bulk" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/bulk"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/bulk"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/bulk");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/bulk"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/user/bulk HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/user/bulk")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/bulk"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/user/bulk")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/user/bulk');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/bulk',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/bulk")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/bulk',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/user/bulk');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/user/bulk',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/bulk';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/bulk"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/bulk" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/user/bulk', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/bulk');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/bulk');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/bulk' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/bulk' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/user/bulk", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/bulk"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/bulk"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/user/bulk') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/bulk";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/user/bulk \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/user/bulk \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/bulk
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/bulk")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
PUT
PUT for user
{{baseUrl}}/application/entity/user/:user_id
HEADERS
X-API2CRM-USER-KEY
X-API2CRM-APPLICATION-KEY
QUERY PARAMS
user_id
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/application/entity/user/:user_id");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-api2crm-user-key: ");
headers = curl_slist_append(headers, "x-api2crm-application-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/put "{{baseUrl}}/application/entity/user/:user_id" {:headers {:x-api2crm-user-key ""
:x-api2crm-application-key ""}})
require "http/client"
url = "{{baseUrl}}/application/entity/user/:user_id"
headers = HTTP::Headers{
"x-api2crm-user-key" => ""
"x-api2crm-application-key" => ""
}
response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("{{baseUrl}}/application/entity/user/:user_id"),
Headers =
{
{ "x-api2crm-user-key", "" },
{ "x-api2crm-application-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/application/entity/user/:user_id");
var request = new RestRequest("", Method.Put);
request.AddHeader("x-api2crm-user-key", "");
request.AddHeader("x-api2crm-application-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/application/entity/user/:user_id"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("x-api2crm-user-key", "")
req.Header.Add("x-api2crm-application-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
PUT /baseUrl/application/entity/user/:user_id HTTP/1.1
X-Api2crm-User-Key:
X-Api2crm-Application-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/application/entity/user/:user_id")
.setHeader("x-api2crm-user-key", "")
.setHeader("x-api2crm-application-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/application/entity/user/:user_id"))
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/application/entity/user/:user_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/application/entity/user/:user_id")
.header("x-api2crm-user-key", "")
.header("x-api2crm-application-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('PUT', '{{baseUrl}}/application/entity/user/:user_id');
xhr.setRequestHeader('x-api2crm-user-key', '');
xhr.setRequestHeader('x-api2crm-application-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/application/entity/user/:user_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/application/entity/user/:user_id',
method: 'PUT',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/application/entity/user/:user_id")
.put(null)
.addHeader("x-api2crm-user-key", "")
.addHeader("x-api2crm-application-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'PUT',
hostname: 'example.com',
port: null,
path: '/baseUrl/application/entity/user/:user_id',
headers: {
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('PUT', '{{baseUrl}}/application/entity/user/:user_id');
req.headers({
'x-api2crm-user-key': '',
'x-api2crm-application-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'PUT',
url: '{{baseUrl}}/application/entity/user/:user_id',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/application/entity/user/:user_id';
const options = {
method: 'PUT',
headers: {'x-api2crm-user-key': '', 'x-api2crm-application-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-api2crm-user-key": @"",
@"x-api2crm-application-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/application/entity/user/:user_id"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/application/entity/user/:user_id" in
let headers = Header.add_list (Header.init ()) [
("x-api2crm-user-key", "");
("x-api2crm-application-key", "");
] in
Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/application/entity/user/:user_id",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"x-api2crm-application-key: ",
"x-api2crm-user-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('PUT', '{{baseUrl}}/application/entity/user/:user_id', [
'headers' => [
'x-api2crm-application-key' => '',
'x-api2crm-user-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/application/entity/user/:user_id');
$request->setMethod(HTTP_METH_PUT);
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/application/entity/user/:user_id');
$request->setRequestMethod('PUT');
$request->setHeaders([
'x-api2crm-user-key' => '',
'x-api2crm-application-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/application/entity/user/:user_id' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("x-api2crm-user-key", "")
$headers.Add("x-api2crm-application-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/application/entity/user/:user_id' -Method PUT -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-api2crm-user-key': "",
'x-api2crm-application-key': ""
}
conn.request("PUT", "/baseUrl/application/entity/user/:user_id", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/application/entity/user/:user_id"
headers = {
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
}
response = requests.put(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/application/entity/user/:user_id"
response <- VERB("PUT", url, add_headers('x-api2crm-user-key' = '', 'x-api2crm-application-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/application/entity/user/:user_id")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api2crm-user-key"] = ''
request["x-api2crm-application-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.put('/baseUrl/application/entity/user/:user_id') do |req|
req.headers['x-api2crm-user-key'] = ''
req.headers['x-api2crm-application-key'] = ''
end
puts response.status
puts response.body
use std::str::FromStr;
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/application/entity/user/:user_id";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-api2crm-user-key", "".parse().unwrap());
headers.insert("x-api2crm-application-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request PUT \
--url {{baseUrl}}/application/entity/user/:user_id \
--header 'x-api2crm-application-key: ' \
--header 'x-api2crm-user-key: '
http PUT {{baseUrl}}/application/entity/user/:user_id \
x-api2crm-application-key:'' \
x-api2crm-user-key:''
wget --quiet \
--method PUT \
--header 'x-api2crm-user-key: ' \
--header 'x-api2crm-application-key: ' \
--output-document \
- {{baseUrl}}/application/entity/user/:user_id
import Foundation
let headers = [
"x-api2crm-user-key": "",
"x-api2crm-application-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/application/entity/user/:user_id")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()